mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-05 05:15:25 +02:00
conf: defer DISTRO_FEATURE check to bbclass processing
We were using USER_CLASS loading to allow conditional checking on DISTRO_FEATURES, which triggered distro feature specific version pinning. It was found that DISTRO_FEATURES set in local.conf is not consistently available at layer.conf parse time, hence our checks were not always working as expected (i.e. the version files are not included). If we move the DISTRO_FEATURE check to the bbclasses, and use it to trigger the include, we should have a consistent set of variable resolution and consistent behaviour. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
c1bc3963ba
commit
3a7d446fa9
|
@ -3,4 +3,4 @@
|
|||
# layer.conf load time, we delay using a special bbclass that simply includes
|
||||
# the META_VIRT_CONFIG_PATH file.
|
||||
|
||||
include ${META_VIRT_CONFIG_PATH}
|
||||
include ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', '${META_VIRT_CONFIG_PATH}', '', d)}
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
# layer.conf load time, we delay using a special bbclass that simply includes
|
||||
# the K8S_CONFIG_PATH file.
|
||||
|
||||
include ${K8S_CONFIG_PATH}
|
||||
include ${@bb.utils.contains('DISTRO_FEATURES', 'k8s', '${K8S_CONFIG_PATH}', '', d)}
|
||||
|
|
|
@ -46,5 +46,5 @@ INHERIT += "sanity-meta-virt"
|
|||
# the META_VIRT_CONFIG_PATH file, and likewise for the k8s configs
|
||||
META_VIRT_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/meta-virt-default-versions.inc"
|
||||
K8S_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/k8s-versions.inc"
|
||||
USER_CLASSES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', 'meta-virt-cfg', '', d)}"
|
||||
USER_CLASSES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'k8s', 'meta-virt-k8s-cfg', '', d)}"
|
||||
USER_CLASSES_append = " meta-virt-cfg"
|
||||
USER_CLASSES_append = " meta-virt-k8s-cfg"
|
||||
|
|
Loading…
Reference in New Issue
Block a user