diff options
author | Naveen Saini <naveen.kumar.saini@intel.com> | 2024-01-17 16:30:39 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2024-01-22 11:57:57 +0800 |
commit | 0bcaf75ea870a73eb1227afcfceac84f6d6bd15c (patch) | |
tree | d8831b645d453bdf791ba0bacd69510e1372392a /recipes-kernel/linux/linux-intel/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch | |
parent | 2d8d97f295df21e1654e77b7c396ca6522392f39 (diff) | |
download | meta-intel-0bcaf75ea870a73eb1227afcfceac84f6d6bd15c.tar.gz |
linux-intel: fix menuconfig
Refreshed and include patches from linux-yocto 6.6 to detect ncurses correctly when
cross-compiling.
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'recipes-kernel/linux/linux-intel/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch')
-rw-r--r-- | recipes-kernel/linux/linux-intel/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/recipes-kernel/linux/linux-intel/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch b/recipes-kernel/linux/linux-intel/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch index 9aff37de..a601e783 100644 --- a/recipes-kernel/linux/linux-intel/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch +++ b/recipes-kernel/linux/linux-intel/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch | |||
@@ -1,7 +1,8 @@ | |||
1 | From ecb938c19d20543382c9bbc42588c29b5ebfd3ed Mon Sep 17 00:00:00 2001 | 1 | From 1811da09f42ca5e82282970e8ad014707bc94c82 Mon Sep 17 00:00:00 2001 |
2 | From: Bruce Ashfield <bruce.ashfield@windriver.com> | 2 | From: Bruce Ashfield <bruce.ashfield@windriver.com> |
3 | Date: Fri, 12 Aug 2022 13:12:18 +0800 | 3 | Date: Mon, 2 Jul 2018 23:10:28 -0400 |
4 | Subject: [PATCH] menuconfig,mconf-cfg: Allow specification of ncurses location | 4 | Subject: [PATCH 1/2] menuconfig,mconf-cfg: Allow specification of ncurses |
5 | location | ||
5 | 6 | ||
6 | In some cross build environments such as the Yocto Project build | 7 | In some cross build environments such as the Yocto Project build |
7 | environment it provides an ncurses library that is compiled | 8 | environment it provides an ncurses library that is compiled |
@@ -24,29 +25,28 @@ cc: linux-kbuild@vger.kernel.org | |||
24 | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> | 25 | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> |
25 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | 26 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> |
26 | --- | 27 | --- |
27 | scripts/kconfig/mconf-cfg.sh | 9 +++++++++ | 28 | scripts/kconfig/mconf-cfg.sh | 8 ++++++++ |
28 | 1 file changed, 9 insertions(+) | 29 | 1 file changed, 8 insertions(+) |
29 | 30 | ||
30 | diff --git a/scripts/kconfig/mconf-cfg.sh b/scripts/kconfig/mconf-cfg.sh | 31 | diff --git a/scripts/kconfig/mconf-cfg.sh b/scripts/kconfig/mconf-cfg.sh |
31 | index 025b565e0b7c..6514d19790e6 100755 | 32 | index 1e61f50a5905..38cf8304bb31 100755 |
32 | --- a/scripts/kconfig/mconf-cfg.sh | 33 | --- a/scripts/kconfig/mconf-cfg.sh |
33 | +++ b/scripts/kconfig/mconf-cfg.sh | 34 | +++ b/scripts/kconfig/mconf-cfg.sh |
34 | @@ -4,6 +4,15 @@ | 35 | @@ -7,6 +7,14 @@ libs=$2 |
35 | PKG="ncursesw" | 36 | PKG="ncursesw" |
36 | PKG2="ncurses" | 37 | PKG2="ncurses" |
37 | 38 | ||
38 | +if [ "$CROSS_CURSES_LIB" != "" ]; then | 39 | +if [ "$CROSS_CURSES_LIB" != "" ]; then |
39 | + echo libs=\'$CROSS_CURSES_LIB\' | 40 | + echo libs=\'$CROSS_CURSES_LIB\' |
40 | + if [ x"$CROSS_CURSES_INC" != x ]; then | 41 | + if [ x"$CROSS_CURSES_INC" != x ]; then |
41 | + echo cflags=\'$CROSS_CURSES_INC\' | 42 | + echo cflags=\'$CROSS_CURSES_INC\' |
42 | + fi | 43 | + fi |
43 | + exit 0 | 44 | + exit 0 |
44 | +fi | 45 | +fi |
45 | + | 46 | + |
46 | + | ||
47 | if [ -n "$(command -v ${HOSTPKG_CONFIG})" ]; then | 47 | if [ -n "$(command -v ${HOSTPKG_CONFIG})" ]; then |
48 | if ${HOSTPKG_CONFIG} --exists $PKG; then | 48 | if ${HOSTPKG_CONFIG} --exists $PKG; then |
49 | echo cflags=\"$(${HOSTPKG_CONFIG} --cflags $PKG)\" | 49 | ${HOSTPKG_CONFIG} --cflags ${PKG} > ${cflags} |
50 | -- | 50 | -- |
51 | 2.25.1 | 51 | 2.34.1 |
52 | 52 | ||