diff options
author | Victor Kamensky via Openembedded-core <openembedded-core@lists.openembedded.org> | 2018-10-23 22:04:26 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-25 14:36:34 +0100 |
commit | 8dce789ae1a2c11521ebe895fd3bd636cff64261 (patch) | |
tree | e1e9f1f154a31ba19fde2c94c71a61a862e89c04 /meta | |
parent | 5f56ce58360320d7ef9526b3bdcc7e26a647b6de (diff) | |
download | openembedded-core-contrib-8dce789ae1a2c11521ebe895fd3bd636cff64261.tar.gz |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-kernel/linux/kernel-devsrc.bb | 3 |
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 57585722215..361ad21e1fc 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 |