aboutsummaryrefslogtreecommitdiff
path: root/create_config
diff options
context:
space:
mode:
Diffstat (limited to 'create_config')
-rwxr-xr-xcreate_config12
1 files changed, 8 insertions, 4 deletions
diff --git a/create_config b/create_config
index 2f052ae615..0098e683e2 100755
--- a/create_config
+++ b/create_config
@@ -13,10 +13,14 @@ case $line in
pkgversion=${line#*=}
echo "#define QEMU_PKGVERSION \"$pkgversion\""
;;
- ARCH=*) # configuration
- arch=${line#*=}
- arch_name=`echo $arch | tr '[:lower:]' '[:upper:]'`
- echo "#define HOST_$arch_name 1"
+ prefix=* | [a-z]*dir=*) # directory configuration
+ name=${line%=*}
+ value=${line#*=}
+ define_name=`echo $name | tr '[:lower:]' '[:upper:]'`
+ eval "define_value=\"$value\""
+ echo "#define CONFIG_QEMU_$define_name \"$define_value\""
+ # save for the next definitions
+ eval "$name=\$define_value"
;;
CONFIG_AUDIO_DRIVERS=*)
drivers=${line#*=}