[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH] [RFC] Add support for a USB audio device model
From: |
H. Peter Anvin |
Subject: |
[Qemu-devel] Re: [PATCH] [RFC] Add support for a USB audio device model |
Date: |
Mon, 13 Sep 2010 14:07:43 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Thunderbird/3.1.2 |
On 09/13/2010 01:53 PM, Amos Kong wrote:
>
> # patch -p1 < /tmp/usb-audio.patch
> # ./configure
> ...
> ...
> preadv support yes
> fdatasync yes
> uuid support no
> vhost-net support no
> Trace backend nop
> Trace output file trace-<pid>
> ./configure: 2276: Bad substitution
>
>
>> diff --git a/create_config b/create_config
>> index 0098e68..1caa25b 100755
>> --- a/create_config
>> +++ b/create_config
>> @@ -25,7 +25,7 @@ case $line in
>> CONFIG_AUDIO_DRIVERS=*)
>> drivers=${line#*=}
>> echo "#define CONFIG_AUDIO_DRIVERS \\"
>> - for drv in $drivers; do
>> + for drv in ${drivers//-/_}; do
>> echo " &${drv}_audio_driver,\\"
>> done
>> echo ""
>> @@ -39,10 +39,12 @@ case $line in
>> ;;
>> CONFIG_*=y) # configuration
>> name=${line%=*}
>> + name=${name//-/_}
>> echo "#define $name 1"
>> ;;
>> CONFIG_*=*) # configuration
>> name=${line%=*}
>> + name=${name//-/_}
>> value=${line#*=}
>> echo "#define $name $value"
>> ;;
Looks like ${.../...} is a bashism.
One can replace it with:
name=`echo "$name" | tr '-' '_'`
and
for drv in `echo "$drivers" | tr '-' '_'`; do
-hpa
[Qemu-devel] Re: [PATCH] [RFC] Add support for a USB audio device model, Stefan Hajnoczi, 2010/09/11
[Qemu-devel] Re: [PATCH] [RFC] Add support for a USB audio device model, Amos Kong, 2010/09/13
[Qemu-devel] Re: [PATCH] [RFC] Add support for a USB audio device model,
H. Peter Anvin <=