diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2018-11-24 11:30:46 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2018-12-05 14:42:27 +0800 |
commit | 13ae1339c24a5d431274bdd324048f1043045ae5 (patch) | |
tree | 6141b8f56c85dae757c370e5811930e0635714cc /recipes-kernel/linux/linux-intel/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch | |
parent | f7a9272983abac3a5269286f8d214765f49af656 (diff) | |
download | meta-intel-13ae1339c24a5d431274bdd324048f1043045ae5.tar.gz |
linux-intel/4.19: add recipe
Builds 4.19/base from linux-intel-lts.
Include a patch from linux-yocto 4.18 to detect ncurses correctly when
cross-compiling and move the older patch to version specific recipes
from inc.
In addition to intel-common kernel configs from yocto-kernel-cache, this
also includes security.scc feature which enables a set of configs with
the aim of reducing the kernel attack surface and/or of performing
additional checks and validation of commonly used structures in kernel.
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 | 48 |
1 files changed, 48 insertions, 0 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 new file mode 100644 index 00000000..3dc71ff2 --- /dev/null +++ b/recipes-kernel/linux/linux-intel/0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch | |||
@@ -0,0 +1,48 @@ | |||
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 | scripts/kconfig/mconf-cfg.sh | 8 ++++++++ | ||
25 | 1 file changed, 8 insertions(+) | ||
26 | |||
27 | diff --git a/scripts/kconfig/mconf-cfg.sh b/scripts/kconfig/mconf-cfg.sh | ||
28 | index c812872d7f9d..42d20819025c 100755 | ||
29 | --- a/scripts/kconfig/mconf-cfg.sh | ||
30 | +++ b/scripts/kconfig/mconf-cfg.sh | ||
31 | @@ -4,6 +4,14 @@ | ||
32 | PKG="ncursesw" | ||
33 | PKG2="ncurses" | ||
34 | |||
35 | +if [ "$CROSS_CURSES_LIB" != "" ]; then | ||
36 | + echo libs=\'$CROSS_CURSES_LIB\' | ||
37 | + if [ x"$CROSS_CURSES_INC" != x ]; then | ||
38 | + echo cflags=\'$CROSS_CURSES_INC\' | ||
39 | + fi | ||
40 | + exit 0 | ||
41 | +fi | ||
42 | + | ||
43 | if [ -n "$(command -v pkg-config)" ]; then | ||
44 | if pkg-config --exists $PKG; then | ||
45 | echo cflags=\"$(pkg-config --cflags $PKG)\" | ||
46 | -- | ||
47 | 2.17.1 | ||
48 | |||