diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-11-17 09:27:38 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-11-17 09:27:38 +0100 |
commit | 1f1863634345b157531fca21512784401b63752a (patch) | |
tree | fc1f5135c99c61a7507ba1208fcf1734b7abf265 /config/target.in | |
parent | 07dfc066590ad430e9e061e453329d476d990be4 (diff) | |
download | crosstool-ng-1f1863634345b157531fca21512784401b63752a.tar.gz crosstool-ng-1f1863634345b157531fca21512784401b63752a.tar.bz2 crosstool-ng-1f1863634345b157531fca21512784401b63752a.zip |
arch: add hidden config knobs for 32- and 64-bit support and select
Add new hidden config knobs that architectures can select to
say whether they support 32- or 64-bit variants, and which
they default to.
Diffstat (limited to 'config/target.in')
-rw-r--r-- | config/target.in | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/config/target.in b/config/target.in index ab6efe30..e45bda20 100644 --- a/config/target.in +++ b/config/target.in @@ -5,6 +5,9 @@ menu "Target options" config ARCH string +# Note: when all archs have migrated to the 32/64 bit selection, +# remove this option, and rename the config options in the bitness +# choice, below. config ARCH_64 bool default n @@ -12,6 +15,8 @@ config ARCH_64 # Pre-declare target optimisation variables config ARCH_SUPPORTS_BOTH_MMU config ARCH_SUPPORTS_BOTH_ENDIAN +config ARCH_SUPPORTS_32 +config ARCH_SUPPORTS_64 config ARCH_SUPPORT_ARCH config ARCH_SUPPORT_ABI config ARCH_SUPPORT_CPU @@ -21,6 +26,8 @@ config ARCH_SUPPORT_FPU config ARCH_DEFAULT_HAS_MMU config ARCH_DEFAULT_BE config ARCH_DEFAULT_LE +config ARCH_DEFAULT_32 +config ARCH_DEFAULT_64 config ARCH_ARCH config ARCH_ABI @@ -29,6 +36,8 @@ config ARCH_TUNE config ARCH_FPU config ARCH_BE config ARCH_LE +config ARCH_32b +config ARCH_64b config ARCH_FLOAT_HW config ARCH_FLOAT_SW config TARGET_CFLAGS @@ -94,6 +103,42 @@ config ARCH_LE endchoice #-------------------------------------- +config ARCH_SUPPORTS_32 + bool + default n + +config ARCH_SUPPORTS_64 + bool + default n + +config ARCH_DEFAULT_32 + bool + default n + +config ARCH_DEFAULT_64 + bool + default n + +choice + bool + prompt "Bitness:" + default ARCH_32b if ARCH_DEFAULT_32 + default ARCH_64b if ARCH_DEFAULT_64 + +config ARCH_32b + bool + prompt "32-bit" + depends on ARCH_SUPPORTS_32 + +config ARCH_64b + bool + prompt "64-bit" + depends on ARCH_SUPPORTS_64 + select ARCH_64 + +endchoice + +#-------------------------------------- comment "Target optimisations" config ARCH_SUPPORT_ARCH |