Browse Source

(UCLIBC_HAS_MMU): Depend on !ARCH_HAS_NO_MMU, rather than just using it
to set the default.
(HAS_FPU): Depend on !ARCH_HAS_NO_FPU.
(USE_GCC_SOFT_FLOAT_OPTION): New option.

Miles Bader 21 years ago
parent
commit
02673a6d9b
1 changed files with 11 additions and 2 deletions
  1. 11 2
      extra/Configs/Config.in.arch

+ 11 - 2
extra/Configs/Config.in.arch

@@ -5,7 +5,8 @@
 
 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.  
@@ -28,7 +29,7 @@ config UCLIBC_HAS_FLOATS
 
 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
@@ -44,6 +45,14 @@ config UCLIBC_HAS_SOFT_FLOAT
 	bool
 	depends on UCLIBC_HAS_FLOATS && !HAS_FPU
 	default y
+config USE_GCC_SOFT_FLOAT_OPTION
+	bool
+	depends UCLIBC_HAS_SOFT_FLOAT
+	default y if !ARCH_HAS_NO_FPU
+	help
+	  True if we should use the gcc `-msoft-float' option when
+	  compiling in soft-float support (not all platforms use that
+	  option, even if they use soft-floats).
 
 config DO_C99_MATH
 	bool "Enable full C99 math library support"