summaryrefslogtreecommitdiffstats
path: root/create_config
diff options
context:
space:
mode:
Diffstat (limited to 'create_config')
-rwxr-xr-xcreate_config53
1 files changed, 50 insertions, 3 deletions
diff --git a/create_config b/create_config
index 8b7b365d7f..8e757f363a 100755
--- a/create_config
+++ b/create_config
@@ -1,11 +1,35 @@
#!/bin/sh
-echo "/* Automatically generated by configure - do not modify */"
-echo "#include \"../config-host.h\""
-
while read line; do
case $line in
+ VERSION=*) # configuration
+ version=${line#*=}
+ echo "#define QEMU_VERSION \"$version\""
+ ;;
+ PKGVERSION=*) # configuration
+ pkgversion=${line#*=}
+ echo "#define QEMU_PKGVERSION \"$pkgversion\""
+ ;;
+ ARCH=*) # configuration
+ arch=${line#*=}
+ arch_name=`echo $arch | tr '[:lower:]' '[:upper:]'`
+ echo "#define HOST_$arch_name 1"
+ ;;
+ CONFIG__sparc_*=y) # configuration
+ name=${line%=*}
+ name=${name#CONFIG}
+ value=${line#*=}
+ echo "#define $name $value"
+ ;;
+ CONFIG_AUDIO_DRIVERS=*)
+ drivers=${line#*=}
+ echo "#define CONFIG_AUDIO_DRIVERS \\"
+ for drv in $drivers; do
+ echo " &${drv}_audio_driver,\\"
+ done
+ echo ""
+ ;;
CONFIG_*=y) # configuration
name=${line%=*}
echo "#define $name 1"
@@ -15,6 +39,26 @@ case $line in
value=${line#*=}
echo "#define $name $value"
;;
+ ARCH=*) # configuration
+ arch=${line#*=}
+ arch_name=`echo $arch | tr '[:lower:]' '[:upper:]'`
+ echo "#define HOST_$arch_name 1"
+ ;;
+ HOST_USB=*)
+ # do nothing
+ ;;
+ HOST_CC=*)
+ # do nothing
+ ;;
+ HOST_*=y) # configuration
+ name=${line%=*}
+ echo "#define $name 1"
+ ;;
+ HOST_*=*) # configuration
+ name=${line%=*}
+ value=${line#*=}
+ echo "#define $name $value"
+ ;;
TARGET_ARCH=*) # configuration
target_arch=${line#*=}
arch_name=`echo $target_arch | tr '[:lower:]' '[:upper:]'`
@@ -37,6 +81,9 @@ case $line in
TARGET_ARCH2=*)
# do nothing
;;
+ TARGET_DIRS=*)
+ # do nothing
+ ;;
TARGET_*=y) # configuration
name=${line%=*}
echo "#define $name 1"