mpc85xx: fix initramfs images
authorFelix Fietkau <nbd@openwrt.org>
Thu, 11 Dec 2014 15:29:39 +0000 (15:29 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 11 Dec 2014 15:29:39 +0000 (15:29 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43620

target/linux/mpc85xx/Makefile
target/linux/mpc85xx/image/Makefile

index d027e49f1196723e064cd2e5c26b09c858d5f7c9..001de825b666d1913d784e73af0936cd17963bb3 100644 (file)
@@ -16,6 +16,8 @@ SUBTARGETS=generic p1020
 
 KERNEL_PATCHVER:=3.14
 
+KERNEL_IMAGES := zImage cuImage.tl-wdr4900-v1
+
 include $(INCLUDE_DIR)/target.mk
 
 DEFAULT_PACKAGES += \
index dcb2620a67a6cf1a9f83360aa9a360bf3a0e8319..ae8b8374b2fda321775fd0c14e431970ee0f1858 100644 (file)
@@ -22,21 +22,19 @@ endef
 zImage:=$(BIN_DIR)/$(IMG_PREFIX)-zImage
 
 DTS_TARGETS = mpc8548cds_32b p1010rdb-pa tl-wdr4900-v1 p1020rdb
-BOOT_IMAGES:=zImage cuImage.tl-wdr4900-v1
-
-define Image/Prepare
-       $(foreach image,$(BOOT_IMAGES),
-               cp $(LINUX_DIR)/arch/powerpc/boot/$(image) $(KDIR)/$(image)
-       )
-endef
 
 define Image/BuildKernel
-       cp $(KDIR)/zImage $(zImage)
+       cp $(KDIR)/zImage $(BIN_DIR)/$(IMG_PREFIX)-zImage
        $(foreach dts,$(DTS_TARGETS),
                $(LINUX_DIR)/scripts/dtc/dtc -I dts -O dtb $(DTS_DIR)/$(dts).dts > $(BIN_DIR)/$(IMG_PREFIX)-$(dts).fdt
        )
 endef
 
+define Image/BuildKernel
+       cp $(KDIR)/zImage-initramfs $(BIN_DIR)/$(IMG_PREFIX)-initramfs-zImage
+       cp $(KDIR)/cuImage.tl-wdr4900-v1-initramfs $(BIN_DIR)/$(IMG_PREFIX)-tl-wdr4900-initramfs.uImage
+endef
+
 define Image/Build/TPLINK
        -$(STAGING_DIR_HOST)/bin/mktplinkfw \
                -H $(4) -W $(5) -F $(6) -N OpenWrt -V $(REVISION) $(7) \