]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
kernel-yocto: allow cfg fragments to be specified as required
authorBruce Ashfield <bruce.ashfield@gmail.com>
Thu, 7 Nov 2024 02:29:08 +0000 (21:29 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Nov 2024 13:31:23 +0000 (13:31 +0000)
commit0a84a3dd00543adffdef4fcf5381faab2984541e
tree59def99f2139b3b2633a745b46c3c8ce8ac1b73a
parent99e51028331ee80ac8b55652ab895636b8b39979
kernel-yocto: allow cfg fragments to be specified as required

When .scc files are used, a configuration fragment can be declared
as "hardware" (required) or "non-hardware" (optional).

By default the configuration audit only warns about hardware
options. We can extend that default level of auditing to configuration
fragments that are on the SRC_URI or in KERNEL_FEATURES by
adding the ability to put a specifier after the fragment.

 i.e. KERNEL_FEATURES:append = 'hardening.config:required'

This is particular useful for fragments that are outside of
the kernel-cache (in a layer, in a kernel tree, etc)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/kernel-yocto.bbclass