summaryrefslogtreecommitdiff
path: root/scripts/build/arch
diff options
context:
space:
mode:
authorAlexey Brodkin <abrodkin@synopsys.com>2018-05-21 11:03:59 (GMT)
committerAlexey Brodkin <abrodkin@synopsys.com>2018-05-21 12:03:17 (GMT)
commit0a64056dd3d094503a1ef1d23d2636bcd9708b2f (patch)
treedbb86bedc80c1b130dfebf78442966621ba18e3b /scripts/build/arch
parentb078bb09dd3e460788d914a07adf3f4f53c86494 (diff)
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 <abrodkin@synopsys.com>
Diffstat (limited to 'scripts/build/arch')
-rw-r--r--scripts/build/arch/arc.sh2
1 files changed, 1 insertions, 1 deletions
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