Browse Source

Move sh64 to its own config so we don't crap up the sh one..

Paul Mundt 19 years ago
parent
commit
d750e4b263
3 changed files with 61 additions and 9 deletions
  1. 7 0
      extra/Configs/Config.in
  2. 2 9
      extra/Configs/Config.sh
  3. 52 0
      extra/Configs/Config.sh64

+ 7 - 0
extra/Configs/Config.in

@@ -58,6 +58,9 @@ config TARGET_powerpc
 config TARGET_sh
 	bool "superh"
 
+config TARGET_sh64
+	bool "sh64"
+
 config TARGET_sparc
 	bool "sparc"
 
@@ -136,6 +139,10 @@ if TARGET_sh
 source "extra/Configs/Config.sh"
 endif
 
+if TARGET_sh64
+source "extra/Configs/Config.sh64"
+endif
+
 if TARGET_sparc
 source "extra/Configs/Config.sparc"
 endif

+ 2 - 9
extra/Configs/Config.sh

@@ -4,8 +4,7 @@
 #
 
 config TARGET_ARCH
-	default "sh" if CONFIG_SH2A || CONFIG_SH2 || CONFIG_SH3 || CONFIG_SH4
-	default "sh64" if CONFIG_SH5
+	default "sh"
 
 config HAVE_ELF
 	bool
@@ -42,10 +41,10 @@ choice
 	  that uClibc will work at all....
 
 	  Here are the available choices:
+	  - "SH2A" Renesas SH-2A (SH7206)
 	  - "SH2" SuperH SH-2
 	  - "SH3" SuperH SH-3
 	  - "SH4" SuperH SH-4
-	  - "SH5" SuperH SH-5 101, 103
 
 config CONFIG_SH2A
 	select ARCH_HAS_NO_MMU
@@ -67,11 +66,5 @@ config CONFIG_SH4
 	select FORCE_SHAREABLE_TEXT_SEGMENTS
 	bool "SH4"
 
-config CONFIG_SH5
-	select ARCH_HAS_MMU
-	select UCLIBC_HAS_LFS
-	bool "SH5"
-
 endchoice
 
-

+ 52 - 0
extra/Configs/Config.sh64

@@ -0,0 +1,52 @@
+#
+# For a description of the syntax of this configuration file,
+# see extra/config/Kconfig-language.txt
+#
+
+config TARGET_ARCH
+	default "sh64"
+
+config HAVE_ELF
+	bool
+	default y
+
+config ARCH_CFLAGS
+	string
+
+config ARCH_LDFLAGS
+	string
+
+config LIBGCC_CFLAGS
+	string
+
+config HAVE_DOT_HIDDEN
+        bool
+	default y
+
+config ARCH_SUPPORTS_BIG_ENDIAN
+	bool
+	default y
+
+config ARCH_SUPPORTS_LITTLE_ENDIAN
+	bool
+	default y
+
+choice
+	prompt "Target Processor Type"
+	default CONFIG_SH5
+	help
+	  This is the processor type of your CPU. This information is used for
+	  optimizing purposes, as well as to determine if your CPU has an MMU,
+	  an FPU, etc.  If you pick the wrong CPU type, there is no guarantee
+	  that uClibc will work at all....
+
+	  Here are the available choices:
+	  - "SH5" SuperH SH-5 101, 103
+
+config CONFIG_SH5
+	select ARCH_HAS_MMU
+	select UCLIBC_HAS_LFS
+	bool "SH5"
+
+endchoice
+