diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2023-03-20 09:04:54 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2023-03-20 09:06:47 -0400 |
commit | df08c3643f4a8920cd6ce90b8d6a5099d7543e61 (patch) | |
tree | af1ab8b6f65576ed2fd22f7a2bcf987038b8047a /classes | |
parent | 25bbebeba0fc4f6c0d56b01fc15b03ddd243b1bd (diff) | |
download | meta-virtualization-df08c3643f4a8920cd6ce90b8d6a5099d7543e61.tar.gz |
conf: make container recipes parseable when virtualization is not set
The container stack flexibilty features set defaults (like other
parts of the layer) when 'virtualization' is in the distro features.
That reqirement means that the recipes fail parsing and QA checks
when the distro feature isn't enabled.
The defaults are currently safe for a virtualization enabled and
disabled configuration, so we include them in either case.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/meta-virt-container-cfg.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/meta-virt-container-cfg.bbclass b/classes/meta-virt-container-cfg.bbclass index 0688f525..9a4b144e 100644 --- a/classes/meta-virt-container-cfg.bbclass +++ b/classes/meta-virt-container-cfg.bbclass | |||
@@ -3,4 +3,8 @@ | |||
3 | # layer.conf load time, we delay using a special bbclass that simply includes | 3 | # layer.conf load time, we delay using a special bbclass that simply includes |
4 | # the META_VIRT_CONTAINER_CONFIG_PATH file. | 4 | # the META_VIRT_CONTAINER_CONFIG_PATH file. |
5 | 5 | ||
6 | include ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', '${META_VIRT_CONTAINER_CONFIG_PATH}', '', d)} | 6 | # the defaults are valid if we do or don't have virtualization enabled, so |
7 | # we include it in either case below. But we leave the pattern in place, to | ||
8 | # match the other configs of the layer and in case the above statement isn't | ||
9 | # always true in the future. | ||
10 | include ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', '${META_VIRT_CONTAINER_CONFIG_PATH}', '${META_VIRT_CONTAINER_CONFIG_PATH}', d)} | ||