summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-fslc-imx/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-fslc-imx/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch')
-rw-r--r--recipes-kernel/linux/linux-fslc-imx/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch51
1 files changed, 0 insertions, 51 deletions
diff --git a/recipes-kernel/linux/linux-fslc-imx/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch b/recipes-kernel/linux/linux-fslc-imx/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch
deleted file mode 100644
index 0b2d077d..00000000
--- a/recipes-kernel/linux/linux-fslc-imx/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch
+++ /dev/null
@@ -1,51 +0,0 @@
1From 846b11d8c834af4fa62393dadb490ea8246b332c Mon Sep 17 00:00:00 2001
2From: Bruce Ashfield <bruce.ashfield@windriver.com>
3Date: Mon, 2 Jul 2018 23:10:28 -0400
4Subject: [PATCH] menuconfig,mconf-cfg: Allow specification of ncurses location
5
6In some cross build environments such as the Yocto Project build
7environment it provides an ncurses library that is compiled
8differently than the host's version. This causes display corruption
9problems when the host's curses includes are used instead of the
10includes from the provided compiler are overridden. There is a second
11case where there is no curses libraries at all on the host system and
12menuconfig will just fail entirely.
13
14The solution is simply to allow an override variable in
15check-lxdialog.sh for environments such as the Yocto Project. Adding
16a CROSS_CURSES_LIB and CROSS_CURSES_INC solves the issue and allowing
17compiling and linking against the right headers and libraries.
18
19Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
20cc: Michal Marek <mmarek@suse.cz>
21cc: linux-kbuild@vger.kernel.org
22Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
23---
24 scripts/kconfig/mconf-cfg.sh | 8 ++++++++
25 1 file changed, 8 insertions(+)
26 mode change 100755 => 100644 scripts/kconfig/mconf-cfg.sh
27
28diff --git a/scripts/kconfig/mconf-cfg.sh b/scripts/kconfig/mconf-cfg.sh
29old mode 100755
30new mode 100644
31index c812872d7f9d..65a9b9e5b8a6
32--- a/scripts/kconfig/mconf-cfg.sh
33+++ b/scripts/kconfig/mconf-cfg.sh
34@@ -4,6 +4,14 @@
35 PKG="ncursesw"
36 PKG2="ncurses"
37
38+if [ "$CROSS_CURSES_LIB" != "" ]; then
39+ echo libs=\'$CROSS_CURSES_LIB\'
40+ if [ x"$CROSS_CURSES_INC" != x ]; then
41+ echo cflags=\'$CROSS_CURSES_INC\'
42+ fi
43+ exit 0
44+fi
45+
46 if [ -n "$(command -v pkg-config)" ]; then
47 if pkg-config --exists $PKG; then
48 echo cflags=\"$(pkg-config --cflags $PKG)\"
49--
502.20.1
51