From e840986fa432888fbc893cd963dcd08a0020b668 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Mon, 2 May 2022 20:12:45 +0800 Subject: 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 --- scripts/build/arch/loongarch.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 scripts/build/arch/loongarch.sh (limited to 'scripts') 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}" +} -- cgit v1.2.3