]> code.ossystems Code Review - openembedded-core.git/commit
kernel/yocto: allow dangling KERNEL_FEATURES
authorBruce Ashfield <bruce.ashfield@gmail.com>
Mon, 3 Aug 2020 12:30:27 +0000 (08:30 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Aug 2020 14:12:34 +0000 (15:12 +0100)
commit8d44ea9fbb1ee7bec1062505a9bb1e2d7b360094
tree9dd6064a67dcf1097a533c1cd6a1a73bf0581759
parent69faa62d840330f573101245e0aa3fed17984b70
kernel/yocto: allow dangling KERNEL_FEATURES

KERNEL_FEATURES are explicitly checked by the kern-tools, and trigger
and error when not present. This is since the KERNEL_FEATURES are
specified by layers or BSPs as elements that are requied for correct
operation.

That being said, in order to support more kernel recipes that are using
fragments, but not necessarily the yocto kernel-cache for meta-data,
this change introduces: KERNEL_DANGLING_FEATURES_WARN_ONLY

As you'd expect, when set, missing kernel features only print a
message and warn that runtime issues may occur, but otherwise allow
the kernel configuration and build process to continue.

This was noticed/required when meta-virtualization adopted a more
generic kernel bbappend (to serve the needs of more layers in the
ecosystem), but also specifies some KERNEL_FEATURES. If layers using
a recipe derived from kernel-yocto, but not the main kernel-cache,
used meta-virtualization and error would be thrown due to missing
features. We now can both allow them to continue, and also provide
a more useful message to resolve the issue.

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