From b4dfe90a5e7a4fd1ac92f8c85ba852f9d28fea74 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Fri, 6 Dec 2019 13:51:57 -0500 Subject: conf: fix meta-virt version / config include As was reported: https://lists.yoctoproject.org/g/meta-virtualization/message/4173?p=,,,20,0,0,0::Created,,conf%2Flayer.conf+is+broken,20,2,0,61269733 The conditional include of the meta-virt versions and config was not working properly due to parse time constraints. This commit fixes that by following the example of the meta-cube layer and instead using a user bbclass to load the .inc file after distro/distro features have been resolved by bitbake. Signed-off-by: Bruce Ashfield --- classes/meta-virt-cfg.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 classes/meta-virt-cfg.bbclass (limited to 'classes') diff --git a/classes/meta-virt-cfg.bbclass b/classes/meta-virt-cfg.bbclass new file mode 100644 index 00000000..bf63a06f --- /dev/null +++ b/classes/meta-virt-cfg.bbclass @@ -0,0 +1,6 @@ +# We need to load the meta-virt config components, only if "virtualization" +# is in the distro features. Since we don't know the distro flags during +# layer.conf load time, we delay using a special bbclass that simply includes +# the META_VIRT_CONFIG_PATH file. + +include ${META_VIRT_CONFIG_PATH} \ No newline at end of file -- cgit v1.2.3-54-g00ecf