diff --git a/target/linux/mpc85xx/Makefile b/target/linux/mpc85xx/Makefile index d027e49f11..001de825b6 100644 --- a/target/linux/mpc85xx/Makefile +++ b/target/linux/mpc85xx/Makefile @@ -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 += \ diff --git a/target/linux/mpc85xx/image/Makefile b/target/linux/mpc85xx/image/Makefile index dcb2620a67..ae8b8374b2 100644 --- a/target/linux/mpc85xx/image/Makefile +++ b/target/linux/mpc85xx/image/Makefile @@ -22,19 +22,17 @@ 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) +define Image/BuildKernel + 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 $(zImage) - $(foreach dts,$(DTS_TARGETS), - $(LINUX_DIR)/scripts/dtc/dtc -I dts -O dtb $(DTS_DIR)/$(dts).dts > $(BIN_DIR)/$(IMG_PREFIX)-$(dts).fdt - ) + 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