Skip to content

Commit cfba5a5

Browse files
yann-morin-1998abrodkin
authored andcommitted
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 <[email protected]> [[email protected]: indepently re-done a patch similar to the one Thomas made on his own] Signed-off-by: "Yann E. MORIN" <[email protected]> Cc: Thomas Petazzoni <[email protected]> Acked-by: Thomas Petazzoni <[email protected]> Signed-off-by: Peter Korsgaard <[email protected]>
1 parent 096cac6 commit cfba5a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/Config.in.arc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Choise of atomic instructions presence
22
config BR2_ARC_ATOMIC_EXT
33
bool "Atomic extension (LLOCK/SCOND instructions)"
4-
select BR2_ARCH_HAS_ATOMICS
4+
5+
config BR2_ARCH_HAS_ATOMICS
6+
default y if BR2_ARC_ATOMIC_EXT
57

68
config BR2_ARCH
79
default "arc" if BR2_arcle

0 commit comments

Comments
 (0)