mirror of https://github.com/hak5/openwrt.git
mpc85xx: fix initramfs images
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43620lede-17.01
parent
9318930993
commit
2d9d3e7163
|
@ -16,6 +16,8 @@ SUBTARGETS=generic p1020
|
||||||
|
|
||||||
KERNEL_PATCHVER:=3.14
|
KERNEL_PATCHVER:=3.14
|
||||||
|
|
||||||
|
KERNEL_IMAGES := zImage cuImage.tl-wdr4900-v1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/target.mk
|
include $(INCLUDE_DIR)/target.mk
|
||||||
|
|
||||||
DEFAULT_PACKAGES += \
|
DEFAULT_PACKAGES += \
|
||||||
|
|
|
@ -22,19 +22,17 @@ endef
|
||||||
zImage:=$(BIN_DIR)/$(IMG_PREFIX)-zImage
|
zImage:=$(BIN_DIR)/$(IMG_PREFIX)-zImage
|
||||||
|
|
||||||
DTS_TARGETS = mpc8548cds_32b p1010rdb-pa tl-wdr4900-v1 p1020rdb
|
DTS_TARGETS = mpc8548cds_32b p1010rdb-pa tl-wdr4900-v1 p1020rdb
|
||||||
BOOT_IMAGES:=zImage cuImage.tl-wdr4900-v1
|
|
||||||
|
|
||||||
define Image/Prepare
|
define Image/BuildKernel
|
||||||
$(foreach image,$(BOOT_IMAGES),
|
cp $(KDIR)/zImage $(BIN_DIR)/$(IMG_PREFIX)-zImage
|
||||||
cp $(LINUX_DIR)/arch/powerpc/boot/$(image) $(KDIR)/$(image)
|
$(foreach dts,$(DTS_TARGETS),
|
||||||
|
$(LINUX_DIR)/scripts/dtc/dtc -I dts -O dtb $(DTS_DIR)/$(dts).dts > $(BIN_DIR)/$(IMG_PREFIX)-$(dts).fdt
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
cp $(KDIR)/zImage $(zImage)
|
cp $(KDIR)/zImage-initramfs $(BIN_DIR)/$(IMG_PREFIX)-initramfs-zImage
|
||||||
$(foreach dts,$(DTS_TARGETS),
|
cp $(KDIR)/cuImage.tl-wdr4900-v1-initramfs $(BIN_DIR)/$(IMG_PREFIX)-tl-wdr4900-initramfs.uImage
|
||||||
$(LINUX_DIR)/scripts/dtc/dtc -I dts -O dtb $(DTS_DIR)/$(dts).dts > $(BIN_DIR)/$(IMG_PREFIX)-$(dts).fdt
|
|
||||||
)
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/TPLINK
|
define Image/Build/TPLINK
|
||||||
|
|
Loading…
Reference in New Issue