From: Florian Fainelli Date: Wed, 8 Aug 2012 21:50:55 +0000 (+0000) Subject: cleanup image generation X-Git-Tag: reboot~13190 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f8386ecbc681e9ecf52550bb1131dcacd8a15f84;p=openwrt%2Fstaging%2Fblogic.git cleanup image generation SVN-Revision: 33065 --- diff --git a/target/linux/mcs814x/image/Makefile b/target/linux/mcs814x/image/Makefile index 293013a105a6..89772c98efe9 100644 --- a/target/linux/mcs814x/image/Makefile +++ b/target/linux/mcs814x/image/Makefile @@ -21,15 +21,19 @@ define Image/Build/MkuImage -n 'ARM OpenWrt Linux-$(LINUX_VERSION)' -d $(1) $(2); endef +define Image/Build/DTB + cp $(KDIR)/zImage $(KDIR)/zImage-$(1); + cat $(LINUX_DIR)/arch/$(ARCH)/boot/$(1).dtb >> $(KDIR)/zImage-$(1); + $(call Image/Build/MkuImage,$(KDIR)/zImage-$(1),$(KDIR)/uImage-$(1)) + cp $(KDIR)/uImage-$(1) $(UIMAGE)-$(1); +endef + define Image/Prepare cp $(LINUX_DIR)/arch/$(ARCH)/boot/zImage $(KDIR)/zImage endef define Image/BuildKernel - $(foreach dtb,$(TARGET_DTBS),cp $(KDIR)/zImage $(KDIR)/zImage-$(dtb);) - $(foreach dtb,$(TARGET_DTBS),cat $(LINUX_DIR)/arch/$(ARCH)/boot/$(dtb).dtb >> $(KDIR)/zImage-$(dtb);) - $(foreach dtb,$(TARGET_DTBS),$(call Image/Build/MkuImage,$(KDIR)/zImage-$(dtb),$(KDIR)/uImage-$(dtb))) - $(foreach dtb,$(TARGET_DTBS),cp $(KDIR)/uImage-$(dtb) $(UIMAGE)-$(dtb);) + $(foreach dtb,$(TARGET_DTBS),$(call Image/Build/DTB,$(dtb))) $(call Image/Build/Initramfs) endef