diff options
author | Rouven Czerwinski <r.czerwinski@pengutronix.de> | 2022-01-20 09:46:51 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-02-21 15:37:18 +0100 |
commit | a5b079b11fa399437775fa975262746a3efdd5ee (patch) | |
tree | 629692843b740e51618b686c6edb845b23db5727 /scripts | |
parent | 729ad0c2e8c0b1c4af34174338bbd593bd70050d (diff) | |
download | barebox-a5b079b11fa399437775fa975262746a3efdd5ee.tar.gz barebox-a5b079b11fa399437775fa975262746a3efdd5ee.tar.xz |
Kbuild: use printf for as-instr
Instead of hard coding /bin/echo, port the upstream printf formatting.
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Link: https://lore.barebox.org/20220120084650.183704-1-r.czerwinski@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Kbuild.include | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 838ab11e7c..ab092e455c 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -111,7 +111,7 @@ as-option = $(call try-run,\ # Usage: cflags-y += $(call as-instr,instr,option1,option2) as-instr = $(call try-run,\ - /bin/echo -e "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -xassembler -o "$$TMP" -,$(2),$(3)) + printf "%b\n" "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -xassembler -o "$$TMP" -,$(2),$(3)) # cc-option # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586) |