mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] kbuild: dtc: use env to resolve echo
@ 2022-01-20  7:47 Rouven Czerwinski
  2022-01-20  8:36 ` Trent Piepho
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Rouven Czerwinski @ 2022-01-20  7:47 UTC (permalink / raw)
  To: barebox; +Cc: Rouven Czerwinski

Posix does not mandate to have binaries within a certain path, but
rather that the utilities may be available. Use env to resolve and call
echo from PATH.

Fixes: 2ae7ac7ab2f1 ("kbuild: dtc: Allow adding device tree fragments via config")

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
---
 scripts/Makefile.lib | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 13b1789c01..94ca1b771b 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -340,7 +340,7 @@ dts-frags = $(subst $(quote),,$(CONFIG_EXTERNAL_DTS_FRAGMENTS))
 quiet_cmd_dtc = DTC     $@
 # For compatibility between make 4.2 and 4.3
 H := \#
-cmd_dtc = /bin/echo -e '$(H)define $(subst -,_,$(*F))_dts 1\n'$(foreach f,$< $(dts-frags),'$(H)include "$(f)"\n') | \
+cmd_dtc = /usr/bin/env echo -e '$(H)define $(subst -,_,$(*F))_dts 1\n'$(foreach f,$< $(dts-frags),'$(H)include "$(f)"') | \
 	$(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) - ; \
 	$(objtree)/scripts/dtc/dtc -O dtb -o $@ -b 0 \
 		-i $(srctree)/arch/$(SRCARCH)/dts $(DTC_FLAGS) \
-- 
2.34.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


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

end of thread, other threads:[~2022-02-21 14:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-20  7:47 [PATCH] kbuild: dtc: use env to resolve echo Rouven Czerwinski
2022-01-20  8:36 ` Trent Piepho
2022-01-20  8:46   ` Rouven Czerwinski
2022-01-20  8:56 ` Sascha Hauer
2022-01-20  9:14   ` Michael Olbrich
2022-02-21 14:41 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox