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:53:44 +0100 |
commit | cf94bdaf3fce0e1cde7ccf60153c8a3bc1bd92c3 (patch) | |
tree | 85eb19282752f10bc24be651498f80e46904dd90 /meta/recipes-kernel | |
parent | 40350b46d5c053b4336cc128922f44ce80e7da9a (diff) | |
download | poky-cf94bdaf3fce0e1cde7ccf60153c8a3bc1bd92c3.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.
(From OE-Core rev: 8dce789ae1a2c11521ebe895fd3bd636cff64261)
Signed-off-by: Victor Kamensky <kamensky@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-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 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() { | |||
210 | cp -a --parents kernel/bounds.c $kerneldir/build | 210 | cp -a --parents kernel/bounds.c $kerneldir/build |
211 | cp -a --parents Kbuild $kerneldir/build | 211 | cp -a --parents Kbuild $kerneldir/build |
212 | fi | 212 | fi |
213 | |||
214 | # required to build scripts/selinux/genheaders/genheaders | ||
215 | cp -a --parents security/selinux/include/* $kerneldir/build/ | ||
213 | ) | 216 | ) |
214 | 217 | ||
215 | # Make sure the Makefile and version.h have a matching timestamp so that | 218 | # Make sure the Makefile and version.h have a matching timestamp so that |