meta-virtualization/recipes-kernel/linux
Bruce Ashfield 8db75f2809 virtualization/config: allow conditional use of yocto-cfg-fragments
To help enforce/guide consistent configuration and to avoid duplicating
configuration fragments into the meta-virt layer, we leverage a native
provider of the yocto-kernel-cache fragment repository.

To allow support for kernels that support fragments, but don't have the
yocto-kernel-cache in the kernel's SRC_URI, we create two conditional
parts of the virtualization configuration.

If virtualization is enabled in the distro features, the kernel
version matches one of our supported ones, and the kernel inherits
kernel-yocto, we add a depedency on the yocto-cfg-fragments-native
recipe.

That recipe will install the fragment collection to the kernel recipe's
native sysroot.

We can then check for the kernel-cache on the SRC_URI. If it is present,
we use the feature at the standard location. If it is not present, we
add the fragment from the native sysroot.

While we could always use the native sysroot variant, we want to allow
a kernel with a kernel-cache to be the first choice, and provide their
own fragments.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-07-23 09:09:56 -04:00
..
linux-yocto k8s/k3s: add kernel configuration features 2021-03-15 23:15:42 -04:00
linux-%.bbappend kernel: fix conditional application of fragments 2020-10-08 18:33:41 -04:00
linux-yocto_5.4_virtualization.inc kernel: allow fragment re-use from any aware kernel 2020-02-26 08:53:51 -05:00
linux-yocto_5.10_virtualization.inc kernel: add 5.10 include file 2021-01-05 16:34:32 -05:00
linux-yocto_virtualization.inc virtualization/config: allow conditional use of yocto-cfg-fragments 2021-07-23 09:09:56 -04:00
linux-yocto-dev.bbappend kernel: Add bbappend for linux-yocto-dev 2019-01-25 08:31:06 -05:00
yocto-cfg-fragments.bb yocto-cfg-fragments: introduce native provider of configuration fragments 2021-07-23 09:09:56 -04:00