From 2e7820f004b3828ac79bb3ea0814067ab36f713d 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 | 5 ++++- config.guess | 3 +++ config.sub | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/automake.spec b/automake.spec index 9074248..2bccb4e 100644 --- a/automake.spec +++ b/automake.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 %global api_version 1.16 # do not mangle shebang in files which are part of bootstraped project @@ -153,6 +153,9 @@ make -k %{?_smp_mflags} check %{?TESTS_FLAGS: TESTS="%{TESTS_FLAGS}"} \ %doc AUTHORS README THANKS NEWS README.aclocal README.multilib %changelog +* Tue Jan 03 2023 Liwei Ge - 1.16.2-6.0.2 +- Support loongarch64 platform + * Thu Nov 24 2022 mgb01105731 - 1.16.2-6.0.1 - Add doc sub package diff --git a/config.guess b/config.guess index b33c9e8..4395a0a 100755 --- a/config.guess +++ b/config.guess @@ -913,6 +913,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 b51fb8c..0505187 100755 --- a/config.sub +++ b/config.sub @@ -1156,6 +1156,7 @@ case $cpu-$vendor in 1750a | 580 \ | a29k \ | aarch64 | aarch64_be \ + | loongarch32 | loongarch64 | loongarchx32 \ | abacus \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \ -- Gitee