]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-devsrc: add selinux include files needed by scripts/selinux build
authorVictor Kamensky via Openembedded-core <openembedded-core@lists.openembedded.org>
Wed, 24 Oct 2018 05:04:26 +0000 (22:04 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Oct 2018 13:36:34 +0000 (14:36 +0100)
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>
meta/recipes-kernel/linux/kernel-devsrc.bb

index 5758572221599869d022534512b61dbd802d1132..361ad21e1fc7285481647c152e6234649ed14d9c 100644 (file)
@@ -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