From 363a6fbdf6e27edc9f47d30431a628aba09a7d4e Mon Sep 17 00:00:00 2001 From: wxiat Date: Thu, 24 Aug 2023 17:18:27 +0800 Subject: [PATCH] cherry-pick `add sw arch #ae5f78b8502183e7de462ac47dca6fbee09483db`. Signed-off-by: wxiat --- automake.spec | 5 ++++- config.guess | 8 ++++++++ config.sub | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/automake.spec b/automake.spec index 3e7598e..d065e7a 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 @@ -166,6 +166,9 @@ make -k %{?_smp_mflags} check %{?TESTS_FLAGS: TESTS="%{TESTS_FLAGS}"} \ %doc AUTHORS README THANKS NEWS README.aclocal README.multilib %changelog +* Tue Mar 19 2024 wxiat - 1.16.2-8.0.2 +- cherry-pick `add sw arch #ae5f78b8502183e7de462ac47dca6fbee09483db`. + * Wed Dec 06 2023 mgb01105731 - 1.16.2-8.0.1 - Add doc sub package - Support loongarch64 platform (Liwei Ge) diff --git a/config.guess b/config.guess index 4395a0a..d58e26e 100755 --- a/config.guess +++ b/config.guess @@ -916,6 +916,14 @@ EOF loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; + sw_64:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + sw) UNAME_MACHINE=sw_64 ;; + esac + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" = 0 ; then LIBC=gnulibc1 ; fi + echo "$UNAME_MACHINE"-sunway-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 0505187..aaf8187 100755 --- a/config.sub +++ b/config.sub @@ -1158,6 +1158,7 @@ case $cpu-$vendor in | aarch64 | aarch64_be \ | loongarch32 | loongarch64 | loongarchx32 \ | abacus \ + | sw_64 \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \ | alphapca5[67] | alpha64pca5[67] \ -- Gitee