diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-11-04 13:07:50 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-11-04 13:07:50 +0000 |
commit | f8a3fa0247f4ee4e614df73aef0f8732c8ae5ab3 (patch) | |
tree | 8a616a6013bc45c1e86b5ca6b347bd81393217e2 /extra/Configs/Config.sh | |
parent | fe6015e8aac57bedd05407fc956727c993070adf (diff) |
Rework the config system. Better utilize the Kconfig language
which should simplify enabling arbitrary architectures.
-Erik
Diffstat (limited to 'extra/Configs/Config.sh')
-rw-r--r-- | extra/Configs/Config.sh | 48 |
1 files changed, 16 insertions, 32 deletions
diff --git a/extra/Configs/Config.sh b/extra/Configs/Config.sh index bf4326c52..5a9eaf525 100644 --- a/extra/Configs/Config.sh +++ b/extra/Configs/Config.sh @@ -3,9 +3,11 @@ # see extra/config/Kconfig-language.txt # -mainmenu "uClibc C Library Configuration" - -menu "Target Architecture Features and Options" +config TARGET_ARCH + default "sh2" if CONFIG_SH2 + default "sh3" if CONFIG_SH3 + default "sh4" if CONFIG_SH4 + default "sh64" if CONFIG_SH5 config HAVE_ELF bool @@ -41,46 +43,28 @@ choice - "SH2" Hitachi SH2 - "SH3" Hitachi SH3 - "SH4" Hitachi SH4 + - "SH5" SH-5 101, 103 config CONFIG_SH2 + select ARCH_HAS_NO_FPU + select ARCH_HAS_NO_MMU bool "SH2" config CONFIG_SH3 + select HAS_FPU + select UCLIBC_HAS_MMU bool "SH3" config CONFIG_SH4 + select HAS_FPU + select UCLIBC_HAS_MMU bool "SH4" -endchoice - -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" +config CONFIG_SH5 + select HAS_FPU + select UCLIBC_HAS_MMU + bool "SH5" endchoice -config ARCH_HAS_NO_MMU - bool - default y if CONFIG_SH2 - -config ARCH_HAS_NO_FPU - bool - default y if CONFIG_SH2 || CONFIG_SH3 - -source "extra/Configs/Config.in.arch" - -endmenu - -source "extra/Configs/Config.in" - - |