diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-10-02 03:33:44 +0000 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-10-03 01:28:52 +0000 |
commit | df856b9b73de8d43643e787bb531c456aeaa267a (patch) | |
tree | 9bc2848db1970519baf8c6e40304556e1a389d4f | |
parent | b4e50f377f205b5815a9c7484fb181ada412e3af (diff) | |
download | meta-virtualization-df856b9b73de8d43643e787bb531c456aeaa267a.tar.gz |
kernel: make yocto-cfg-fragment dependency conditional
There's no sense adding a fragment dependency to kernels
that don't support merging. This commit restores the check
we previously had for an inherit of kernel-yocto before
adding the configuration fragmment dependency.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-kernel/linux/linux-yocto_virtualization.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-yocto_virtualization.inc b/recipes-kernel/linux/linux-yocto_virtualization.inc index 1426cd55..283be0f8 100644 --- a/recipes-kernel/linux/linux-yocto_virtualization.inc +++ b/recipes-kernel/linux/linux-yocto_virtualization.inc | |||
@@ -43,7 +43,7 @@ def kernel_meta_ver_depends(d): | |||
43 | else: | 43 | else: |
44 | return "" | 44 | return "" |
45 | 45 | ||
46 | KERNEL_CFG_DEPENDS ?= "yocto-cfg-fragments-${LINUX_MAJOR}.${LINUX_MINOR}-native:do_populate_sysroot" | 46 | KERNEL_CFG_DEPENDS ?= "${@['', 'yocto-cfg-fragments-${LINUX_MAJOR}.${LINUX_MINOR}-native:do_populate_sysroot'][(bb.data.inherits_class('kernel-yocto', d))]}" |
47 | 47 | ||
48 | 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')} \ |
49 | ${@kernel_cache_feature(d.getVar('SRC_URI'),'cfg/xt-checksum.scc')} \ | 49 | ${@kernel_cache_feature(d.getVar('SRC_URI'),'cfg/xt-checksum.scc')} \ |