From 06f9bd239518a68b88e6084107c499eeb113b8d6 Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Mon, 8 Jul 2024 13:09:57 -0400 Subject: meta-agl-kvm-demo: update for YP scarthgap and clean up Note that while these changes do get the KVM demo images building and bootable, some further investigation is required into getting the guest displays rendering to the outputs. Changes: - Move some of the feature template and multiconfig files that were accidentally left in meta-agl-demo to meta-agl-kvm-demo. - Rework how MACHINE is defined for the guest multiconfig to make it a bit more obvious how other machines could be supported. Sadly, experimentaion has shown that trying to do a generic virtio-${TUNE_ARCH} or similar scheme does not work with BitBake's parser, so document that a bit. - Update agl-qemu-runner.sh for change to IMAGE_NAME_SUFFIX default value, and qemu now warning about using "-vga" with the "virt" machine which does not support it. - Add new "agl-virtio-guest" feature to AGL_FEATURES in guest to get virtio kernel configuration. Bug-AGL: SPEC-5201 Change-Id: I194a5c49adf6242cd91d205e19a8eecde698ad7e Signed-off-by: Scott Murray Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl-demo/+/30102 Tested-by: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller ci-image-build: Jenkins Job builder account --- .../conf/multiconfig/agl-kvm-guest.conf | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta-agl-kvm-demo/conf/multiconfig/agl-kvm-guest.conf (limited to 'meta-agl-kvm-demo/conf/multiconfig') diff --git a/meta-agl-kvm-demo/conf/multiconfig/agl-kvm-guest.conf b/meta-agl-kvm-demo/conf/multiconfig/agl-kvm-guest.conf new file mode 100644 index 000000000..b17740c3d --- /dev/null +++ b/meta-agl-kvm-demo/conf/multiconfig/agl-kvm-guest.conf @@ -0,0 +1,25 @@ +TMPDIR = "${TOPDIR}/tmp-${BB_CURRENT_MC}" + +MACHINE = "${AGL_GUEST_MACHINE}" + +# Avoid parse errors caused by linux-renesas, and all the other +# random bbappends in meta-rcar-gen3. +BBMASK += "meta-rcar-gen3/ meta-rcar-gen3-adas/ meta-agl-refhw-gen3/" + +DISTRO_FEATURES:append = " kvm virtualization" + +AGL_FEATURES:append = " agl-virtio-guest" + +# 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, and we do not need gtk support +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" -- cgit 1.2.3-korg