aboutsummaryrefslogtreecommitdiff
path: root/scripts/create_config
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2012-04-18 16:55:48 -0300
committerAnthony Liguori <aliguori@us.ibm.com>2012-04-24 09:50:31 -0500
commit0b3b717470c02013d692e8055efae7d64334a448 (patch)
treea64db8884953b621d240328e3c5e294e918dcc8e /scripts/create_config
parentc41cc50f66ea0e319cebd858af95423c880f8149 (diff)
downloadqemu-0b3b717470c02013d692e8055efae7d64334a448.zip
qemu-0b3b717470c02013d692e8055efae7d64334a448.tar.gz
qemu-0b3b717470c02013d692e8055efae7d64334a448.tar.bz2
create_config: simplify prefix=* block, remove CONFIG_QEMU_PREFIX
As now that block handles only the prefix variable, the code can be much simpler. This also removes the CONFIG_QEMU_PREFIX define as it is not used by any C code. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'scripts/create_config')
-rwxr-xr-xscripts/create_config7
1 files changed, 1 insertions, 6 deletions
diff --git a/scripts/create_config b/scripts/create_config
index 1d06eb1..c471e8c 100755
--- a/scripts/create_config
+++ b/scripts/create_config
@@ -23,13 +23,8 @@ case $line in
eval "$name=\$define_value"
;;
prefix=*)
- name=${line%=*}
- value=${line#*=}
- define_name=`echo $name | LC_ALL=C tr '[a-z]' '[A-Z]'`
- eval "define_value=\"$value\""
- echo "#define CONFIG_QEMU_$define_name \"$define_value\""
# save for the next definitions
- eval "$name=\$define_value"
+ prefix=${line#*=}
;;
CONFIG_AUDIO_DRIVERS=*)
drivers=${line#*=}