Commit 1b5f0fc8 authored by Yann E. MORIN's avatar Yann E. MORIN Committed by Peter Korsgaard
Browse files

arch: add an option to specify if the arch has atomic ops



The fact that atomic operations are available is not really a
specificity of the toolchain, but rather of the architecture.

So, add a new option that architectures that have atomic operations
can select. This in turn selects the current toolchain atomic option,
until all packages have been converted, at which point the old
toolchain option can be removed.

Reported-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Anton Kolesov <Anton.Kolesov@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 2289c34a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -250,6 +250,12 @@ config BR2_GCC_TARGET_FLOAT_ABI
config BR2_GCC_TARGET_MODE
	string

# If the architecture has atomic operations, select this:
config BR2_ARCH_HAS_ATOMICS
	bool
	default y if !BR2_arc
	select BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS

# Set up target binary format
choice
	prompt "Target Binary Format"
+1 −1
Original line number Diff line number Diff line
# Choise of atomic instructions presence
config BR2_ARC_ATOMIC_EXT
	bool "Atomic extension (LLOCK/SCOND instructions)"
	select BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS
	select BR2_ARCH_HAS_ATOMICS

config BR2_ARCH
	default "arc"	if BR2_arcle
+0 −1
Original line number Diff line number Diff line
@@ -46,7 +46,6 @@ config BR2_TOOLCHAIN_HAS_SSP

config BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS
	bool
	default y if !BR2_arc

config BR2_ENABLE_LOCALE_PURGE
	bool "Purge unwanted locales"