arm: move atomic operations selection to the Cortex-M Kconfig

Builtin might not be available for ARMv6 (Cortex-M0/M0+) depending on
the toolchain used (not available by Zephyr's SDK GCC), so move the
atomic operations selection to the Cortex-M family Kconfig file.

Change-Id: I20a5a0c5fdd2bcff2d304139f5a7e8502fdb1cb3
Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
This commit is contained in:
Ricardo Salveti 2016-08-26 02:09:40 -03:00 committed by Anas Nashif
commit b0e0c51b47
2 changed files with 1 additions and 1 deletions

View file

@ -27,7 +27,6 @@ config ARC
config ARM
bool "ARM architecture"
select ATOMIC_OPERATIONS_BUILTIN
config X86
bool "x86 architecture"

View file

@ -49,6 +49,7 @@ config CPU_CORTEX_M3_M4
bool
# Omit prompt to signify "hidden" option
default n
select ATOMIC_OPERATIONS_BUILTIN
select ISA_THUMB2
help
This option signifies the use of either a Cortex-M3 or Cortex-M4 CPU.