configure: move all directory entries in config-host.mak close
[qemu/mdroth.git] / create_config
blobedcad254d3531af4c4547f99220068786187eff4
1 #!/bin/sh
3 echo "/* Automatically generated by create_config - do not modify */"
5 while read line; do
7 case $line in
8 VERSION=*) # configuration
9 version=${line#*=}
10 echo "#define QEMU_VERSION \"$version\""
12 PKGVERSION=*) # configuration
13 pkgversion=${line#*=}
14 echo "#define QEMU_PKGVERSION \"$pkgversion\""
16 CONFIG_AUDIO_DRIVERS=*)
17 drivers=${line#*=}
18 echo "#define CONFIG_AUDIO_DRIVERS \\"
19 for drv in $drivers; do
20 echo " &${drv}_audio_driver,\\"
21 done
22 echo ""
24 CONFIG_BDRV_WHITELIST=*)
25 echo "#define CONFIG_BDRV_WHITELIST \\"
26 for drv in ${line#*=}; do
27 echo " \"${drv}\",\\"
28 done
29 echo " NULL"
31 CONFIG_*=y) # configuration
32 name=${line%=*}
33 echo "#define $name 1"
35 CONFIG_*=*) # configuration
36 name=${line%=*}
37 value=${line#*=}
38 echo "#define $name $value"
40 ARCH=*) # configuration
41 arch=${line#*=}
42 arch_name=`echo $arch | tr '[:lower:]' '[:upper:]'`
43 echo "#define HOST_$arch_name 1"
45 HOST_USB=*)
46 # do nothing
48 HOST_CC=*)
49 # do nothing
51 HOST_*=y) # configuration
52 name=${line%=*}
53 echo "#define $name 1"
55 HOST_*=*) # configuration
56 name=${line%=*}
57 value=${line#*=}
58 echo "#define $name $value"
60 TARGET_ARCH=*) # configuration
61 target_arch=${line#*=}
62 echo "#define TARGET_ARCH \"$target_arch\""
64 TARGET_BASE_ARCH=*) # configuration
65 target_base_arch=${line#*=}
66 if [ "$target_base_arch" != "$target_arch" ]; then
67 base_arch_name=`echo $target_base_arch | tr '[:lower:]' '[:upper:]'`
68 echo "#define TARGET_$base_arch_name 1"
71 TARGET_XML_FILES=*)
72 # do nothing
74 TARGET_ABI_DIR=*)
75 # do nothing
77 TARGET_ARCH2=*)
78 # do nothing
80 TARGET_DIRS=*)
81 # do nothing
83 TARGET_*=y) # configuration
84 name=${line%=*}
85 echo "#define $name 1"
87 TARGET_*=*) # configuration
88 name=${line%=*}
89 value=${line#*=}
90 echo "#define $name $value"
92 esac
94 done # read