From 7f6f115d7d8467390d9bf7258cc8a5e7771528c2 Mon Sep 17 00:00:00 2001 From: Christopher Clark Date: Mon, 29 Jun 2020 18:54:44 -0700 Subject: xen: apply layer settings when xen DISTRO_FEATURE is enabled These settings are necessary for Xen and enabling them here, using the same mechanism that is used by k8s in this layer, simplifies building images for Xen. - Ensure that Xen mode is enabled in QEMU. - On ARM platforms: enable Flattened Device Tree (FDT) support. Signed-off-by: Christopher Clark Signed-off-by: Bruce Ashfield --- classes/meta-virt-xen-cfg.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 classes/meta-virt-xen-cfg.bbclass (limited to 'classes') diff --git a/classes/meta-virt-xen-cfg.bbclass b/classes/meta-virt-xen-cfg.bbclass new file mode 100644 index 00000000..61b32aa3 --- /dev/null +++ b/classes/meta-virt-xen-cfg.bbclass @@ -0,0 +1,6 @@ +# We need to load the Xen meta-virt config components, only if "xen" +# 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_XEN_CONFIG_PATH file. + +include ${@bb.utils.contains('DISTRO_FEATURES', 'xen', '${META_VIRT_XEN_CONFIG_PATH}', '', d)} -- cgit v1.2.3-54-g00ecf