All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] imx: add rules for U-Boot DTB support
@ 2014-03-17  8:58 Stefano Babic
  2014-03-17  8:58 ` [U-Boot] [PATCH 2/2] mx6: add example DTB for mx6qsabreauto Stefano Babic
  2014-03-31  7:50 ` [U-Boot] [PATCH v2 1/2] imx: add rules for U-Boot DTB support Stefano Babic
  0 siblings, 2 replies; 11+ messages in thread
From: Stefano Babic @ 2014-03-17  8:58 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Stefano Babic <sbabic@denx.de>
---

 Makefile                     |    6 +++---
 arch/arm/config.mk           |    4 ++++
 arch/arm/imx-common/Makefile |    8 ++++++++
 3 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 0281171..0f7cabb 100644
--- a/Makefile
+++ b/Makefile
@@ -757,6 +757,9 @@ dtbs dts/dt.dtb: checkdtc u-boot
 u-boot-dtb.bin: u-boot.bin dts/dt.dtb FORCE
 	$(call if_changed,cat)
 
+%.imx: %.bin
+	$(Q)$(MAKE) $(build)=arch/arm/imx-common $@
+
 quiet_cmd_copy = COPY    $@
       cmd_copy = cp $< $@
 
@@ -810,9 +813,6 @@ MKIMAGEFLAGS_u-boot.pbl = -n $(CONFIG_SYS_FSL_PBL_RCW) \
 u-boot.img u-boot.kwb u-boot.pbl: u-boot.bin FORCE
 	$(call if_changed,mkimage)
 
-u-boot.imx: u-boot.bin
-	$(Q)$(MAKE) $(build)=arch/arm/imx-common $@
-
 u-boot.sha1:	u-boot.bin
 		tools/ubsha1 u-boot.bin
 
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)
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-04-09  6:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-17  8:58 [U-Boot] [PATCH 1/2] imx: add rules for U-Boot DTB support Stefano Babic
2014-03-17  8:58 ` [U-Boot] [PATCH 2/2] mx6: add example DTB for mx6qsabreauto Stefano Babic
2014-03-17 12:54   ` Fabio Estevam
2014-03-17 14:22     ` Stefano Babic
2014-03-17 14:27       ` Fabio Estevam
2014-03-17 14:40         ` Stefano Babic
2014-03-31  7:50 ` [U-Boot] [PATCH v2 1/2] imx: add rules for U-Boot DTB support Stefano Babic
2014-03-31  7:50   ` [U-Boot] [PATCH v2 2/2] mx6: add example DTB for mx6qsabreauto Stefano Babic
2014-04-09  2:19     ` Masahiro Yamada
2014-04-09  6:56       ` Stefano Babic
2014-04-02  8:47   ` [U-Boot] [PATCH v2 1/2] imx: add rules for U-Boot DTB support Stefano Babic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.