aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-08-08 21:50:55 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-08-08 21:50:55 +0000
commite0ed3cba8df9fae39f1cb7dce3096300152b8ada (patch)
tree392bd99aee72acc13d01d2b5e52dd5af239d93af
parent02c27ce8e5211c3a1ebf556d38c8514c40eeacee (diff)
downloadupstream-e0ed3cba8df9fae39f1cb7dce3096300152b8ada.tar.gz
upstream-e0ed3cba8df9fae39f1cb7dce3096300152b8ada.tar.bz2
upstream-e0ed3cba8df9fae39f1cb7dce3096300152b8ada.zip
[mcs814x] cleanup image generation
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33065 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/mcs814x/image/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/target/linux/mcs814x/image/Makefile b/target/linux/mcs814x/image/Makefile
index 293013a105..89772c98ef 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