patches/uClibc/0.9.32/140-ARM-reorder-Use-BX-option.patch
changeset 2612 a52574521bea
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/uClibc/0.9.32/140-ARM-reorder-Use-BX-option.patch	Thu Aug 18 16:05:48 2011 +0200
     1.3 @@ -0,0 +1,48 @@
     1.4 +commit d64b91a6d4fa1a3ac1d01fa7593d67c5e5ed5101
     1.5 +Author: Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
     1.6 +Date:   Sun Jan 9 01:45:04 2011 +0100
     1.7 +
     1.8 +    ARM: reorder "Use BX" option
     1.9 +    
    1.10 +    "Use BX" is not available on all CPUs, so the option depends on
    1.11 +    a correct CPU to be chosen . It is weird that e BX" then appears
    1.12 +    _above_ the CPU selection, not below.
    1.13 +    
    1.14 +    Move the "Use BX" after the CPU selection.
    1.15 +    
    1.16 +    Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
    1.17 +    Cc: Khem Raj <raj.khem@gmail.com>
    1.18 +    Cc: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
    1.19 +    Cc: Carmelo AMOROSO <carmelo.amoroso@st.com>
    1.20 +    Signed-off-by: Khem Raj <raj.khem@gmail.com>
    1.21 +    Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
    1.22 +
    1.23 +diff --git a/extra/Configs/Config.arm b/extra/Configs/Config.arm
    1.24 +index eb27a33..dd63b80 100644
    1.25 +--- a/extra/Configs/Config.arm
    1.26 ++++ b/extra/Configs/Config.arm
    1.27 +@@ -30,13 +30,6 @@ config CONFIG_ARM_EABI
    1.28 + 
    1.29 + endchoice
    1.30 + 
    1.31 +-config USE_BX
    1.32 +-	bool "Use BX in function return"
    1.33 +-	default y
    1.34 +-	depends on !CONFIG_GENERIC_ARM && !CONFIG_ARM610 && !CONFIG_ARM710
    1.35 +-	help
    1.36 +-	  Use BX instruction for THUMB aware architectures.
    1.37 +-
    1.38 + choice
    1.39 + 	prompt "Target Processor Type"
    1.40 + 	default CONFIG_GENERIC_ARM
    1.41 +@@ -131,3 +124,10 @@ config CONFIG_ARM_IWMMXT
    1.42 + 	select ARCH_HAS_MMU
    1.43 + 
    1.44 + endchoice
    1.45 ++
    1.46 ++config USE_BX
    1.47 ++	bool "Use BX in function return"
    1.48 ++	default y
    1.49 ++	depends on !CONFIG_GENERIC_ARM && !CONFIG_ARM610 && !CONFIG_ARM710
    1.50 ++	help
    1.51 ++	  Use BX instruction for THUMB aware architectures.