mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-05 05:15:25 +02:00
kernel/cfg: add space before distro optional features
distro optional features need to ensure that they are space separated or we'll have configuration failures. Additionally, always add a local configuration fragment for easy debug and enablement of options. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
54f80102b0
commit
29603462e1
1
recipes-kernel/linux/linux-yocto/extra-configs.cfg
Normal file
1
recipes-kernel/linux/linux-yocto/extra-configs.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
# placeholder config fragment for local enable and debug
|
|
@ -8,15 +8,8 @@ KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains('DISTRO_FEATURES', 'kvm', 'kvm',
|
|||
# aufs kernel support required for xen-image-minimal
|
||||
KERNEL_FEATURES:append = "${@bb.utils.contains('DISTRO_FEATURES', 'aufs', ' features/aufs/aufs-enable.scc', '', d)}"
|
||||
|
||||
|
||||
# SRC_URI += "file://xt-checksum.scc \
|
||||
# file://ebtables.scc \
|
||||
# file://vswitch.scc \
|
||||
# file://lxc.scc \
|
||||
# file://docker.scc \
|
||||
# file://cgroup-hugetlb.scc \
|
||||
# file://criu.scc \
|
||||
# "
|
||||
# Always add a local/layer fragment for easy debug and enabling of options
|
||||
SRC_URI += "file://extra-configs.cfg"
|
||||
|
||||
# if the kernel-yocto meta-data routine automatically starts to add the
|
||||
# recipe-sysroot-native, we can do away with this conditional, since all
|
||||
|
@ -38,7 +31,7 @@ def kernel_cache_feature(src_uri,feature):
|
|||
def distro_cond_feature(feature_fragment,distro_feature,d):
|
||||
import bb
|
||||
feat = kernel_cache_feature("",feature_fragment)
|
||||
return bb.utils.contains('DISTRO_FEATURES', distro_feature, feat, '', d)
|
||||
return bb.utils.contains('DISTRO_FEATURES', distro_feature, ' ' + feat, ' ', 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