From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1vxA-0004I3-G1 for qemu-devel@nongnu.org; Thu, 16 Aug 2012 05:01:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1vx9-0000yT-Ae for qemu-devel@nongnu.org; Thu, 16 Aug 2012 05:01:20 -0400 Received: from david.siemens.de ([192.35.17.14]:22716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1vx9-0000xW-0T for qemu-devel@nongnu.org; Thu, 16 Aug 2012 05:01:19 -0400 Message-ID: <502CB6D7.6040505@siemens.com> Date: Thu, 16 Aug 2012 11:01:11 +0200 From: Jan Kiszka MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [RESEND][PATCH for 1.2] audio: Make pcspk card selectable again List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori , malc Cc: qemu-devel Since we moved pcspk into hwlib, CONFIG_PCSPK is no longer defined per target. Therefore, statically built soundhw array in arch_init.c stopped including this card. Work around this by re-adding this define to config-target.mak. Long-term, a dynamic creation of this soundhw list will be necessary. Signed-off-by: Jan Kiszka --- configure | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/configure b/configure index be292fe..672da59 100755 --- a/configure +++ b/configure @@ -3902,6 +3902,11 @@ if test "$target_bsd_user" = "yes" ; then echo "CONFIG_BSD_USER=y" >> $config_target_mak fi +# the static way of configuring available audio cards requires this workaround +if test "$target_user_only" != "yes" && grep -q CONFIG_PCSPK $source_path/default-configs/$target.mak; then + echo "CONFIG_PCSPK=y" >> $config_target_mak +fi + # generate QEMU_CFLAGS/LDFLAGS for targets cflags="" -- 1.7.3.4