summaryrefslogtreecommitdiff
path: root/scripts/build/arch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/arch.sh')
-rw-r--r--scripts/build/arch.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/build/arch.sh b/scripts/build/arch.sh
new file mode 100644
index 0000000..48da2d6
--- /dev/null
+++ b/scripts/build/arch.sh
@@ -0,0 +1,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"