[oe-commits] [openembedded-core] 02/05: kernel-devsrc: add selinux include files needed by scripts/selinux build

git at git.openembedded.org git at git.openembedded.org
Thu Oct 25 09:46:39 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit c84eedf4b092706616bb851889eeb87e472a32e9
Author: Victor Kamensky via Openembedded-core <openembedded-core at lists.openembedded.org>
AuthorDate: Tue Oct 23 22:04:26 2018 -0700

    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 at cisco.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-kernel/linux/kernel-devsrc.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb
index 5758572..361ad21 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list