arch/arm: fix-up the ARM Kconfig warning
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 7 Feb 2013 09:04:48 +0000 (09:04 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 7 Feb 2013 19:39:26 +0000 (20:39 +0100)
Kconfig does not accepts that a symbol that is part of a choice
be affected a default value.

Fix this by introducing a dummy EABI symbol, and make the real
EABI symbol a prompt-less option that depends on !OABI.

[Peter: drop arm dependency, rename to EABI_CHOICE]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
arch/Config.in.arm

index 37152c01a8bdfc67ee1d0bfaf49f97d24e16ae61..79f08f77c8b70033bcf337104d3945190eb635d2 100644 (file)
@@ -76,7 +76,7 @@ choice
          Note:
            Using OABI is discouraged.
 
-config BR2_ARM_EABI
+config BR2_ARM_EABI_CHOICE
        bool "EABI"
 config BR2_ARM_OABI
        bool "OABI"
@@ -84,8 +84,8 @@ config BR2_ARM_OABI
 endchoice
 
 config BR2_ARM_EABI
-       default y
-       depends on !BR2_DEPRECATED
+       def_bool y
+       depends on !BR2_ARM_OABI
 
 config BR2_ARM_ENABLE_NEON
        bool "Enable NEON SIMD extension support"