diff options
Diffstat (limited to 'conf/layer.conf')
-rw-r--r-- | conf/layer.conf | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/conf/layer.conf b/conf/layer.conf index dfca6dac..89e5ac2b 100644 --- a/conf/layer.conf +++ b/conf/layer.conf | |||
@@ -40,4 +40,9 @@ PREFERRED_PROVIDER_virtual/docker ?= "docker-ce" | |||
40 | # Setting SKIP_META_VIRT_SANITY_CHECK to "1" would skip the bbappend files check. | 40 | # Setting SKIP_META_VIRT_SANITY_CHECK to "1" would skip the bbappend files check. |
41 | INHERIT += "sanity-meta-virt" | 41 | INHERIT += "sanity-meta-virt" |
42 | 42 | ||
43 | require ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', 'meta-virt-default-versions.inc', '', d)} | 43 | # We need to load the meta-virt config components, only if "virtualization" |
44 | # is in the distro features. Since we don't know the distro flags during | ||
45 | # layer.conf load time, we delay using a special bbclass that simply includes | ||
46 | # the META_VIRT_CONFIG_PATH file. | ||
47 | META_VIRT_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/meta-virt-default-versions.inc" | ||
48 | USER_CLASSES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', 'meta-virt-cfg', '', d)}" \ No newline at end of file | ||