Skip to content

Commit

Permalink
ARC: Disable CONFIG_ARC_HAS_ATOMICS in uClibc if building without -ma…
Browse files Browse the repository at this point in the history
…tomics

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>
  • Loading branch information
abrodkin committed May 21, 2018
1 parent b078bb0 commit 0a64056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build/arch/arc.sh
Expand Up @@ -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
Expand Down

0 comments on commit 0a64056

Please sign in to comment.