From 21c8f1e9470d37787b6d7cef10612df56cfdef2a Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Thu, 11 Sep 2014 22:46:46 +0200 Subject: [PATCH] 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 [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" Cc: Thomas Petazzoni Acked-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- arch/Config.in.arc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.30.2