From b802090ae48009e0e9a91f744e6144e01f351d1e Mon Sep 17 00:00:00 2001 From: Sun Haiyong Date: Tue, 11 Jan 2022 19:26:35 +0800 Subject: [PATCH] Add loongarch architecture support. --- automake.spec | 5 ++++- config.guess | 3 +++ config.sub | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/automake.spec b/automake.spec index ccfff50..517f58f 100644 --- a/automake.spec +++ b/automake.spec @@ -4,7 +4,7 @@ Name: automake Version: 1.16.5 -Release: 2 +Release: 3 Summary: A tool for automatically generating Makefile.in files License: GPLv2+ and GFDL and Public Domain and MIT URL: http://www.gnu.org/software/automake/ @@ -69,6 +69,9 @@ fi %{_mandir}/man1/* %changelog +* Tue Jan 11 2021 Sunhaiyong - 1.16.5-3 +- Add loongarch support. + * Wed Dec 29 2021 wangjie - 1.16.5-2 - Type:enhancement - ID:NA diff --git a/config.guess b/config.guess index 256083a..38a3a94 100644 --- a/config.guess +++ b/config.guess @@ -964,6 +964,9 @@ EOF k1om:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; + loongarch64:Linux:*:* | loongarch32:Linux:*:*) + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + exit ;; m32r*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; diff --git a/config.sub b/config.sub index 20f7cf2..f1773ed 100644 --- a/config.sub +++ b/config.sub @@ -285,6 +285,7 @@ case $basic_machine in | k1om \ | le32 | le64 \ | lm32 \ + | loongarch64 | loongarch32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ @@ -415,6 +416,7 @@ case $basic_machine in | k1om-* \ | le32-* | le64-* \ | lm32-* \ + | loongarch64 | loongarch32 \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ -- Gitee