Skip to content

Commit a3ee947

Browse files
congwangsravnborg
authored andcommitted
kbuild,scripts: use non-builtin echo for '-e'
Alek reported that on Ubuntu, where dash is used, 'echo -e' can't work, so let's use non-builtin echo in this case. Reported-by: Alek Du <alek.du@intel.com> Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
1 parent db9038c commit a3ee947

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎scripts/Kbuild.include‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ as-option = $(call try-run,\
100100
# Usage: cflags-y += $(call as-instr,instr,option1,option2)
101101

102102
as-instr = $(call try-run,\
103-
echo -e "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -xassembler -o "$$TMP" -,$(2),$(3))
103+
/bin/echo -e "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -xassembler -o "$$TMP" -,$(2),$(3))
104104

105105
# cc-option
106106
# Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586)

‎scripts/checkkconfigsymbols.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ paths="$@"
99
# Doing this once at the beginning saves a lot of time, on a cache-hot tree.
1010
Kconfigs="`find . -name 'Kconfig' -o -name 'Kconfig*[^~]'`"
1111

12-
echo -e "File list \tundefined symbol used"
12+
/bin/echo -e "File list \tundefined symbol used"
1313
find $paths -name '*.[chS]' -o -name 'Makefile' -o -name 'Makefile*[^~]'| while read i
1414
do
1515
# Output the bare Kconfig variable and the filename; the _MODULE part at
@@ -54,6 +54,6 @@ while read symb files; do
5454
# beyond the purpose of this script.
5555
symb_bare=`echo $symb | sed -e 's/_MODULE//'`
5656
if ! grep -q "\<$symb_bare\>" $Kconfigs; then
57-
echo -e "$files: \t$symb"
57+
/bin/echo -e "$files: \t$symb"
5858
fi
5959
done|sort

0 commit comments

Comments
 (0)