From ae5f78b8502183e7de462ac47dca6fbee09483db Mon Sep 17 00:00:00 2001 From: wxiat Date: Thu, 24 Aug 2023 17:18:27 +0800 Subject: [PATCH] add sw Signed-off-by: wxiat --- automake.spec | 5 ++++- config.guess | 8 ++++++++ config.sub | 2 ++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/automake.spec b/automake.spec index 30f87a5..5b1ceaf 100644 --- a/automake.spec +++ b/automake.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.2 +%define anolis_release .0.3 %global api_version 1.16 # run "make check" by default @@ -139,6 +139,9 @@ make -k %{?_smp_mflags} check %{?TESTS_FLAGS: TESTS="%{TESTS_FLAGS}"} \ %doc AUTHORS README THANKS NEWS README.aclocal README.multilib %changelog +* Thu Aug 24 2023 wxiat - 1.16.1-7.0.3 +- add sw arch + * Fri Jul 15 2022 mgb01105731 - 1.16.1-7.0.2 - Add doc sub package diff --git a/config.guess b/config.guess index 352bec0..6c3513f 100755 --- a/config.guess +++ b/config.guess @@ -907,6 +907,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 ee7f196..854f338 100755 --- a/config.sub +++ b/config.sub @@ -266,6 +266,7 @@ case $basic_machine in | a29k \ | aarch64 | aarch64_be \ | loongarch32 | loongarch64 | loongarchx32 \ + | sw_64 \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ @@ -396,6 +397,7 @@ case $basic_machine in | a29k-* \ | aarch64-* | aarch64_be-* \ | loongarch32-* | loongarch64-* | loongarchx32-* \ + | sw_64-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ -- Gitee