From 0a64056dd3d094503a1ef1d23d2636bcd9708b2f Mon Sep 17 00:00:00 2001 From: Alexey Brodkin Date: Mon, 21 May 2018 14:03:59 +0300 Subject: ARC: Disable CONFIG_ARC_HAS_ATOMICS in uClibc if building without -matomics In case we build for ARC core which has no support of atomic ops among other things we need to configure libc to use Linux kernel helper to emulate HS atomic ops. This is done with disabling of CONFIG_ARC_HAS_ATOMICS in uClibc. Currently we __remove__ this option from .config but this makes no sense as its default state is "y" so we need to explicitly disable it instead. Signed-off-by: Alexey Brodkin diff --git a/scripts/build/arch/arc.sh b/scripts/build/arch/arc.sh index fb9d93b..2b48e4b 100644 --- a/scripts/build/arch/arc.sh +++ b/scripts/build/arch/arc.sh @@ -22,7 +22,7 @@ CT_DoArchUClibcCflags() { local cflags="${2}" local f - CT_KconfigDeleteOption "CONFIG_ARC_HAS_ATOMICS" "${cfg}" + CT_KconfigDisableOption "CONFIG_ARC_HAS_ATOMICS" "${cfg}" for f in ${cflags}; do case "${f}" in -- cgit v0.10.2-6-g49f6