binutils/binutils: hide gold option if no support for current architecture 1.10
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Apr 05 01:17:58 2011 +0200 (2011-04-05)
branch1.10
changeset 2397aee55f7b7ea7
parent 2396 e3f16cdbbf5e
child 2398 9bafe9c8f0b3
binutils/binutils: hide gold option if no support for current architecture

The gold linker does currently support only a limited set of architectures:
- x86 (32- and 64-bit)
- ARM

Hide the gold option for other architectures.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 148e80538623dd4fdb7895546138eabaf5712518)
config/binutils/binutils.in
     1.1 --- a/config/binutils/binutils.in	Sun Mar 27 00:09:42 2011 +0100
     1.2 +++ b/config/binutils/binutils.in	Tue Apr 05 01:17:58 2011 +0200
     1.3 @@ -67,10 +67,20 @@
     1.4  config BINUTILS_HAS_GOLD
     1.5      bool
     1.6  
     1.7 +config BINUTILS_GOLD_SUPPORTS_ARCH
     1.8 +    bool
     1.9 +
    1.10  config BINUTILS_HAS_PLUGINS
    1.11      bool
    1.12  
    1.13 -if BINUTILS_HAS_GOLD
    1.14 +# Only these architectures have support in gold
    1.15 +config ARCH_arm
    1.16 +    select BINUTILS_GOLD_SUPPORTS_ARCH
    1.17 +
    1.18 +config ARCH_x86
    1.19 +    select BINUTILS_GOLD_SUPPORTS_ARCH
    1.20 +
    1.21 +if BINUTILS_HAS_GOLD && BINUTILS_GOLD_SUPPORTS_ARCH
    1.22  
    1.23  choice
    1.24      bool