From: Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe>
To: kvm@vger.kernel.org
Subject: [PATCH 2/2] configure: passthrough for audio-{drv,card} and logic cleanup
Date: Wed, 30 Jul 2008 15:11:59 -0500 [thread overview]
Message-ID: <20080730201159.GB11939@tapir> (raw)
In-Reply-To: <20080730195735.GA11853@tapir>
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 <carenas@sajinet.com.pe>
---
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 <<EOF > config.mak
ARCH=$arch
PREFIX=$prefix
--
1.5.4.5
next prev parent reply other threads:[~2008-07-30 19:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-30 19:57 [RESEND][PATCH 0/2] configure: add support for audio-{drv,card}-list Carlo Marcelo Arenas Belon
2008-07-30 20:07 ` [PATCH 1/2] configure: include audio list options for --help output Carlo Marcelo Arenas Belon
2008-07-30 20:11 ` Carlo Marcelo Arenas Belon [this message]
2008-07-31 3:34 ` [PATCH 2/2] configure: passthrough for audio-{drv,card} and logic cleanup TJ
2008-07-31 9:28 ` Carlo Marcelo Arenas Belon
2008-07-31 9:49 ` Avi Kivity
2008-07-31 7:02 ` [PATCH 1/1] " TJ
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080730201159.GB11939@tapir \
--to=carenas@sajinet.com.pe \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.