OSDN Git Service

Rework the config system. Better utilize the Kconfig language
[uclinux-h8/uClibc.git] / extra / Configs / Config.in.arch
1 #
2 # For a description of the syntax of this configuration file,
3 # see extra/config/Kconfig-language.txt
4 #
5
6 choice
7         prompt "Target Processor Endianness"
8         default ARCH_LITTLE_ENDIAN
9         help
10           This is the endianness you wish to build use.  Choose either Big
11           Endian, or Little Endian.
12
13 config ARCH_LITTLE_ENDIAN
14         bool "Little Endian"
15
16 config ARCH_BIG_ENDIAN
17         bool "Big Endian"
18
19 endchoice
20
21 config ARCH_HAS_NO_MMU
22         bool
23         default n
24
25 config UCLIBC_HAS_MMU
26         bool "Target CPU has a memory management unit (MMU)"
27         default y
28         depends !ARCH_HAS_NO_MMU
29         help
30           If your target CPU does not have a memory management unit (MMU), 
31           then answer N here.  Normally, Linux runs on systems with an MMU.  
32           If you are building a uClinux system, answer N.
33
34           Most people will answer Y.
35
36 config UCLIBC_HAS_FLOATS
37         bool "Enable floating point number support"
38         default y
39         help
40           This option allows you to entirely omit all floating point number
41           support from uClibc.  This will cause floating point functions like
42           strtod() to be omitted from uClibc.  Other floating point functions, 
43           such as printf() and scanf() will still be included in the library, 
44           but will not contain support for floating point numbers.
45
46           Answering N to this option can reduce the size of uClibc.  Most people
47           will answer Y.
48
49 config ARCH_HAS_NO_FPU
50         bool
51         default n
52
53 config HAS_FPU
54         bool "Target CPU has a floating point unit (FPU)"
55         depends on UCLIBC_HAS_FLOATS && !ARCH_HAS_NO_FPU
56         default y
57         help
58           If your target CPU does not have a Floating Point Unit (FPU) or a
59           kernel FPU emulator, but you still wish to support floating point
60           functions, then uClibc will need to be compiled with soft floating
61           point support (-msoft-float).  If your target CPU does not have an
62           FPU or an FPU emulator within the Linux kernel, then you should
63           answer N.
64
65           Most people will answer Y.
66
67 config UCLIBC_HAS_SOFT_FLOAT
68         bool
69         depends on UCLIBC_HAS_FLOATS && !HAS_FPU
70         default y
71
72 config DO_C99_MATH
73         bool "Enable full C99 math library support"
74         depends on UCLIBC_HAS_FLOATS
75         default n
76         help
77           If you want the uClibc math library to contain the full set C99
78           math library features, then answer Y.  If you leave this set to
79           N the math library will contain only the math functions that were
80           listed as part of the traditional POSIX/IEEE 1003.1b-1993 standard.
81           Leaving this option set to N will save around 35k on an x86 system.
82
83           If your applications require the newer C99 math library functions, 
84           then answer Y.
85
86 config WARNINGS
87         string "Compiler Warnings"
88         default "-Wall"
89         help
90           Set this to the set of gcc warnings you wish to see while compiling.
91
92 config KERNEL_SOURCE
93         string "Linux kernel header location"
94         default "/usr/src/linux"
95         help
96           The kernel source you use to compile with should be the same as the
97           Linux kernel you run your apps on.  uClibc doesn't even try to achieve binary
98           compatibility across kernel versions.  So don't expect, for example, uClibc
99           compiled with Linux kernel 2.0.x to implement lchown properly, since 2.0.x
100           can't do that. Similarly, if you compile uClibc vs Linux 2.4.x kernel headers,
101           but then run on Linux 2.0.x, lchown will be compiled into uClibc, but won't
102           work at all.  You have been warned.
103
104 config UCLIBC_UCLINUX_BROKEN_MUNMAP
105         bool
106         depends on !UCLIBC_HAS_MMU
107         default y
108
109 config EXCLUDE_BRK
110         bool
111         depends on !UCLIBC_HAS_MMU
112         default y
113
114 config C_SYMBOL_PREFIX
115         string
116         default "_" if ARCH_HAS_C_SYMBOL_PREFIX
117         default "" if !ARCH_HAS_C_SYMBOL_PREFIX
118
119 config HAVE_DOT_CONFIG
120         bool
121         default y
122