summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Kamensky via Openembedded-core <openembedded-core@lists.openembedded.org>2018-10-23 22:04:26 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-25 14:36:34 +0100
commit8dce789ae1a2c11521ebe895fd3bd636cff64261 (patch)
treee1e9f1f154a31ba19fde2c94c71a61a862e89c04
parent5f56ce58360320d7ef9526b3bdcc7e26a647b6de (diff)
downloadopenembedded-core-contrib-8dce789ae1a2c11521ebe895fd3bd636cff64261.tar.gz
openembedded-core-contrib-8dce789ae1a2c11521ebe895fd3bd636cff64261.tar.bz2
openembedded-core-contrib-8dce789ae1a2c11521ebe895fd3bd636cff64261.zip
kernel-devsrc: add selinux include files needed by scripts/selinux build
If CONFIG_SECURITY_SELINUX=y is enabled in kernel configuration, then 'make scripts' command in /usr/src/kernel fails to build utilities under scripts/selinux that would be pulled in by this config: HOSTCC scripts/selinux/genheaders/genheaders scripts/selinux/genheaders/genheaders.c:19:10: fatal error: classmap.h: No such file or directory #include "classmap.h" To address this issue add security/selinux/include files into kernel-devsrc. Signed-off-by: Victor Kamensky <kamensky@cisco.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-kernel/linux/kernel-devsrc.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb
index 5758572221..361ad21e1f 100644
--- a/meta/recipes-kernel/linux/kernel-devsrc.bb
+++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
@@ -210,6 +210,9 @@ do_install() {
cp -a --parents kernel/bounds.c $kerneldir/build
cp -a --parents Kbuild $kerneldir/build
fi
+
+ # required to build scripts/selinux/genheaders/genheaders
+ cp -a --parents security/selinux/include/* $kerneldir/build/
)
# Make sure the Makefile and version.h have a matching timestamp so that