From f247b49b44dffda60c3e37693e715a980c0d0cfc Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Wed, 17 Nov 2021 13:15:05 +0800 Subject: [PATCH] config: support loongarch64 platform Signed-off-by: Liwei Ge --- automake.spec | 6 +++++- config.guess | 3 +++ config.sub | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/automake.spec b/automake.spec index 78ffc59..6206171 100644 --- a/automake.spec +++ b/automake.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 %global api_version 1.16 # run "make check" by default @@ -11,7 +12,7 @@ Summary: A GNU tool for automatically creating Makefiles Name: automake Version: %{api_version}.1 -Release: 7%{?dist} +Release: 7%{anolis_release}%{?dist} # docs ~> GFDL, sources ~> GPLv2+, mkinstalldirs ~> PD and install-sh ~> MIT License: GPLv2+ and GFDL and Public Domain and MIT @@ -128,6 +129,9 @@ make -k %{?_smp_mflags} check %{?TESTS_FLAGS: TESTS="%{TESTS_FLAGS}"} \ %changelog +* Wed Nov 17 2021 Liwei Ge - 1.16.1-7.0.1 +- Support loongarch64 platform + * Tue May 05 2020 Patrik Novotný - 1.16.1-7 - Upstream patch fixing automake bug#31222 diff --git a/config.guess b/config.guess index 256083a..352bec0 100755 --- a/config.guess +++ b/config.guess @@ -904,6 +904,9 @@ EOF UNAME_MACHINE=aarch64_be echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; + loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; diff --git a/config.sub b/config.sub index 20f7cf2..ee7f196 100755 --- a/config.sub +++ b/config.sub @@ -265,6 +265,7 @@ case $basic_machine in 1750a | 580 \ | a29k \ | aarch64 | aarch64_be \ + | loongarch32 | loongarch64 | loongarchx32 \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ @@ -394,6 +395,7 @@ case $basic_machine in 580-* \ | a29k-* \ | aarch64-* | aarch64_be-* \ + | loongarch32-* | loongarch64-* | loongarchx32-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ -- Gitee