[PATCH 1/5] config: Add LoongArch architecture support in config.guess and config.sub files

Youling Tang tangyouling at loongson.cn
Tue Sep 27 19:28:22 PDT 2022


Add configuration files required by LoongArch architecture, including
config.guess and config.sub files.

The source file comes from:
    https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
  and
    https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub

Signed-off-by: Youling Tang <tangyouling at loongson.cn>
---
 config/config.guess | 3 +++
 config/config.sub   | 1 +
 2 files changed, 4 insertions(+)

diff --git a/config/config.guess b/config/config.guess
index 8d70ec2..c626f7a 100755
--- a/config/config.guess
+++ b/config/config.guess
@@ -983,6 +983,9 @@ EOF
     k1om:Linux:*:*)
 	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
 	exit ;;
+    loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
+	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
+	exit ;;
     m32r*:Linux:*:*)
 	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
 	exit ;;
diff --git a/config/config.sub b/config/config.sub
index 9bc49a7..dae00e6 100755
--- a/config/config.sub
+++ b/config/config.sub
@@ -1185,6 +1185,7 @@ case $cpu-$vendor in
 			| k1om \
 			| le32 | le64 \
 			| lm32 \
+			| loongarch32 | loongarch64 | loongarchx32 \
 			| m32c | m32r | m32rle \
 			| m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
 			| m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
-- 
2.36.0




More information about the kexec mailing list