summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-intel/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch
diff options
context:
space:
mode:
authorNaveen Saini <naveen.kumar.saini@intel.com>2024-01-17 16:30:39 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2024-01-22 11:57:57 +0800
commit0bcaf75ea870a73eb1227afcfceac84f6d6bd15c (patch)
treed8831b645d453bdf791ba0bacd69510e1372392a /recipes-kernel/linux/linux-intel/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch
parent2d8d97f295df21e1654e77b7c396ca6522392f39 (diff)
downloadmeta-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-.patch22
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 @@
1From ecb938c19d20543382c9bbc42588c29b5ebfd3ed Mon Sep 17 00:00:00 2001 1From 1811da09f42ca5e82282970e8ad014707bc94c82 Mon Sep 17 00:00:00 2001
2From: Bruce Ashfield <bruce.ashfield@windriver.com> 2From: Bruce Ashfield <bruce.ashfield@windriver.com>
3Date: Fri, 12 Aug 2022 13:12:18 +0800 3Date: Mon, 2 Jul 2018 23:10:28 -0400
4Subject: [PATCH] menuconfig,mconf-cfg: Allow specification of ncurses location 4Subject: [PATCH 1/2] menuconfig,mconf-cfg: Allow specification of ncurses
5 location
5 6
6In some cross build environments such as the Yocto Project build 7In some cross build environments such as the Yocto Project build
7environment it provides an ncurses library that is compiled 8environment it provides an ncurses library that is compiled
@@ -24,29 +25,28 @@ cc: linux-kbuild@vger.kernel.org
24Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> 25Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
25Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> 26Signed-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
30diff --git a/scripts/kconfig/mconf-cfg.sh b/scripts/kconfig/mconf-cfg.sh 31diff --git a/scripts/kconfig/mconf-cfg.sh b/scripts/kconfig/mconf-cfg.sh
31index 025b565e0b7c..6514d19790e6 100755 32index 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--
512.25.1 512.34.1
52 52