aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJiajie Chen <c@jia.je>2022-05-02 20:12:45 +0800
committerChris Packham <judge.packham@gmail.com>2022-08-19 22:01:34 +1200
commite840986fa432888fbc893cd963dcd08a0020b668 (patch)
tree84f4bb0a8c50d5684d49db2ffdc5fe55267da267 /scripts
parent55d8c433332bb90e397b55562f849c8f673b1aea (diff)
downloadcrosstool-ng-e840986fa432888fbc893cd963dcd08a0020b668.tar.gz
crosstool-ng-e840986fa432888fbc893cd963dcd08a0020b668.tar.bz2
crosstool-ng-e840986fa432888fbc893cd963dcd08a0020b668.zip
loongarch64: add initial loongarch support
This commit adds architecture support for LoongArch. The toolchain currently only supports the 64-bit target loongarch64-unknown-linux-gnu. It has been tested to build with GCC 12.1, GDB 12.1, Glibc 2.36, Linux 5.19 and Binutils 2.39 as of Aug 2022. Signed-off-by: Jiajie Chen <c@jia.je>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/arch/loongarch.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build/arch/loongarch.sh b/scripts/build/arch/loongarch.sh
new file mode 100644
index 00000000..2e981888
--- /dev/null
+++ b/scripts/build/arch/loongarch.sh
@@ -0,0 +1,5 @@
+# Compute LoongArch-specific values
+
+CT_DoArchTupleValues() {
+ CT_TARGET_ARCH="loongarch${CT_ARCH_BITNESS}"
+}