aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/imx6/image
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-10-16 10:29:50 +0000
committerLuka Perkov <luka@openwrt.org>2013-10-16 10:29:50 +0000
commitacdb0ac35c4b527b4e827809160c7478b1162817 (patch)
tree84d028bc5f6ebe711d34dd0ac59e38a0a407dd05 /target/linux/imx6/image
parent76dfe21a272cbac9bc633453c764676e84992a8c (diff)
downloadupstream-acdb0ac35c4b527b4e827809160c7478b1162817.tar.gz
upstream-acdb0ac35c4b527b4e827809160c7478b1162817.tar.bz2
upstream-acdb0ac35c4b527b4e827809160c7478b1162817.zip
build: move mkits.sh script to more common place
Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38430
Diffstat (limited to 'target/linux/imx6/image')
-rw-r--r--target/linux/imx6/image/Makefile27
1 files changed, 15 insertions, 12 deletions
diff --git a/target/linux/imx6/image/Makefile b/target/linux/imx6/image/Makefile
index 0bcb85bee5..aad15271a0 100644
--- a/target/linux/imx6/image/Makefile
+++ b/target/linux/imx6/image/Makefile
@@ -11,22 +11,25 @@ BOARDS := \
imx6dl-wandboard \
imx6q-gw5400-a
-# board-specific Flattened Image Tree
-define mkfit
- /bin/sh $(LINUX_DIR)/scripts/mkits.sh -A arm -C none -a $(2) -e $(2) \
- -v 'OpenWrt Linux-$(LINUX_VERSION)' \
- -d $(LINUX_DIR)/arch/arm/boot/dts/$(1).dtb -k $(LINUX_DIR)/arch/arm/boot/zImage \
- -o $(KDIR)/$(1)-uImage.its
- PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $(KDIR)/$(1)-uImage.its $(BIN_DIR)/openwrt-$(1)-uImage.itb
-endef
-
# emit FIT images, DTB's and generic zImage
define Image/BuildKernel
$(foreach board,$(BOARDS),
- $(call mkfit,$(board),0x10008000)
- cp $(LINUX_DIR)/arch/arm/boot/dts/$(board).dtb $(BIN_DIR)
+ cp $(LINUX_DIR)/arch/arm/boot/dts/$(board).dtb $(BIN_DIR)/$(IMG_PREFIX)-$(board).dtb
+
+ $(call Image/BuildKernel/MkFIT,$(board),$(KDIR)/zImage,$(BIN_DIR)/$(IMG_PREFIX)-$(board).dtb,none,0x10008000,0x10008000)
+ cp $(KDIR)/fit-$(board).itb $(BIN_DIR)/$(IMG_PREFIX)-$(board)-uImage.itb
+
+ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
+ $(call Image/BuildKernel/MkFIT,$(board),$(KDIR)/zImage-initramfs,$(BIN_DIR)/$(IMG_PREFIX)-$(board).dtb,none,0x10008000,0x10008000,-initramfs)
+ cp $(KDIR)/fit-$(board)-initramfs.itb $(BIN_DIR)/$(IMG_PREFIX)-$(board)-uImage-initramfs.itb
+ endif
)
- cp $(KDIR)/zImage $(BIN_DIR)/openwrt-$(BOARD)-zImage
+
+ cp $(KDIR)/zImage $(BIN_DIR)/$(IMG_PREFIX)-zImage
+
+ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
+ cp $(KDIR)/zImage-initramfs $(BIN_DIR)/$(IMG_PREFIX)-zImage-initramfs
+ endif
endef
# board-specific sysupgrade image