From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlo Marcelo Arenas Belon Subject: [PATCH 2/2] configure: passthrough for audio-{drv,card} and logic cleanup Date: Wed, 30 Jul 2008 15:11:59 -0500 Message-ID: <20080730201159.GB11939@tapir> References: <20080730195735.GA11853@tapir> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: kvm@vger.kernel.org Return-path: Received: from tapir.sajinet.com.pe ([66.139.79.212]:43373 "EHLO tapir.sajinet.com.pe" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754073AbYG3TpO (ORCPT ); Wed, 30 Jul 2008 15:45:14 -0400 Content-Disposition: inline In-Reply-To: <20080730195735.GA11853@tapir> Sender: kvm-owner@vger.kernel.org List-ID: Avoids reformatting for the options that are send verbatim to qemu's configure and add a passthrough for qemu options that use a space separated list of options like the list for audio drivers enabled or the list for audio devices emulated. Signed-off-by: Carlo Marcelo Arenas Belon --- configure | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 2558e0e..fc05767 100755 --- a/configure +++ b/configure @@ -10,6 +10,8 @@ qemu_cflags= qemu_ldflags= qemu_opts= cross_prefix= +audio_drv_list= +audio_card_list= arch=`uname -m` target_exec= @@ -39,7 +41,8 @@ EOF } while [[ "$1" = -* ]]; do - opt="$1"; shift + optorig="$1"; shift + opt="$optorig" arg= if [[ "$opt" = *=* ]]; then arg="${opt#*=}" @@ -67,16 +70,21 @@ while [[ "$1" = -* ]]; do --cross-prefix) cross_prefix="$arg" ;; + --audio-drv-list) + audio_drv_list="$arg" + ;; + --audio-card-list) + audio_card_list="$arg" + ;; --help) usage ;; *) - qemu_opts="$qemu_opts $opt" + qemu_opts="$qemu_opts $optorig" ;; esac done - #set kenel directory libkvm_kerneldir=$(readlink -f kernel) @@ -114,11 +122,12 @@ fi --extra-ldflags="-L $PWD/../libkvm $qemu_ldflags" \ --kernel-path="$libkvm_kerneldir" \ --prefix="$prefix" \ + ${audio_drv_list:+"--audio-drv-list=$audio_drv_list"} \ + ${audio_card_list:+"--audio-card-list=$audio_card_list"} \ ${cross_prefix:+"--cross-prefix=$cross_prefix"} \ ${cross_prefix:+"--cpu=$arch"} $qemu_opts ) || usage - cat < config.mak ARCH=$arch PREFIX=$prefix -- 1.5.4.5