target-ppc: add exceptions for conditional stores
[qemu/mdroth.git] / create_config
blob8e757f363a23ca593a70771df20eea65bf72cb4c
1 #!/bin/sh
3 while read line; do
5 case $line in
6 VERSION=*) # configuration
7 version=${line#*=}
8 echo "#define QEMU_VERSION \"$version\""
9 ;;
10 PKGVERSION=*) # configuration
11 pkgversion=${line#*=}
12 echo "#define QEMU_PKGVERSION \"$pkgversion\""
14 ARCH=*) # configuration
15 arch=${line#*=}
16 arch_name=`echo $arch | tr '[:lower:]' '[:upper:]'`
17 echo "#define HOST_$arch_name 1"
19 CONFIG__sparc_*=y) # configuration
20 name=${line%=*}
21 name=${name#CONFIG}
22 value=${line#*=}
23 echo "#define $name $value"
25 CONFIG_AUDIO_DRIVERS=*)
26 drivers=${line#*=}
27 echo "#define CONFIG_AUDIO_DRIVERS \\"
28 for drv in $drivers; do
29 echo " &${drv}_audio_driver,\\"
30 done
31 echo ""
33 CONFIG_*=y) # configuration
34 name=${line%=*}
35 echo "#define $name 1"
37 CONFIG_*=*) # configuration
38 name=${line%=*}
39 value=${line#*=}
40 echo "#define $name $value"
42 ARCH=*) # configuration
43 arch=${line#*=}
44 arch_name=`echo $arch | tr '[:lower:]' '[:upper:]'`
45 echo "#define HOST_$arch_name 1"
47 HOST_USB=*)
48 # do nothing
50 HOST_CC=*)
51 # do nothing
53 HOST_*=y) # configuration
54 name=${line%=*}
55 echo "#define $name 1"
57 HOST_*=*) # configuration
58 name=${line%=*}
59 value=${line#*=}
60 echo "#define $name $value"
62 TARGET_ARCH=*) # configuration
63 target_arch=${line#*=}
64 arch_name=`echo $target_arch | tr '[:lower:]' '[:upper:]'`
65 echo "#define TARGET_ARCH \"$target_arch\""
66 echo "#define TARGET_$arch_name 1"
68 TARGET_BASE_ARCH=*) # configuration
69 target_base_arch=${line#*=}
70 if [ "$target_base_arch" != "$target_arch" ]; then
71 base_arch_name=`echo $target_base_arch | tr '[:lower:]' '[:upper:]'`
72 echo "#define TARGET_$base_arch_name 1"
75 TARGET_XML_FILES=*)
76 # do nothing
78 TARGET_ABI_DIR=*)
79 # do nothing
81 TARGET_ARCH2=*)
82 # do nothing
84 TARGET_DIRS=*)
85 # do nothing
87 TARGET_*=y) # configuration
88 name=${line%=*}
89 echo "#define $name 1"
91 TARGET_*=*) # configuration
92 name=${line%=*}
93 value=${line#*=}
94 echo "#define $name $value"
96 esac
98 done # read