aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2018-03-06 08:40:51 +0100
committerGerd Hoffmann <kraxel@redhat.com>2018-03-12 11:18:27 +0100
commit22d81543913ca1abe05ce14b7a792cacc469b2b1 (patch)
tree85fae195f4032fe4ceb50d1ee32ded2077043668
parentce3dc033df2ecbbe45555d996549d1f579a23346 (diff)
downloadqemu-22d81543913ca1abe05ce14b7a792cacc469b2b1.zip
qemu-22d81543913ca1abe05ce14b7a792cacc469b2b1.tar.gz
qemu-22d81543913ca1abe05ce14b7a792cacc469b2b1.tar.bz2
audio/oss: build as module
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20180306074053.22856-6-kraxel@redhat.com
-rw-r--r--audio/Makefile.objs7
-rwxr-xr-xconfigure2
2 files changed, 6 insertions, 3 deletions
diff --git a/audio/Makefile.objs b/audio/Makefile.objs
index 97f22ec..9ea19c6 100644
--- a/audio/Makefile.objs
+++ b/audio/Makefile.objs
@@ -1,6 +1,5 @@
common-obj-y = audio.o noaudio.o wavaudio.o mixeng.o
common-obj-$(CONFIG_AUDIO_SDL) += sdlaudio.o
-common-obj-$(CONFIG_AUDIO_OSS) += ossaudio.o
common-obj-$(CONFIG_SPICE) += spiceaudio.o
common-obj-$(CONFIG_AUDIO_COREAUDIO) += coreaudio.o
common-obj-$(CONFIG_AUDIO_DSOUND) += dsoundaudio.o
@@ -14,9 +13,13 @@ sdlaudio.o-libs := $(SDL_LIBS)
paaudio.o-libs := $(PULSE_LIBS)
coreaudio.o-libs := $(COREAUDIO_LIBS)
dsoundaudio.o-libs := $(DSOUND_LIBS)
-ossaudio.o-libs := $(OSS_LIBS)
# alsa module
common-obj-$(CONFIG_AUDIO_ALSA) += alsa.mo
alsa.mo-objs = alsaaudio.o
alsa.mo-libs := $(ALSA_LIBS)
+
+# oss module
+common-obj-$(CONFIG_AUDIO_OSS) += oss.mo
+oss.mo-objs = ossaudio.o
+oss.mo-libs := $(OSS_LIBS)
diff --git a/configure b/configure
index b150ee8..b9336b1 100755
--- a/configure
+++ b/configure
@@ -5974,7 +5974,7 @@ echo "CONFIG_AUDIO_DRIVERS=$audio_drv_list" >> $config_host_mak
for drv in $audio_drv_list; do
def=CONFIG_AUDIO_$(echo $drv | LC_ALL=C tr '[a-z]' '[A-Z]')
case "$drv" in
- alsa)
+ alsa | oss)
echo "$def=m" >> $config_host_mak ;;
*)
echo "$def=y" >> $config_host_mak ;;