Add getfd and closefd monitor commands
[qemu/ar7.git] / create_config
blobcac0edbbb21f7089cfe004331a9e41cea8d67a6b
1 #!/bin/sh
3 echo "/* Automatically generated by configure - do not modify */"
4 echo "#include \"../config-host.h\""
6 while read line; do
8 case $line in
9 CONFIG_*=y) # configuration
10 name=${line%=*}
11 echo "#define $name 1"
13 CONFIG_*=*) # configuration
14 name=${line%=*}
15 value=${line#*=}
16 echo "#define $name $value"
18 TARGET_ARCH=*) # configuration
19 target_arch=${line#*=}
20 arch_name=`echo $target_arch | tr '[:lower:]' '[:upper:]'`
21 echo "#define TARGET_ARCH \"$target_arch\""
22 echo "#define TARGET_$arch_name 1"
24 TARGET_BASE_ARCH=*) # configuration
25 target_base_arch=${line#*=}
26 if [ "$target_base_arch" != "$target_arch" ]; then
27 base_arch_name=`echo $target_base_arch | tr '[:lower:]' '[:upper:]'`
28 echo "#define TARGET_$base_arch_name 1"
31 TARGET_XML_FILES=*)
32 # do nothing
34 TARGET_ABI_DIR=*)
35 # do nothing
37 TARGET_ARCH2=*)
38 # do nothing
40 TARGET_*=y) # configuration
41 name=${line%=*}
42 echo "#define $name 1"
44 TARGET_*=*) # configuration
45 name=${line%=*}
46 value=${line#*=}
47 echo "#define $name $value"
49 USE_NPTL=y) # configuration
50 name=${line%=*}
51 echo "#define $name 1"
53 esac
55 done # read