This is a revised and tested patch that correctly passes arguments
containing spaces to qemu/configure.
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.
--- configure.orig 2008-07-27 11:08:56.000000000 +0100
+++ configure 2008-07-31 07:59:53.000000000 +0100
@@ -8,8 +8,10 @@
want_module=1
qemu_cflags=
qemu_ldflags=
-qemu_opts=
+declare -a qemu_opts
cross_prefix=
+audio_drv_list=
+audio_card_list=
arch=`uname -m`
target_exec=
@@ -30,15 +32,16 @@
EOF
cd qemu
- ./configure --help | egrep "enable-|disable-" \
+ ./configure --help | egrep "enable-|disable-|audio-|Available" \
| grep -v user | grep -v system | grep -v kqemu | grep -v kvm \
| sed -e "s/^ / /g" \
- | sed -e"s/ enable/enable/g" | sed -e "s/ disable/disable/g"
+ | sed -e "s/ enable/enable/g" | sed -e "s/ disable/disable/g" \
+ | sed -e "s/ set/set/g" | sed -e "s/ Available/Available/g"
exit 1
}
-
while [[ "$1" = -* ]]; do
- opt="$1"; shift
+ optorig="$1"; shift
+ opt="$optorig"
arg=
if [[ "$opt" = *=* ]]; then
arg="${opt#*=}"
@@ -69,13 +72,15 @@
--help)
usage
;;
+ --audio-*)
+ [EMAIL PROTECTED]"${opt}=${arg}"
+ ;;
*)
- qemu_opts="$qemu_opts $opt"
+ [EMAIL PROTECTED]"${optorig}"
;;
esac
done
-
#set kenel directory
libkvm_kerneldir=$(readlink -f kernel)
@@ -114,7 +119,7 @@
--kernel-path="$libkvm_kerneldir" \
--prefix="$prefix" \
${cross_prefix:+"--cross-prefix=$cross_prefix"} \
- ${cross_prefix:+"--cpu=$arch"} $qemu_opts
+ ${cross_prefix:+"--cpu=$arch"} "[EMAIL PROTECTED]"
) || usage
--
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html