Commit a3ee9470 authored by Amerigo Wang's avatar Amerigo Wang Committed by Sam Ravnborg

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: default avatarAlek Du <alek.du@intel.com>
Signed-off-by: default avatarWANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent db9038c8
...@@ -100,7 +100,7 @@ as-option = $(call try-run,\ ...@@ -100,7 +100,7 @@ as-option = $(call try-run,\
# Usage: cflags-y += $(call as-instr,instr,option1,option2) # Usage: cflags-y += $(call as-instr,instr,option1,option2)
as-instr = $(call try-run,\ as-instr = $(call try-run,\
echo -e "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -xassembler -o "$$TMP" -,$(2),$(3)) /bin/echo -e "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -xassembler -o "$$TMP" -,$(2),$(3))
# cc-option # cc-option
# Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586) # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586)
......
...@@ -9,7 +9,7 @@ paths="$@" ...@@ -9,7 +9,7 @@ paths="$@"
# Doing this once at the beginning saves a lot of time, on a cache-hot tree. # Doing this once at the beginning saves a lot of time, on a cache-hot tree.
Kconfigs="`find . -name 'Kconfig' -o -name 'Kconfig*[^~]'`" Kconfigs="`find . -name 'Kconfig' -o -name 'Kconfig*[^~]'`"
echo -e "File list \tundefined symbol used" /bin/echo -e "File list \tundefined symbol used"
find $paths -name '*.[chS]' -o -name 'Makefile' -o -name 'Makefile*[^~]'| while read i find $paths -name '*.[chS]' -o -name 'Makefile' -o -name 'Makefile*[^~]'| while read i
do do
# Output the bare Kconfig variable and the filename; the _MODULE part at # Output the bare Kconfig variable and the filename; the _MODULE part at
...@@ -54,6 +54,6 @@ while read symb files; do ...@@ -54,6 +54,6 @@ while read symb files; do
# beyond the purpose of this script. # beyond the purpose of this script.
symb_bare=`echo $symb | sed -e 's/_MODULE//'` symb_bare=`echo $symb | sed -e 's/_MODULE//'`
if ! grep -q "\<$symb_bare\>" $Kconfigs; then if ! grep -q "\<$symb_bare\>" $Kconfigs; then
echo -e "$files: \t$symb" /bin/echo -e "$files: \t$symb"
fi fi
done|sort done|sort
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment