crosstool-ng/scripts/build/arch/arc.sh
Alexey Neyman 5cf859d9d9 Add config flags for omitting 'arch' and 'vendor'
... parts of the config tuple. While here, remove parts that are
setting portions of the target tuple to a value that's already
the default.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-10 01:10:01 -08:00

32 lines
602 B
Bash

# Compute ARC-specific values
CT_DoArchTupleValues()
{
# The architecture part of the tuple:
CT_TARGET_ARCH="${CT_ARCH}${CT_ARCH_SUFFIX:-${target_endian_eb}}"
}
CT_DoArchUClibcConfig()
{
local cfg="${1}"
CT_DoArchUClibcSelectArch "${cfg}" "arc"
}
CT_DoArchUClibcCflags()
{
local cfg="${1}"
local cflags="${2}"
local f
CT_KconfigDisableOption "CONFIG_ARC_HAS_ATOMICS" "${cfg}"
for f in ${cflags}; do
case "${f}" in
-matomic)
CT_KconfigEnableOption "CONFIG_ARC_HAS_ATOMICS" "${cfg}"
;;
esac
done
}