diff mbox series

qemuboot-x86.inc: Allow override of QB_AUDIO_*

Message ID 20260413112625.2637924-1-rouven.rastetter.ext@karlstorz.com
State New
Headers show
Series qemuboot-x86.inc: Allow override of QB_AUDIO_* | expand

Commit Message

Rouven Rastetter April 13, 2026, 11:26 a.m. UTC
This change allows to overwrite the QB_AUDIO_* variables from e.g.
local.conf, to e.g. set the audio driver to "none" or "pipewire".

Suggested-by:  van Veen, Stephan <stephan.vanveen@karlstorz.com>
Signed-off-by: Rouven Rastetter <rouven.rastetter.ext@karlstorz.com>
---
 meta/conf/machine/include/x86/qemuboot-x86.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta/conf/machine/include/x86/qemuboot-x86.inc b/meta/conf/machine/include/x86/qemuboot-x86.inc
index 82ef4a0b73..3234e8cbf0 100644
--- a/meta/conf/machine/include/x86/qemuboot-x86.inc
+++ b/meta/conf/machine/include/x86/qemuboot-x86.inc
@@ -7,7 +7,7 @@  QB_CPU_KVM:x86 ?= "-cpu IvyBridge -machine q35,i8042=off"
 QB_CPU:x86-64 ?= "-cpu Skylake-Client -machine q35,i8042=off"
 QB_CPU_KVM:x86-64 ?= "-cpu Skylake-Client -machine q35,i8042=off"
 
-QB_AUDIO_DRV = "alsa"
-QB_AUDIO_OPT = "-device AC97"
+QB_AUDIO_DRV ?= "alsa"
+QB_AUDIO_OPT ?= "-device AC97"
 QB_KERNEL_CMDLINE_APPEND = "oprofile.timer=1 tsc=reliable no_timer_check rcupdate.rcu_expedited=1"
 QB_OPT_APPEND = "-usb -device usb-tablet -usb -device usb-kbd"