aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexey Brodkin <abrodkin@synopsys.com>2018-05-21 14:03:59 +0300
committerAlexey Brodkin <abrodkin@synopsys.com>2018-05-21 15:03:17 +0300
commit0a64056dd3d094503a1ef1d23d2636bcd9708b2f (patch)
treedbb86bedc80c1b130dfebf78442966621ba18e3b /scripts
parentb078bb09dd3e460788d914a07adf3f4f53c86494 (diff)
downloadcrosstool-ng-0a64056dd3d094503a1ef1d23d2636bcd9708b2f.tar.gz
crosstool-ng-0a64056dd3d094503a1ef1d23d2636bcd9708b2f.tar.bz2
crosstool-ng-0a64056dd3d094503a1ef1d23d2636bcd9708b2f.zip
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')
-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 fb9d93b6..2b48e4ba 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