summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/selftest/cases/runtime_test.py18
-rw-r--r--meta/recipes-devtools/qemu/qemu-system-native_4.2.0.bb4
-rw-r--r--meta/recipes-devtools/qemu/qemu_4.2.0.bb5
3 files changed, 13 insertions, 14 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py
index 09d3de7aea..793c98a335 100644
--- a/meta/lib/oeqa/selftest/cases/runtime_test.py
+++ b/meta/lib/oeqa/selftest/cases/runtime_test.py
@@ -188,18 +188,14 @@ class TestImage(OESelftestTestCase):
188 self.skipTest('virgl isn\'t working with Opensuse 15.0') 188 self.skipTest('virgl isn\'t working with Opensuse 15.0')
189 189
190 qemu_packageconfig = get_bb_var('PACKAGECONFIG', 'qemu-system-native') 190 qemu_packageconfig = get_bb_var('PACKAGECONFIG', 'qemu-system-native')
191 sdl_packageconfig = get_bb_var('PACKAGECONFIG', 'libsdl2-native') 191 qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native')
192 features = 'INHERIT += "testimage"\n' 192 features = 'INHERIT += "testimage"\n'
193 if 'gtk+' not in qemu_packageconfig: 193 if 'gtk+' not in qemu_packageconfig:
194 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " gtk+"\n' 194 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " gtk+"\n'
195 if 'sdl' not in qemu_packageconfig: 195 if 'sdl' not in qemu_packageconfig:
196 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " sdl"\n' 196 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " sdl"\n'
197 if 'virglrenderer' not in qemu_packageconfig: 197 if 'opengl' not in qemu_distrofeatures:
198 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " virglrenderer"\n' 198 features += 'DISTRO_FEATURES_append = " opengl"\n'
199 if 'glx' not in qemu_packageconfig:
200 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " glx"\n'
201 if 'opengl' not in sdl_packageconfig:
202 features += 'PACKAGECONFIG_append_pn-libsdl2-native = " opengl"\n'
203 features += 'TEST_SUITES = "ping ssh virgl"\n' 199 features += 'TEST_SUITES = "ping ssh virgl"\n'
204 features += 'IMAGE_FEATURES_append = " ssh-server-dropbear"\n' 200 features += 'IMAGE_FEATURES_append = " ssh-server-dropbear"\n'
205 features += 'IMAGE_INSTALL_append = " kmscube"\n' 201 features += 'IMAGE_INSTALL_append = " kmscube"\n'
@@ -231,12 +227,10 @@ class TestImage(OESelftestTestCase):
231 dripath = subprocess.check_output("pkg-config --variable=dridriverdir dri", shell=True) 227 dripath = subprocess.check_output("pkg-config --variable=dridriverdir dri", shell=True)
232 except subprocess.CalledProcessError as e: 228 except subprocess.CalledProcessError as e:
233 self.skipTest("Could not determine the path to dri drivers on the host via pkg-config.\nPlease install Mesa development files (particularly, dri.pc) on the host machine.") 229 self.skipTest("Could not determine the path to dri drivers on the host via pkg-config.\nPlease install Mesa development files (particularly, dri.pc) on the host machine.")
234 qemu_packageconfig = get_bb_var('PACKAGECONFIG', 'qemu-system-native') 230 qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native')
235 features = 'INHERIT += "testimage"\n' 231 features = 'INHERIT += "testimage"\n'
236 if 'virglrenderer' not in qemu_packageconfig: 232 if 'opengl' not in qemu_distrofeatures:
237 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " virglrenderer"\n' 233 features += 'DISTRO_FEATURES_append = " opengl"\n'
238 if 'glx' not in qemu_packageconfig:
239 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " glx"\n'
240 features += 'TEST_SUITES = "ping ssh virgl"\n' 234 features += 'TEST_SUITES = "ping ssh virgl"\n'
241 features += 'IMAGE_FEATURES_append = " ssh-server-dropbear"\n' 235 features += 'IMAGE_FEATURES_append = " ssh-server-dropbear"\n'
242 features += 'IMAGE_INSTALL_append = " kmscube"\n' 236 features += 'IMAGE_INSTALL_append = " kmscube"\n'
diff --git a/meta/recipes-devtools/qemu/qemu-system-native_4.2.0.bb b/meta/recipes-devtools/qemu/qemu-system-native_4.2.0.bb
index d83ee59375..7394385d30 100644
--- a/meta/recipes-devtools/qemu/qemu-system-native_4.2.0.bb
+++ b/meta/recipes-devtools/qemu/qemu-system-native_4.2.0.bb
@@ -9,7 +9,9 @@ DEPENDS = "glib-2.0-native zlib-native pixman-native qemu-native bison-native"
9 9
10EXTRA_OECONF_append = " --target-list=${@get_qemu_system_target_list(d)}" 10EXTRA_OECONF_append = " --target-list=${@get_qemu_system_target_list(d)}"
11 11
12PACKAGECONFIG ??= "fdt alsa kvm" 12PACKAGECONFIG ??= "fdt alsa kvm \
13 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '' ,d)} \
14"
13 15
14# Handle distros such as CentOS 5 32-bit that do not have kvm support 16# Handle distros such as CentOS 5 32-bit that do not have kvm support
15PACKAGECONFIG_remove = "${@'kvm' if not os.path.exists('/usr/include/linux/kvm.h') else ''}" 17PACKAGECONFIG_remove = "${@'kvm' if not os.path.exists('/usr/include/linux/kvm.h') else ''}"
diff --git a/meta/recipes-devtools/qemu/qemu_4.2.0.bb b/meta/recipes-devtools/qemu/qemu_4.2.0.bb
index f0c1daabe1..a4018cc448 100644
--- a/meta/recipes-devtools/qemu/qemu_4.2.0.bb
+++ b/meta/recipes-devtools/qemu/qemu_4.2.0.bb
@@ -21,5 +21,8 @@ do_install_append_class-nativesdk() {
21PACKAGECONFIG ??= " \ 21PACKAGECONFIG ??= " \
22 fdt sdl kvm \ 22 fdt sdl kvm \
23 ${@bb.utils.filter('DISTRO_FEATURES', 'alsa xen', d)} \ 23 ${@bb.utils.filter('DISTRO_FEATURES', 'alsa xen', d)} \
24 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '' ,d)} \
25"
26PACKAGECONFIG_class-nativesdk ??= "fdt sdl kvm \
27 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '' ,d)} \
24" 28"
25PACKAGECONFIG_class-nativesdk ??= "fdt sdl kvm"