From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1et7Dj-0002ja-Dv for qemu-devel@nongnu.org; Tue, 06 Mar 2018 02:41:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1et7Di-0000GN-B2 for qemu-devel@nongnu.org; Tue, 06 Mar 2018 02:41:11 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36060 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1et7Di-0000Fi-7R for qemu-devel@nongnu.org; Tue, 06 Mar 2018 02:41:10 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 644D984222 for ; Tue, 6 Mar 2018 07:41:00 +0000 (UTC) From: Gerd Hoffmann Date: Tue, 6 Mar 2018 08:40:51 +0100 Message-Id: <20180306074053.22856-6-kraxel@redhat.com> In-Reply-To: <20180306074053.22856-1-kraxel@redhat.com> References: <20180306074053.22856-1-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 5/7] audio/oss: build as module List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- configure | 2 +- audio/Makefile.objs | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 46274301bd..5014c900bd 100755 --- a/configure +++ b/configure @@ -5983,7 +5983,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 ;; diff --git a/audio/Makefile.objs b/audio/Makefile.objs index 97f22ec097..9ea19c6a87 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) -- 2.9.3