patches/uClibc/0.9.32/140-ARM-reorder-Use-BX-option.patch
author Cody Schafer <dev@codyps.com>
Fri May 09 19:13:49 2014 -0700 (2014-05-09)
changeset 3312 4876ff97e039
permissions -rw-r--r--
cc/gcc: allow CC_EXTRA_CONFIG_ARRAY on baremetal

The final bare-metal compiler is built using the core backend.
Currently the core uses the CC_CORE_EXTRA_CONFIG_ARRAY variable.

While this works as supposed to, this can leave the user puzzled
in the menuconfig, since all he can see is the core options, not
the final options.

Only show the core options if any of the core passes are needed,
and use the final options in the core-backend if we're issuing
the bare-metal compiler.

Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: hide core options if no core pass needed;
use final option in core backend if issuing the bare-metal compiler]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <22181e546ba746202489.1399688067@localhost>
Patchwork-Id: 347586
     1 commit d64b91a6d4fa1a3ac1d01fa7593d67c5e5ed5101
     2 Author: Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
     3 Date:   Sun Jan 9 01:45:04 2011 +0100
     4 
     5     ARM: reorder "Use BX" option
     6     
     7     "Use BX" is not available on all CPUs, so the option depends on
     8     a correct CPU to be chosen . It is weird that e BX" then appears
     9     _above_ the CPU selection, not below.
    10     
    11     Move the "Use BX" after the CPU selection.
    12     
    13     Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
    14     Cc: Khem Raj <raj.khem@gmail.com>
    15     Cc: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
    16     Cc: Carmelo AMOROSO <carmelo.amoroso@st.com>
    17     Signed-off-by: Khem Raj <raj.khem@gmail.com>
    18     Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
    19 
    20 diff --git a/extra/Configs/Config.arm b/extra/Configs/Config.arm
    21 index eb27a33..dd63b80 100644
    22 --- a/extra/Configs/Config.arm
    23 +++ b/extra/Configs/Config.arm
    24 @@ -30,13 +30,6 @@ config CONFIG_ARM_EABI
    25  
    26  endchoice
    27  
    28 -config USE_BX
    29 -	bool "Use BX in function return"
    30 -	default y
    31 -	depends on !CONFIG_GENERIC_ARM && !CONFIG_ARM610 && !CONFIG_ARM710
    32 -	help
    33 -	  Use BX instruction for THUMB aware architectures.
    34 -
    35  choice
    36  	prompt "Target Processor Type"
    37  	default CONFIG_GENERIC_ARM
    38 @@ -131,3 +124,10 @@ config CONFIG_ARM_IWMMXT
    39  	select ARCH_HAS_MMU
    40  
    41  endchoice
    42 +
    43 +config USE_BX
    44 +	bool "Use BX in function return"
    45 +	default y
    46 +	depends on !CONFIG_GENERIC_ARM && !CONFIG_ARM610 && !CONFIG_ARM710
    47 +	help
    48 +	  Use BX instruction for THUMB aware architectures.