[linux-yocto] [PATCH] scripts/kconfig: Fix menuconfig failure
Bruce Ashfield
bruce.ashfield at windriver.com
Mon Aug 13 08:38:33 PDT 2018
Which kernel version(s) are you seeing this issue ? Just linux-yocto-dev ?
Bruce
On 08/11/2018 11:11 AM, He Zhe wrote:
> 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.he at 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
>
More information about the linux-yocto
mailing list