-
Notifications
You must be signed in to change notification settings - Fork 4
/
0002-WZab-host-qemu-patched-for-forced-compilation-of-alsa-and-pa-audio.patch
63 lines (63 loc) · 2.2 KB
/
0002-WZab-host-qemu-patched-for-forced-compilation-of-alsa-and-pa-audio.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
diff --git a/package/qemu/4.2.0/1004-WZab-qemu-patched-for-forced-compilation-of-alsa-and-pa-audio.patch b/package/qemu/4.2.0/1004-WZab-qemu-patched-for-forced-compilation-of-alsa-and-pa-audio.patch
new file mode 100644
index 0000000..d1934b3
--- /dev/null
+++ b/package/qemu/4.2.0/1004-WZab-qemu-patched-for-forced-compilation-of-alsa-and-pa-audio.patch
@@ -0,0 +1,45 @@
+diff --git a/configure b/configure
+index 6099be1..5acb989 100755
+--- a/configure
++++ b/configure
+@@ -3454,36 +3454,12 @@ fi
+ audio_drv_list=$(echo "$audio_drv_list" | sed -e 's/,/ /g')
+ for drv in $audio_drv_list; do
+ case $drv in
+- alsa | try-alsa)
+- if $pkg_config alsa --exists; then
+- alsa_libs=$($pkg_config alsa --libs)
+- if test "$drv" = "try-alsa"; then
+- audio_drv_list=$(echo "$audio_drv_list" | sed -e 's/try-alsa/alsa/')
+- fi
+- else
+- if test "$drv" = "try-alsa"; then
+- audio_drv_list=$(echo "$audio_drv_list" | sed -e 's/try-alsa//')
+- else
+- error_exit "$drv check failed" \
+- "Make sure to have the $drv libs and headers installed."
+- fi
+- fi
++ alsa)
++ alsa_libs="-lasound"
+ ;;
+
+- pa | try-pa)
+- if $pkg_config libpulse --exists; then
+- pulse_libs=$($pkg_config libpulse --libs)
+- if test "$drv" = "try-pa"; then
+- audio_drv_list=$(echo "$audio_drv_list" | sed -e 's/try-pa/pa/')
+- fi
+- else
+- if test "$drv" = "try-pa"; then
+- audio_drv_list=$(echo "$audio_drv_list" | sed -e 's/try-pa//')
+- else
+- error_exit "$drv check failed" \
+- "Make sure to have the $drv libs and headers installed."
+- fi
+- fi
++ pa)
++ pulse_libs="-lpulse"
+ ;;
+
+ sdl)
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index b2249ed..8f1f14a 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -296,6 +296,7 @@ define HOST_QEMU_CONFIGURE_CMDS
cd $(@D); $(HOST_CONFIGURE_OPTS) CPP="$(HOSTCC) -E" \
./configure \
--target-list="$(HOST_QEMU_TARGETS)" \
+ --audio-drv-list=alsa,pa,oss \
--prefix="$(HOST_DIR)" \
--interp-prefix=$(STAGING_DIR) \
--cc="$(HOSTCC)" \