Skip to contentSkip to conversation

qemu-system-native: enable sdl by default

PATCH New Alexander Kanavin 1 participant 2 messages Jun 6, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 qemu-system-native: enable sdl by default

This is already done in target and nativesdk qemu, and in default templates for both oe-core and poky. Let's just make it universal.

This also simplifies configurations for bitbake-setup, as they no longer have to enable sdl separately.

---
 meta/recipes-devtools/qemu/qemu-system-native_10.0.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/qemu/qemu-system-native_10.0.2.bb +1 -1
index 57a7e8515a..22462e2499 100644
@@ -9,7 +9,7 @@ DEPENDS += "glib-2.0-native zlib-native pixman-native qemu-native"
 
 EXTRA_OECONF:append = " --target-list=${@get_qemu_system_target_list(d)}"
 
-PACKAGECONFIG ??= "fdt alsa kvm pie slirp png pixman \
+PACKAGECONFIG ??= "fdt alsa kvm pie slirp png pixman sdl \
     ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer epoxy', '', d)} \
 "
 
Signature · 1 line
2.39.5
#1 lore raw

PATCH 2/2 templates/default: do not separately enable sdl in qemu-system-native

The recipe now does it directly.

---
 meta/conf/templates/default/local.conf.sample | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
meta/conf/templates/default/local.conf.sample +2 -3
index d96b964c5d..3a9706c1d5 100644
@@ -208,9 +208,8 @@ BB_DISKMON_DIRS ??= "\
 #
 # Qemu configuration
 #
-# By default native qemu will build with a builtin VNC server where graphical output can be
-# seen. The line below enables the SDL UI frontend too.
-PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
+# By default native qemu will build with a builtin VNC server and a SDL UI frontend
+# where graphical output can be seen.
 # By default libsdl2-native will be built, if you want to use your host's libSDL instead of 
 # the minimal libsdl built by libsdl2-native then uncomment the ASSUME_PROVIDED line below.
 #ASSUME_PROVIDED += "libsdl2-native"
Signature · 1 line
2.39.5