aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/omap/image
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2014-02-13 10:43:32 +0000
committerImre Kaloz <kaloz@openwrt.org>2014-02-13 10:43:32 +0000
commit23122cc26eed5dca0dde4814551da2c9395979c4 (patch)
tree848c2c56391d69e3247ff67e4839178842d62a6c /target/linux/omap/image
parent9a2f69609c686af0c93b5a18bde2bfd2e1e8d5c6 (diff)
downloadupstream-23122cc26eed5dca0dde4814551da2c9395979c4.tar.gz
upstream-23122cc26eed5dca0dde4814551da2c9395979c4.tar.bz2
upstream-23122cc26eed5dca0dde4814551da2c9395979c4.zip
[omap]: change image generation logic
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39580 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/omap/image')
-rw-r--r--target/linux/omap/image/Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/target/linux/omap/image/Makefile b/target/linux/omap/image/Makefile
index 1f6f28aded..c2f6f7cd94 100644
--- a/target/linux/omap/image/Makefile
+++ b/target/linux/omap/image/Makefile
@@ -15,17 +15,10 @@ define Image/BuildKernel
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
$(CP) $(KDIR)/zImage-initramfs $(BIN_DIR)/openwrt-$(BOARD)-zImage-initramfs
endif
- -mkdir $(BIN_DIR)/dtbs
- -$(CP) $(LINUX_DIR)/arch/arm/boot/dts/am335x*.dtb $(BIN_DIR)/dtbs/
- -$(CP) $(LINUX_DIR)/arch/arm/boot/dts/omap3*.dtb $(BIN_DIR)/dtbs/
- -$(CP) $(LINUX_DIR)/arch/arm/boot/dts/omap4*.dtb $(BIN_DIR)/dtbs/
-endef
-
-define Image/Build
ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_KERNEL),)
$(INSTALL_DIR) $(TARGET_DIR)/boot
- $(CP) $(KDIR)/zImage $(TARGET_DIR)/boot/
+ $(CP) $(BIN_DIR)/openwrt-$(BOARD)-zImage $(TARGET_DIR)/boot/zImage
endif
ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_DTB),)
$(INSTALL_DIR) $(TARGET_DIR)/boot
@@ -33,6 +26,13 @@ define Image/Build
$(CP) $(LINUX_DIR)/arch/arm/boot/dts/omap3*.dtb $(TARGET_DIR)/boot/
$(CP) $(LINUX_DIR)/arch/arm/boot/dts/omap4*.dtb $(TARGET_DIR)/boot/
endif
+ -mkdir $(BIN_DIR)/dtbs
+ -$(CP) $(LINUX_DIR)/arch/arm/boot/dts/am335x*.dtb $(BIN_DIR)/dtbs/
+ -$(CP) $(LINUX_DIR)/arch/arm/boot/dts/omap3*.dtb $(BIN_DIR)/dtbs/
+ -$(CP) $(LINUX_DIR)/arch/arm/boot/dts/omap4*.dtb $(BIN_DIR)/dtbs/
+endef
+
+define Image/Build
$(call Image/Build/$(1),$(1))
endef