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_*path=*) # 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
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_*=y) # configuration
59 echo "#define $name 1"
61 CONFIG_*=n) # configuration
63 CONFIG_*=*) # configuration
66 echo "#define $name $value"
68 HAVE_*=y) # configuration
70 echo "#define $name 1"
72 HAVE_*=*) # configuration
75 echo "#define $name $value"
77 ARCH=*) # configuration
79 arch_name=$(echo $arch | LC_ALL=C tr '[a-z]' '[A-Z]')
80 echo "#define HOST_$arch_name 1"
88 HOST_*=y) # configuration
90 echo "#define $name 1"
92 HOST_*=*) # configuration
95 echo "#define $name $value"
97 TARGET_BASE_ARCH=*) # configuration
98 target_base_arch=${line#*=}
99 base_arch_name=$(echo $target_base_arch | LC_ALL=C tr '[a-z]' '[A-Z]')
100 echo "#define TARGET_$base_arch_name 1"
109 target_name=${line#*=}
110 echo "#define TARGET_NAME \"$target_name\""
115 TARGET_*=y) # configuration
117 echo "#define $name 1"
119 TARGET_*=*) # configuration
122 echo "#define $name $value"
125 echo "#define HOST_DSOSUF \"${line#*=}\""