All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-python2][dunfell,master][PATCH] kas-meta-python-ptest-image: fixes for GL
@ 2020-09-11 23:17 Tim Orling
  0 siblings, 0 replies; only message in thread
From: Tim Orling @ 2020-09-11 23:17 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Tim Orling

To make testing as fast as possible, it is desired
to use KVM and OpenGL.

Add
  DISTRO_FEATURES_append = "opengl"
  PACKAGECONFIG_pn-qemu-system-native = "fdt alsa kvm virglrenderer glx gtk+"

It shouldn't be required to be explicit about the PACKAGECONFIG above,
when all I was trying to do was add gtk+, but but using _pn- += or even
_append_pn- syntax resulted in a system with either disabled OpenGL or
missing canberra-gtk-module (sound). The above explicit definition worked.

Change gl to gl-es:
  TEST_RUNQEMUPARAMS = "kvm gl-es gtk"

Signed-off-by: Tim Orling <ticotimo@gmail.com>
---
 kas-meta-python2-ptest-image.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/kas-meta-python2-ptest-image.yml b/kas-meta-python2-ptest-image.yml
index 1dc0f4b8..a2ee8ca0 100644
--- a/kas-meta-python2-ptest-image.yml
+++ b/kas-meta-python2-ptest-image.yml
@@ -8,15 +8,17 @@ distro: poky
 target: meta-python2-ptest-image
 
 local_conf_header:
+  enable_gtk_in_qemu: |
+    DISTRO_FEATURES_append = "opengl"
+    PACKAGECONFIG_pn-qemu-system-native = "fdt alsa kvm virglrenderer glx gtk+"
   enable_ptest_and_testimage: |
-    INHERIT += "rm_work_and_downloads"
     IMAGE_CLASSES += " testimage"
     DISTRO_FEAURES_append = " ptest"
     EXTRA_IMAGE_FEATURES = "debug-tweaks"
     TESTIMAGE_AUTO = "1"
     TEST_SUITES = " ping ssh python2 ptest"
     TEST_QEMUPARAMS += "-smp 4 -m 8192"
-    TEST_RUNQEMUPARAMS += "kvm gl"
+    TEST_RUNQEMUPARAMS = "kvm gl-es gtk"
     IMAGE_ROOTFS_SIZE ?= "8192"
     IMAGE_ROOTFS_EXTRA_SPACE_append = "${@bb.utils.contains("DISTRO_FEATURES", "systemd", " + 4096", "", d)}"
     IMAGE_INSTALL_append = " ptest-runner dropbear procps coreutils iproute2 sysstat"
-- 
2.25.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-11 23:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-11 23:17 [meta-python2][dunfell,master][PATCH] kas-meta-python-ptest-image: fixes for GL Tim Orling

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.