3 test $# -gt 0 && exec < $1
5 echo "/* Automatically generated by create_config - do not modify */"
10 VERSION
=*) # configuration
12 major
=$
(echo "$version" | cut
-d.
-f1)
13 minor
=$
(echo "$version" | cut
-d.
-f2)
14 micro
=$
(echo "$version" | cut
-d.
-f3)
15 echo "#define QEMU_VERSION \"$version\""
16 echo "#define QEMU_VERSION_MAJOR $major"
17 echo "#define QEMU_VERSION_MINOR $minor"
18 echo "#define QEMU_VERSION_MICRO $micro"
20 qemu_
*dir
=* | qemu_
*path
=*) # qemu-specific directory configuration
23 define_name
=$
(echo $name | LC_ALL
=C
tr '[a-z]' '[A-Z]')
24 eval "define_value=\"$value\""
25 echo "#define CONFIG_$define_name \"$define_value\""
26 # save for the next definitions
27 eval "$name=\$define_value"
30 # save for the next definitions
33 IASL
=*) # iasl executable
35 echo "#define CONFIG_IASL $value"
37 CONFIG_AUDIO_DRIVERS
=*)
39 echo "#define CONFIG_AUDIO_DRIVERS \\"
40 for drv
in $drivers; do
45 CONFIG_BDRV_RW_WHITELIST
=*)
46 echo "#define CONFIG_BDRV_RW_WHITELIST\\"
47 for drv
in ${line#*=}; do
52 CONFIG_BDRV_RO_WHITELIST
=*)
53 echo "#define CONFIG_BDRV_RO_WHITELIST\\"
54 for drv
in ${line#*=}; do
59 CONFIG_
*=y
) # configuration
61 echo "#define $name 1"
63 CONFIG_
*=n
) # configuration
65 CONFIG_
*=*) # configuration
68 echo "#define $name $value"
70 HAVE_
*=y
) # configuration
72 echo "#define $name 1"
74 HAVE_
*=*) # configuration
77 echo "#define $name $value"
79 ARCH
=*) # configuration
81 arch_name
=$
(echo $arch | LC_ALL
=C
tr '[a-z]' '[A-Z]')
82 echo "#define HOST_$arch_name 1"
90 HOST_
*=y
) # configuration
92 echo "#define $name 1"
94 HOST_
*=*) # configuration
97 echo "#define $name $value"
99 TARGET_BASE_ARCH
=*) # configuration
100 target_base_arch
=${line#*=}
101 base_arch_name
=$
(echo $target_base_arch | LC_ALL
=C
tr '[a-z]' '[A-Z]')
102 echo "#define TARGET_$base_arch_name 1"
111 target_name
=${line#*=}
112 echo "#define TARGET_NAME \"$target_name\""
117 TARGET_
*=y
) # configuration
119 echo "#define $name 1"
121 TARGET_
*=*) # configuration
124 echo "#define $name $value"
127 echo "#define HOST_DSOSUF \"${line#*=}\""