summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--classes/meta-virt-xen-cfg.bbclass6
-rw-r--r--conf/distro/include/meta-virt-xen.inc6
-rw-r--r--conf/layer.conf4
3 files changed, 15 insertions, 1 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)}
diff --git a/conf/distro/include/meta-virt-xen.inc b/conf/distro/include/meta-virt-xen.inc
new file mode 100644
index 00000000..a92b08b4
--- /dev/null
+++ b/conf/distro/include/meta-virt-xen.inc
@@ -0,0 +1,6 @@
1# Make sure Xen mode is enabled in qemu
2PACKAGECONFIG_append_pn-qemu = " xen"
3
4# For builds for ARM platforms, enable fdt
5PACKAGECONFIG_append_pn-qemu_arm = " fdt"
6PACKAGECONFIG_append_pn-qemu_aarch64 = " fdt"
diff --git a/conf/layer.conf b/conf/layer.conf
index 697fb622..142621c3 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -43,8 +43,10 @@ INHERIT += "sanity-meta-virt"
43# We need to load the meta-virt config components, only if "virtualization" 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 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 45# layer.conf load time, we delay using a special bbclass that simply includes
46# the META_VIRT_CONFIG_PATH file, and likewise for the k8s configs 46# the META_VIRT_CONFIG_PATH file, and likewise for the Xen and k8s configs
47META_VIRT_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/meta-virt-default-versions.inc" 47META_VIRT_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/meta-virt-default-versions.inc"
48META_VIRT_XEN_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/meta-virt-xen.inc"
48K8S_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/k8s-versions.inc" 49K8S_CONFIG_PATH = "${LAYERDIR}/conf/distro/include/k8s-versions.inc"
49USER_CLASSES_append = " meta-virt-cfg" 50USER_CLASSES_append = " meta-virt-cfg"
50USER_CLASSES_append = " meta-virt-k8s-cfg" 51USER_CLASSES_append = " meta-virt-k8s-cfg"
52USER_CLASSES_append = " meta-virt-xen-cfg"