aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2018-07-02 23:10:28 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2018-08-21 23:59:49 -0400
commitbd6314212686ef8156a108b6f1eec67d34402878 (patch)
tree1a48a24a50321f2dc9c59905efe3d7fed86476dc
parent0aa800372a846d6ed2c0fc3e0fdc22656d268968 (diff)
downloadlinux-yocto-bd6314212686ef8156a108b6f1eec67d34402878.tar.gz
menuconfig,mconf-cfg: Allow specification of ncurses location
In some cross build environments such as the Yocto Project build environment it provides an ncurses library that is compiled differently than the host's version. This causes display corruption problems when the host's curses includes are used instead of the includes from the provided compiler are overridden. There is a second case where there is no curses libraries at all on the host system and menuconfig will just fail entirely. The solution is simply to allow an override variable in check-lxdialog.sh for environments such as the Yocto Project. Adding a CROSS_CURSES_LIB and CROSS_CURSES_INC solves the issue and allowing compiling and linking against the right headers and libraries. Signed-off-by: Jason Wessel <jason.wessel@windriver.com> cc: Michal Marek <mmarek@suse.cz> cc: linux-kbuild@vger.kernel.org Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rwxr-xr-xscripts/kconfig/mconf-cfg.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/kconfig/mconf-cfg.sh b/scripts/kconfig/mconf-cfg.sh
index 3bd1f9a363e6..ae63ac4eb407 100755
--- a/scripts/kconfig/mconf-cfg.sh
+++ b/scripts/kconfig/mconf-cfg.sh
@@ -12,6 +12,14 @@ if [ "$CROSS_CURSES_LIB" != "" ]; then
exit 0
fi
+if [ "$CROSS_CURSES_LIB" != "" ]; then
+ echo libs=\'$CROSS_CURSES_LIB\'
+ if [ x"$CROSS_CURSES_INC" != x ]; then
+ echo cflags=\'$CROSS_CURSES_INC\'
+ fi
+ exit 0
+fi
+
if pkg-config --exists $PKG; then
echo cflags=\"$(pkg-config --cflags $PKG)\"
echo libs=\"$(pkg-config --libs $PKG)\"