On Wed, Oct 24, 2018 at 1:04 AM Victor Kamensky via Openembedded-core <[email protected]> wrote: > > 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 <[email protected]> > --- > To reproduce this issue add to conf/local.conf selinux fragment: > KERNEL_EXTRA_FEATURES_append = " cgl/features/selinux/selinux.scc" > build core-image-lsb-sdk and run 'cd /usr/src/kernel; make scripts'
There will be a few of these that pop up over time. No concerns from me, the header file count is small for that directory, so we aren't adding much to the overall size. Acked-by: Bruce Ashfield <[email protected]> > > 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 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 > -- > 2.17.2 > > -- > _______________________________________________ > Openembedded-core mailing list > [email protected] > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end" -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
