summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2014-03-31 09:50:35 +0200
committerStefano Babic <sbabic@denx.de>2014-04-02 10:45:35 +0200
commite64348f5eb4aef7e119a46b97bdba2cc9cb15fc5 (patch)
treec09c153778e922eda568f68a78a8dac0a4589cb5 /arch/arm
parentbb2637be096b842ee25b96c7cfe4f26e55fb7026 (diff)
downloadu-boot-imx-e64348f5eb4aef7e119a46b97bdba2cc9cb15fc5.zip
u-boot-imx-e64348f5eb4aef7e119a46b97bdba2cc9cb15fc5.tar.gz
u-boot-imx-e64348f5eb4aef7e119a46b97bdba2cc9cb15fc5.tar.bz2
imx: add rules for U-Boot DTB support
Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/config.mk4
-rw-r--r--arch/arm/imx-common/Makefile8
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/config.mk b/arch/arm/config.mk
index 17b7408..5bd3961 100644
--- a/arch/arm/config.mk
+++ b/arch/arm/config.mk
@@ -119,6 +119,10 @@ ifndef CONFIG_SPL_BUILD
ALL-y += SPL
endif
else
+ifeq ($(CONFIG_OF_SEPARATE),y)
+ALL-y += u-boot-dtb.imx
+else
ALL-y += u-boot.imx
endif
endif
+endif
diff --git a/arch/arm/imx-common/Makefile b/arch/arm/imx-common/Makefile
index 16809fe..025cfed 100644
--- a/arch/arm/imx-common/Makefile
+++ b/arch/arm/imx-common/Makefile
@@ -42,6 +42,14 @@ MKIMAGEFLAGS_u-boot.imx = -n $(filter-out $< $(PHONY),$^) -T imximage \
u-boot.imx: u-boot.bin $(IMX_CONFIG) FORCE
$(call if_changed,mkimage)
+ifeq ($(CONFIG_OF_SEPARATE),y)
+MKIMAGEFLAGS_u-boot-dtb.imx = -n $(filter-out $< $(PHONY),$^) -T imximage \
+ -e $(CONFIG_SYS_TEXT_BASE)
+
+u-boot-dtb.imx: u-boot-dtb.bin $(IMX_CONFIG) FORCE
+ $(call if_changed,mkimage)
+endif
+
MKIMAGEFLAGS_SPL = -n $(filter-out $< $(PHONY),$^) -T imximage \
-e $(CONFIG_SPL_TEXT_BASE)