3 echo "/* Automatically generated by create_config - do not modify */"
8 VERSION
=*) # configuration
10 echo "#define QEMU_VERSION \"$version\""
12 PKGVERSION
=*) # configuration
14 echo "#define QEMU_PKGVERSION \"$pkgversion\""
16 prefix
=* |
[a-z
]*dir
=*) # directory configuration
19 define_name
=`echo $name | tr '[:lower:]' '[:upper:]'`
20 eval "define_value=\"$value\""
21 echo "#define CONFIG_QEMU_$define_name \"$define_value\""
22 # save for the next definitions
23 eval "$name=\$define_value"
25 CONFIG_AUDIO_DRIVERS
=*)
27 echo "#define CONFIG_AUDIO_DRIVERS \\"
28 for drv
in $drivers; do
29 echo " &${drv}_audio_driver,\\"
33 CONFIG_BDRV_WHITELIST
=*)
34 echo "#define CONFIG_BDRV_WHITELIST \\"
35 for drv
in ${line#*=}; do
40 CONFIG_
*=y
) # configuration
42 echo "#define $name 1"
44 CONFIG_
*=*) # configuration
47 echo "#define $name $value"
49 ARCH
=*) # configuration
51 arch_name
=`echo $arch | tr '[:lower:]' '[:upper:]'`
52 echo "#define HOST_$arch_name 1"
60 HOST_
*=y
) # configuration
62 echo "#define $name 1"
64 HOST_
*=*) # configuration
67 echo "#define $name $value"
69 TARGET_ARCH
=*) # configuration
70 target_arch
=${line#*=}
71 echo "#define TARGET_ARCH \"$target_arch\""
73 TARGET_BASE_ARCH
=*) # configuration
74 target_base_arch
=${line#*=}
75 if [ "$target_base_arch" != "$target_arch" ]; then
76 base_arch_name
=`echo $target_base_arch | tr '[:lower:]' '[:upper:]'`
77 echo "#define TARGET_$base_arch_name 1"
92 TARGET_
*=y
) # configuration
94 echo "#define $name 1"
96 TARGET_
*=*) # configuration
99 echo "#define $name $value"