summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2020-02-10 10:27:56 -0500
committerBruce Ashfield <bruce.ashfield@gmail.com>2020-02-10 10:28:38 -0500
commit3a7d446fa94787eda0bcc2f3759e07db5bda6b2f (patch)
tree289c4722c2244e2c993893e58934b0f8b24576a6 /conf
parentc1bc3963ba98834c835b780114151d6b31dd0261 (diff)
downloadmeta-virtualization-3a7d446fa94787eda0bcc2f3759e07db5bda6b2f.tar.gz
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>
Diffstat (limited to 'conf')
-rw-r--r--conf/layer.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf/layer.conf b/conf/layer.conf
index d0a7ead0..922cb0d6 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -46,5 +46,5 @@ INHERIT += "sanity-meta-virt"
46# the META_VIRT_CONFIG_PATH file, and likewise for the k8s configs 46# the META_VIRT_CONFIG_PATH file, and likewise for the k8s configs
47META_VIRT_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/meta-virt-default-versions.inc" 47META_VIRT_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/meta-virt-default-versions.inc"
48K8S_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/k8s-versions.inc" 48K8S_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/k8s-versions.inc"
49USER_CLASSES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', 'meta-virt-cfg', '', d)}" 49USER_CLASSES_append = " meta-virt-cfg"
50USER_CLASSES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'k8s', 'meta-virt-k8s-cfg', '', d)}" 50USER_CLASSES_append = " meta-virt-k8s-cfg"