aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2014-09-11 22:46:46 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-09-11 22:53:08 +0200
commit21c8f1e9470d37787b6d7cef10612df56cfdef2a (patch)
treecb989d4dbfa2855cc89f6792ebd6fecf73d631f5 /arch
parent9581d0d1177d41cc61501e0f93f6089da3c1d4c1 (diff)
downloadbuildroot-21c8f1e9470d37787b6d7cef10612df56cfdef2a.tar.gz
buildroot-21c8f1e9470d37787b6d7cef10612df56cfdef2a.tar.bz2
arch/arc: fix atomics selection
Due to a kconfig limitation, we can't select a no-prompt symbol that gets its dependencies by being conditionally re-defined in one or more if-blocks, like we currently do for BR2_ARCH_HAS_ATOMICS. As a workaround to this issue, we just redefine that symbol in the arc if-block, like we do for all other architectures, except that in the arc case, the default value is conditional. Reported-by: Anton Kolesov <Anton.Kolesov@synopsys.com> [yann.morin.1998@free.fr: indepently re-done a patch similar to the one Thomas made on his own] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/Config.in.arc4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/Config.in.arc b/arch/Config.in.arc
index 8a7f290f52..fcb5d7d283 100644
--- a/arch/Config.in.arc
+++ b/arch/Config.in.arc
@@ -1,7 +1,9 @@
# Choise of atomic instructions presence
config BR2_ARC_ATOMIC_EXT
bool "Atomic extension (LLOCK/SCOND instructions)"
- select BR2_ARCH_HAS_ATOMICS
+
+config BR2_ARCH_HAS_ATOMICS
+ default y if BR2_ARC_ATOMIC_EXT
config BR2_ARCH
default "arc" if BR2_arcle