diff options
author | Alexey Neyman <stilor@att.net> | 2018-12-10 09:10:01 (GMT) |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-12-10 09:10:01 (GMT) |
commit | 5cf859d9d9308e341c58caff45d54a910480ad24 (patch) | |
tree | c35674a1a65d77bfbdb7ffd932d70dcac97714fe /scripts/build/arch/arc.sh | |
parent | afb17244d2b5d86d99dc298694417d1d97c3864d (diff) |
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>
Diffstat (limited to 'scripts/build/arch/arc.sh')
-rw-r--r-- | scripts/build/arch/arc.sh | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/scripts/build/arch/arc.sh b/scripts/build/arch/arc.sh index 2b48e4b..b13ef0e 100644 --- a/scripts/build/arch/arc.sh +++ b/scripts/build/arch/arc.sh @@ -1,23 +1,20 @@ # Compute ARC-specific values -CT_DoArchTupleValues() { +CT_DoArchTupleValues() +{ # The architecture part of the tuple: CT_TARGET_ARCH="${CT_ARCH}${CT_ARCH_SUFFIX:-${target_endian_eb}}" - - # The system part of the tuple: - case "${CT_LIBC}" in - glibc) CT_TARGET_SYS=gnu;; - uClibc) CT_TARGET_SYS=uclibc;; - esac } -CT_DoArchUClibcConfig() { +CT_DoArchUClibcConfig() +{ local cfg="${1}" CT_DoArchUClibcSelectArch "${cfg}" "arc" } -CT_DoArchUClibcCflags() { +CT_DoArchUClibcCflags() +{ local cfg="${1}" local cflags="${2}" local f |