diff options
author | John Crispin <blogic@openwrt.org> | 2016-03-23 12:52:38 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2016-03-23 12:52:38 +0000 |
commit | 8c25da6fa08db5e6c4976e67f645646733eed454 (patch) | |
tree | 28d5204d0f76555909d4bd84db8935263afb8ce1 /target/linux/zynq/image | |
parent | 65a7c50eed482d192106ca7c50c9760b6ebbed1d (diff) | |
download | master-187ad058-8c25da6fa08db5e6c4976e67f645646733eed454.tar.gz master-187ad058-8c25da6fa08db5e6c4976e67f645646733eed454.tar.bz2 master-187ad058-8c25da6fa08db5e6c4976e67f645646733eed454.zip |
zynq: Simplify boot-img build
by adding Device/DefaultConfig macro to define the dts and device in
lower case.
Signed-off-by: Jason Wu <jason.wu.misc@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49077 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/zynq/image')
-rw-r--r-- | target/linux/zynq/image/Makefile | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/target/linux/zynq/image/Makefile b/target/linux/zynq/image/Makefile index 2924a5d3ea..99293a6aad 100644 --- a/target/linux/zynq/image/Makefile +++ b/target/linux/zynq/image/Makefile @@ -32,13 +32,13 @@ define Image/boot-imgs # create FIT image with rootfs ./mkits.sh \ - -D $(1) -o $(KDIR)/fit-$(1).its -k $(KDIR)/zImage \ + -D $(DEVICE_LC) -o $(KDIR)/fit-$(DEVICE_LC).its -k $(KDIR)/zImage \ -d $(BIN_DIR)/$(IMG_PREFIX)-system.dtb \ -C none -a $(KERNEL_LOADADDR) -e $(KERNEL_ENTRY_POINT) \ -A $(ARCH) -v $(LINUX_VERSION) \ -r $(BIN_DIR)/$(IMG_PREFIX)-rootfs.cpio.gz -z gzip - PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $(KDIR)/fit-$(1).its $(KDIR)/fit-$(1).itb - $(CP) $(KDIR)/fit-$(1).itb $(BIN_DIR)/$(IMG_PREFIX)-fit.itb + PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $(KDIR)/fit-$(DEVICE_LC).its $(KDIR)/fit-$(DEVICE_LC).itb + $(CP) $(KDIR)/fit-$(DEVICE_LC).itb $(BIN_DIR)/$(IMG_PREFIX)-fit.itb ln -fs $(IMG_PREFIX)-fit.itb $(BIN_DIR)/fit.itb endef @@ -57,19 +57,23 @@ define Device/Default DEVICE_DTS := PROFILE_SANITIZED := endef - DEVICE_VARS += DEVICE_DTS +define Device/DefaultConfig + DEVICE_LC = $(1) + IMG_PREFIX = zynq-$(1) + DEVICE_DTS = zynq-$(1) +endef + ### ZC702 ### define Device/ZC702 - DEVICE_DTS := zynq-zc702 + $(call Device/DefaultConfig,zc702) endef -Image/boot-imgs/ZC702=$(call Image/boot-imgs,zc702) define Image/BuildKernel $(eval $(call Device/$(PROFILE))) - $(call Image/boot-imgs/$(PROFILE)) + $(call Image/boot-imgs) endef $(eval $(call BuildImage)) |