OSDN Git Service

Rework the config system. Better utilize the Kconfig language
[uclinux-h8/uClibc.git] / extra / Configs / Config.in.arch
index 1e7b112..6b2011d 100644 (file)
@@ -1,11 +1,31 @@
 #
 # For a description of the syntax of this configuration file,
-# see Documentation/kbuild/config-language.txt.
+# see extra/config/Kconfig-language.txt
 #
 
+choice
+       prompt "Target Processor Endianness"
+       default ARCH_LITTLE_ENDIAN
+       help
+         This is the endianness you wish to build use.  Choose either Big
+         Endian, or Little Endian.
+
+config ARCH_LITTLE_ENDIAN
+       bool "Little Endian"
+
+config ARCH_BIG_ENDIAN
+       bool "Big Endian"
+
+endchoice
+
+config ARCH_HAS_NO_MMU
+       bool
+       default n
+
 config UCLIBC_HAS_MMU
        bool "Target CPU has a memory management unit (MMU)"
-       default y if !ARCH_HAS_NO_MMU
+       default y
+       depends !ARCH_HAS_NO_MMU
        help
          If your target CPU does not have a memory management unit (MMU), 
          then answer N here.  Normally, Linux runs on systems with an MMU.  
@@ -26,9 +46,13 @@ config UCLIBC_HAS_FLOATS
          Answering N to this option can reduce the size of uClibc.  Most people
          will answer Y.
 
+config ARCH_HAS_NO_FPU
+       bool
+       default n
+
 config HAS_FPU
        bool "Target CPU has a floating point unit (FPU)"
-       depends on UCLIBC_HAS_FLOATS
+       depends on UCLIBC_HAS_FLOATS && !ARCH_HAS_NO_FPU
        default y
        help
          If your target CPU does not have a Floating Point Unit (FPU) or a
@@ -40,6 +64,11 @@ config HAS_FPU
 
          Most people will answer Y.
 
+config UCLIBC_HAS_SOFT_FLOAT
+       bool
+       depends on UCLIBC_HAS_FLOATS && !HAS_FPU
+       default y
+
 config DO_C99_MATH
        bool "Enable full C99 math library support"
        depends on UCLIBC_HAS_FLOATS
@@ -48,7 +77,7 @@ config DO_C99_MATH
          If you want the uClibc math library to contain the full set C99
          math library features, then answer Y.  If you leave this set to
          N the math library will contain only the math functions that were
-         listed as part of the traditionla POSIX/IEEE 1003.1b-1993 standard.
+         listed as part of the traditional POSIX/IEEE 1003.1b-1993 standard.
          Leaving this option set to N will save around 35k on an x86 system.
 
          If your applications require the newer C99 math library functions, 
@@ -87,3 +116,7 @@ config C_SYMBOL_PREFIX
        default "_" if ARCH_HAS_C_SYMBOL_PREFIX
        default "" if !ARCH_HAS_C_SYMBOL_PREFIX
 
+config HAVE_DOT_CONFIG
+       bool
+       default y
+