summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorChristopher Clark <christopher.w.clark@gmail.com>2020-06-29 18:54:44 -0700
committerBruce Ashfield <bruce.ashfield@gmail.com>2020-07-06 16:25:55 -0400
commit7f6f115d7d8467390d9bf7258cc8a5e7771528c2 (patch)
tree10f7227fa6ab9c23db03785b2f498e7c338a1a37 /classes
parent87b9e054ff1b4812194af9f0b4f3083400d42095 (diff)
downloadmeta-virtualization-7f6f115d7d8467390d9bf7258cc8a5e7771528c2.tar.gz
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 <christopher.w.clark@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/meta-virt-xen-cfg.bbclass6
1 files changed, 6 insertions, 0 deletions
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 @@
1# We need to load the Xen meta-virt config components, only if "xen"
2# is in the distro features. Since we don't know the distro flags during
3# layer.conf load time, we delay using a special bbclass that simply includes
4# the META_VIRT_XEN_CONFIG_PATH file.
5
6include ${@bb.utils.contains('DISTRO_FEATURES', 'xen', '${META_VIRT_XEN_CONFIG_PATH}', '', d)}