summaryrefslogtreecommitdiff
path: root/scripts/build/arch.sh
blob: 48da2d6de32295ede83349782adf7220e7accc4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This file provides the default implementations of arch-specific functions.

# Set up the target tuple
CT_DoArchTupleValues() {
    :;
}

# Multilib: change the target triplet according to CFLAGS
CT_DoArchMultilibTarget() {
    local multi_flags="${1}"
    local target="${2}"

    echo "${target}"
}

# Multilib: Adjust target tuple for GLIBC
CT_DoArchGlibcAdjustTuple() {
    local target="${1}"

    echo "${target}"
}

# Override from the actual arch implementation as needed.
. "${CT_LIB_DIR}/scripts/build/arch/${CT_ARCH}.sh"