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