cleanup image generation

SVN-Revision: 33065
lede-17.01
Florian Fainelli 2012-08-08 21:50:55 +00:00
parent 17e6de20d0
commit f8386ecbc6
1 changed files with 8 additions and 4 deletions

View File

@ -21,15 +21,19 @@ define Image/Build/MkuImage
-n 'ARM OpenWrt Linux-$(LINUX_VERSION)' -d $(1) $(2); -n 'ARM OpenWrt Linux-$(LINUX_VERSION)' -d $(1) $(2);
endef 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 define Image/Prepare
cp $(LINUX_DIR)/arch/$(ARCH)/boot/zImage $(KDIR)/zImage cp $(LINUX_DIR)/arch/$(ARCH)/boot/zImage $(KDIR)/zImage
endef endef
define Image/BuildKernel define Image/BuildKernel
$(foreach dtb,$(TARGET_DTBS),cp $(KDIR)/zImage $(KDIR)/zImage-$(dtb);) $(foreach dtb,$(TARGET_DTBS),$(call Image/Build/DTB,$(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);)
$(call Image/Build/Initramfs) $(call Image/Build/Initramfs)
endef endef