Add agl-kvm feature template 94/28194/1
authorScott Murray <scott.murray@konsulko.com>
Wed, 23 Nov 2022 18:36:06 +0000 (13:36 -0500)
committerScott Murray <scott.murray@konsulko.com>
Wed, 23 Nov 2022 18:36:06 +0000 (13:36 -0500)
Add feature template for enabling agl-kvm-guest multiconfig.  Changes
to leverage this to add a host image that includes guest VM images
will follow.

Bug-AGL: SPEC-4618

Change-Id: If8134359a1da7709d81b4ddd186d8c22de05280d
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
conf/multiconfig/agl-kvm-guest.conf [new file with mode: 0644]
templates/feature/agl-kvm/50_bblayers.conf.inc [new file with mode: 0644]
templates/feature/agl-kvm/50_local.conf.inc [new file with mode: 0644]
templates/feature/agl-kvm/README_feature_agl-kvm.md [new file with mode: 0644]
templates/feature/agl-kvm/included.dep [new file with mode: 0644]

diff --git a/conf/multiconfig/agl-kvm-guest.conf b/conf/multiconfig/agl-kvm-guest.conf
new file mode 100644 (file)
index 0000000..b13630d
--- /dev/null
@@ -0,0 +1,24 @@
+TMPDIR = "${TOPDIR}/tmp-${BB_CURRENT_MC}"
+
+MACHINE = "virtio-aarch64"
+
+# Avoid parse errors caused by linux-renesas, and all the other
+# random bbappends in meta-rcar-gen3.
+BBMASK += "meta-rcar-gen3/ meta-agl-refhw-gen3/"
+
+DISTRO_FEATURES:append = " kvm virtualization"
+
+# Use our own wks file
+WKS_FILE = "directdisk.wks.in"
+
+# We only need ext4 images for guests for now
+AGL_DEFAULT_IMAGE_FSTYPES = "ext4"
+AGL_EXTRA_IMAGE_FSTYPES = ""
+
+# Need to run QEMU with virtio-gpu device
+#PACKAGECONFIG:append:pn-qemu-system-native = " virglrenderer glx gtk+"
+PACKAGECONFIG:append:pn-qemu-system-target = " virglrenderer glx"
+
+# Until aglsetup.sh potentially changes to split features per multiconfig,
+# remove problematic ones from the host build here
+AGL_FEATURES:remove = "agl-refhw-h3"
diff --git a/templates/feature/agl-kvm/50_bblayers.conf.inc b/templates/feature/agl-kvm/50_bblayers.conf.inc
new file mode 100644 (file)
index 0000000..e5e3911
--- /dev/null
@@ -0,0 +1,4 @@
+AGL_META_PYTHON = "${METADIR}/external/meta-openembedded/meta-python"
+AGL_META_NETWORKING = "${METADIR}/external/meta-openembedded/meta-networking"
+AGL_META_FILESYSTEMS = "${METADIR}/external/meta-openembedded/meta-filesystems"
+AGL_META_VIRTUALIZATION = "${METADIR}/external/meta-virtualization"
diff --git a/templates/feature/agl-kvm/50_local.conf.inc b/templates/feature/agl-kvm/50_local.conf.inc
new file mode 100644 (file)
index 0000000..dc586ea
--- /dev/null
@@ -0,0 +1,4 @@
+DISTRO_FEATURES:append = " virtualization"
+
+BBMULTICONFIG = "agl-kvm-guest"
+
diff --git a/templates/feature/agl-kvm/README_feature_agl-kvm.md b/templates/feature/agl-kvm/README_feature_agl-kvm.md
new file mode 100644 (file)
index 0000000..83c0a0c
--- /dev/null
@@ -0,0 +1,14 @@
+---
+description: Feature agl-kvm
+authors: Scott Murray <scott.murray@konsulko.com>
+---
+
+### Feature agl-kvm
+
+* Enables support for building multiconfig based KVM+QEMU demo images
+
+### Dependent features pulled by agl-kvm
+
+The following features are pulled:
+
+* agl-demo
diff --git a/templates/feature/agl-kvm/included.dep b/templates/feature/agl-kvm/included.dep
new file mode 100644 (file)
index 0000000..82639da
--- /dev/null
@@ -0,0 +1 @@
+agl-demo