3 echo "/* Automatically generated by create_config - do not modify */"
8 VERSION
=*) # configuration
10 major
=$
(echo "$version" | cut
-d.
-f1)
11 minor
=$
(echo "$version" | cut
-d.
-f2)
12 micro
=$
(echo "$version" | cut
-d.
-f3)
13 echo "#define QEMU_VERSION \"$version\""
14 echo "#define QEMU_VERSION_MAJOR $major"
15 echo "#define QEMU_VERSION_MINOR $minor"
16 echo "#define QEMU_VERSION_MICRO $micro"
18 qemu_
*dir
=*) # qemu-specific directory configuration
21 define_name
=$
(echo $name | LC_ALL
=C
tr '[a-z]' '[A-Z]')
22 eval "define_value=\"$value\""
23 echo "#define CONFIG_$define_name \"$define_value\""
24 # save for the next definitions
25 eval "$name=\$define_value"
28 # save for the next definitions
31 IASL
=*) # iasl executable
33 echo "#define CONFIG_IASL $value"
35 CONFIG_AUDIO_DRIVERS
=*)
37 echo "#define CONFIG_AUDIO_DRIVERS \\"
38 for drv
in $drivers; do
39 echo " &${drv}_audio_driver,\\"
43 CONFIG_BDRV_RW_WHITELIST
=*)
44 echo "#define CONFIG_BDRV_RW_WHITELIST\\"
45 for drv
in ${line#*=}; do
50 CONFIG_BDRV_RO_WHITELIST
=*)
51 echo "#define CONFIG_BDRV_RO_WHITELIST\\"
52 for drv
in ${line#*=}; do
57 CONFIG_
*='$(CONFIG_SOFTMMU)'|CONFIG_
*=y
) # configuration
59 echo "#define $name 1"
61 CONFIG_
*=*) # configuration
64 echo "#define $name $value"
66 HAVE_
*=y
) # configuration
68 echo "#define $name 1"
70 HAVE_
*=*) # configuration
73 echo "#define $name $value"
75 ARCH
=*) # configuration
77 arch_name
=$
(echo $arch | LC_ALL
=C
tr '[a-z]' '[A-Z]')
78 echo "#define HOST_$arch_name 1"
86 HOST_
*=y
) # configuration
88 echo "#define $name 1"
90 HOST_
*=*) # configuration
93 echo "#define $name $value"
95 TARGET_BASE_ARCH
=*) # configuration
96 target_base_arch
=${line#*=}
97 base_arch_name
=$
(echo $target_base_arch | LC_ALL
=C
tr '[a-z]' '[A-Z]')
98 echo "#define TARGET_$base_arch_name 1"
107 target_name
=${line#*=}
108 echo "#define TARGET_NAME \"$target_name\""
113 TARGET_
*=y
) # configuration
115 echo "#define $name 1"
117 TARGET_
*=*) # configuration
120 echo "#define $name $value"
123 echo "#define HOST_DSOSUF \"${line#*=}\""