summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRouven Czerwinski <r.czerwinski@pengutronix.de>2022-01-20 08:47:33 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-02-21 15:41:03 +0100
commit30c889fcb1495f27976463e4ea69c92b01b88c11 (patch)
treeb45dbd59ac0c4d5fbf7275f36693b289d842bed6 /scripts
parenta5b079b11fa399437775fa975262746a3efdd5ee (diff)
downloadbarebox-30c889fcb1495f27976463e4ea69c92b01b88c11.tar.gz
barebox-30c889fcb1495f27976463e4ea69c92b01b88c11.tar.xz
kbuild: dtc: use env to resolve echo
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> Link: https://lore.barebox.org/20220120074733.176041-1-r.czerwinski@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index e3c1297352..a830364a8b 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -339,7 +339,7 @@ $(obj)/%.dtb.S: $(obj)/%.dtb $(srctree)/scripts/gen-dtb-s FORCE
dts-frags = $(subst $(quote),,$(CONFIG_EXTERNAL_DTS_FRAGMENTS))
quiet_cmd_dtc = DTC $@
# For compatibility between make 4.2 and 4.3
-cmd_dtc = /bin/echo -e '$(pound)define $(subst -,_,$(*F))_dts 1\n'$(foreach f,$< $(dts-frags),'$(pound)include "$(f)"\n') | \
+cmd_dtc = /usr/bin/env echo -e '$(pound)define $(subst -,_,$(*F))_dts 1\n'$(foreach f,$< $(dts-frags),'$(pound)include "$(f)"\n') | \
$(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) \