From 7fcb82665e96a50174084c8bfcd0302ce31291f4 Mon Sep 17 00:00:00 2001 From: Weijie Gao Date: Sun, 7 Jan 2024 03:10:45 +0800 Subject: loongarch64: new target Add target for Loongson LoongArch64-based boards. LoongArch is a new RISC ISA developed by Loongson. It's a bit like MIPS or RISC-V. LoongArch includes both 32-bit and 64-bit versions (LoongArch32/LoongArch64). Loongson 3A5000 and 3A6000 are the two existing CPUs of LoongArch64 and is used for PC products. It's BIOS supports ACPI and UEFI-only boot. These CPUs supports SMP and SMT. At present only LoongArch64 is supported by linux kernel. Toolchain requirement: binutils >= 2.40 gcc >= 13.1 For details, please check the following links: https://lwn.net/Articles/861951/ https://loongson.github.io/LoongArch-Documentation/README-EN.html Signed-off-by: Weijie Gao --- toolchain/Config.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'toolchain') diff --git a/toolchain/Config.in b/toolchain/Config.in index 24caecccb3..b4ba5b3b67 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -97,6 +97,7 @@ menuconfig EXTERNAL_TOOLCHAIN default "arm-unknown-linux-gnu" if arm default "armeb-unknown-linux-gnu" if armeb default "i486-unknown-linux-gnu" if i386 + default "loongarch64-unknown-linux-gnu" if loongarch64 default "mips-unknown-linux-gnu" if mips default "mipsel-unknown-linux-gnu" if mipsel default "powerpc-unknown-linux-gnu" if powerpc @@ -111,6 +112,7 @@ menuconfig EXTERNAL_TOOLCHAIN default "arm-unknown-linux-gnu-" if arm default "armeb-unknown-linux-gnu-" if armeb default "i486-unknown-linux-gnu-" if i386 + default "loongarch64-unknown-linux-gnu-" if loongarch64 default "mips-unknown-linux-gnu-" if mips default "mipsel-unknown-linux-gnu-" if mipsel default "powerpc-unknown-linux-gnu-" if powerpc @@ -125,6 +127,7 @@ menuconfig EXTERNAL_TOOLCHAIN default "/opt/cross/arm-unknown-linux-gnu" if arm default "/opt/cross/armeb-unknown-linux-gnu" if armeb default "/opt/cross/i486-unknown-linux-gnu" if i386 + default "/opt/cross/loongarch64-unknown-linux-gnu" if loongarch64 default "/opt/cross/mips-unknown-linux-gnu" if mips default "/opt/cross/mipsel-unknown-linux-gnu" if mipsel default "/opt/cross/powerpc-unknown-linux-gnu" if powerpc -- cgit v1.2.3