diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-09-24 12:52:33 +0000 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-10-03 01:28:52 +0000 |
commit | 54480c55bee218cd04e22b46f3932140b97eed75 (patch) | |
tree | 79aa5e61907bc187b4572d8a28841c5700bff25f | |
parent | 48e559c4f46cc612f2a81d49c612ed60971d352c (diff) | |
download | meta-virtualization-54480c55bee218cd04e22b46f3932140b97eed75.tar.gz |
kernel: simplify the kernel-cfg-fragments-native dependency
The routine calculating the -native depdenency for configuration
fragments had issues with variations in kernel PV definitions.
To avoid making the routine even more complex, this commit switches
to using the same variables that include the correct virtualization
include file. This way, if bitbake has located and included the
file that adds the -native dependency, we know that the variables
will find the correct recipe.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-kernel/linux/linux-yocto_virtualization.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-yocto_virtualization.inc b/recipes-kernel/linux/linux-yocto_virtualization.inc index e729c3b2..f58c9f9d 100644 --- a/recipes-kernel/linux/linux-yocto_virtualization.inc +++ b/recipes-kernel/linux/linux-yocto_virtualization.inc | |||
@@ -33,6 +33,8 @@ def distro_cond_feature(feature_fragment,distro_feature,d): | |||
33 | feat = kernel_cache_feature("",feature_fragment) | 33 | feat = kernel_cache_feature("",feature_fragment) |
34 | return bb.utils.contains('DISTRO_FEATURES', distro_feature, ' ' + feat, ' ', d) | 34 | return bb.utils.contains('DISTRO_FEATURES', distro_feature, ' ' + feat, ' ', d) |
35 | 35 | ||
36 | # kept as a reference if we go back to a dynamically calculated | ||
37 | # fragment dependency. | ||
36 | def kernel_meta_ver_depends(d): | 38 | def kernel_meta_ver_depends(d): |
37 | yocto_enabled = bb.data.inherits_class('kernel-yocto', d) | 39 | yocto_enabled = bb.data.inherits_class('kernel-yocto', d) |
38 | if yocto_enabled: | 40 | if yocto_enabled: |
@@ -41,7 +43,7 @@ def kernel_meta_ver_depends(d): | |||
41 | else: | 43 | else: |
42 | return "" | 44 | return "" |
43 | 45 | ||
44 | KERNEL_CFG_DEPENDS ?= "${@kernel_meta_ver_depends(d)}" | 46 | KERNEL_CFG_DEPENDS ?= "yocto-cfg-fragments-${LINUX_MAJOR}.${LINUX_MINOR}-native:do_populate_sysroot" |
45 | 47 | ||
46 | KERNEL_CACHE_FEATURES ?= "${@kernel_cache_feature(d.getVar('SRC_URI'),'cfg/virtio.scc')} \ | 48 | KERNEL_CACHE_FEATURES ?= "${@kernel_cache_feature(d.getVar('SRC_URI'),'cfg/virtio.scc')} \ |
47 | ${@kernel_cache_feature(d.getVar('SRC_URI'),'cfg/xt-checksum.scc')} \ | 49 | ${@kernel_cache_feature(d.getVar('SRC_URI'),'cfg/xt-checksum.scc')} \ |