The folloing porting lacks of change log and breaks menuconfig.
CROSS_CURSES_LIB or CROSS_CURSES_INC contains xxx"<yyy>" which is
finially evaluated as "xxx"<yyy>"" in which < and > would be
considered as I/O redirection and cause the faliure below.

4ead19c77a5baaf44bfa6600b1be884e47c9d8f1
"menuconfig,mconf-cfg: Allow specification of ncurses location"

scripts/kconfig/.mconf-cfg: line 2: curses.h: No such file or directory
...
mconf.c:(.text+0x894): undefined reference to `stdscr'
...
scripts/Makefile.host:99: recipe for target 'scripts/kconfig/mconf' failed

This patch turns to use single quotes.

Signed-off-by: He Zhe <zhe...@windriver.com>
---
 scripts/kconfig/mconf-cfg.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/kconfig/mconf-cfg.sh b/scripts/kconfig/mconf-cfg.sh
index 557be6dc1abf..3bd1f9a363e6 100755
--- a/scripts/kconfig/mconf-cfg.sh
+++ b/scripts/kconfig/mconf-cfg.sh
@@ -5,9 +5,9 @@ PKG="ncursesw"
 PKG2="ncurses"
 
 if [ "$CROSS_CURSES_LIB" != "" ]; then
-       echo libs=\"$CROSS_CURSES_LIB\"
+       echo libs=\'$CROSS_CURSES_LIB\'
        if [ x"$CROSS_CURSES_INC" != x ]; then
-               echo cflags=\"$CROSS_CURSES_INC\"
+               echo cflags=\'$CROSS_CURSES_INC\'
        fi
        exit 0
 fi
-- 
2.11.0

-- 
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to