All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Makefile: Prioritize external dtb if defined
@ 2019-03-25 14:55 Michal Simek
  2019-03-30 21:18 ` Simon Glass
  2019-05-19 20:44 ` Tom Rini
  0 siblings, 2 replies; 8+ messages in thread
From: Michal Simek @ 2019-03-25 14:55 UTC (permalink / raw)
  To: u-boot

Prioritize external dtb if its passed via EXT_DTB
than the dtb that was built in the tree. With this
patch it appends the specified external dtb to
the u-boot image.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
---

 Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Makefile b/Makefile
index c1af9307b38e..83da41d87d6e 100644
--- a/Makefile
+++ b/Makefile
@@ -1020,8 +1020,13 @@ MKIMAGEFLAGS_fit-dtb.blob = -f auto -A $(ARCH) -T firmware -C none -O u-boot \
 	-a 0 -e 0 -E \
 	$(patsubst %,-b arch/$(ARCH)/dts/%.dtb,$(subst ",,$(CONFIG_OF_LIST))) -d /dev/null
 
+ifneq ($(EXT_DTB),)
+u-boot-fit-dtb.bin: u-boot-nodtb.bin $(EXT_DTB)
+		$(call if_changed,cat)
+else
 u-boot-fit-dtb.bin: u-boot-nodtb.bin fit-dtb.blob
 	$(call if_changed,cat)
+endif
 
 u-boot.bin: u-boot-fit-dtb.bin FORCE
 	$(call if_changed,copy)
-- 
1.9.1

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

end of thread, other threads:[~2019-05-20 14:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-25 14:55 [U-Boot] [PATCH] Makefile: Prioritize external dtb if defined Michal Simek
2019-03-30 21:18 ` Simon Glass
2019-05-19 20:44 ` Tom Rini
2019-05-19 22:03   ` Marek Vasut
2019-05-19 22:08     ` Tom Rini
2019-05-19 22:15       ` Marek Vasut
2019-05-19 18:07         ` Michal Simek
2019-05-20 14:04           ` Tom Rini

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.