diff options
author | Alexey Brodkin <abrodkin@synopsys.com> | 2018-05-21 14:03:59 +0300 |
---|---|---|
committer | Alexey Brodkin <abrodkin@synopsys.com> | 2018-05-21 15:03:17 +0300 |
commit | 0a64056dd3d094503a1ef1d23d2636bcd9708b2f (patch) | |
tree | dbb86bedc80c1b130dfebf78442966621ba18e3b /scripts/build/arch | |
parent | b078bb09dd3e460788d914a07adf3f4f53c86494 (diff) | |
download | crosstool-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/build/arch')
-rw-r--r-- | scripts/build/arch/arc.sh | 2 |
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 |