mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-05 05:15:25 +02:00
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>
This commit is contained in:
parent
b4e50f377f
commit
df856b9b73
|
@ -43,7 +43,7 @@ def kernel_meta_ver_depends(d):
|
|||
else:
|
||||
return ""
|
||||
|
||||
KERNEL_CFG_DEPENDS ?= "yocto-cfg-fragments-${LINUX_MAJOR}.${LINUX_MINOR}-native:do_populate_sysroot"
|
||||
KERNEL_CFG_DEPENDS ?= "${@['', 'yocto-cfg-fragments-${LINUX_MAJOR}.${LINUX_MINOR}-native:do_populate_sysroot'][(bb.data.inherits_class('kernel-yocto', d))]}"
|
||||
|
||||
KERNEL_CACHE_FEATURES ?= "${@kernel_cache_feature(d.getVar('SRC_URI'),'cfg/virtio.scc')} \
|
||||
${@kernel_cache_feature(d.getVar('SRC_URI'),'cfg/xt-checksum.scc')} \
|
||||
|
|
Loading…
Reference in New Issue
Block a user