Hi,

On Tue, Jan 14, 2025 at 12:23:54PM +0800, Funda Wang wrote:
> Ok. attached here:
> 
> From 62d742713b0d6ed67fad52821541a7d83f4ce702 Mon Sep 17 00:00:00 2001
> From: Funda Wang <fundaw...@yeah.net>
> Date: Sun, 12 Jan 2025 23:02:47 +0800
> Subject: [PATCH] support sw_64 arch
> 
> ---
>  config.guess | 8 ++++++++
>  config.sub   | 1 +
>  2 files changed, 9 insertions(+)
> 
> diff --git a/config.guess b/config.guess
> index 48a6846..b8fc0ac 100755
> --- a/config.guess
> +++ b/config.guess
> @@ -1194,6 +1186,14 @@ EOF
>      sparc:Linux:*:* | sparc64:Linux:*:*)
>       GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
>       ;;
> +    sw_64:Linux:*:*)
> +     case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 
> 2>/dev/null` in
> +       sw)    UNAME_MACHINE=sw_64 ;;
> +     esac

Sorry, what did you mean to achieve here?

> +     objdump --private-headers /bin/sh | grep -q ld.so.1
> +     if test "$?" = 0 ; then LIBC=gnulibc1 ; fi

Likewise.

> +     GUESS=$UNAME_MACHINE-sunway-linux-$LIBC
> +     ;;
>      tile*:Linux:*:*)
>       GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
>       ;;
> diff --git a/config.sub b/config.sub
> index 4aaae46..d49ee9b 100755
> --- a/config.sub
> +++ b/config.sub
> @@ -1432,6 +1431,7 @@ case $cpu-$vendor in
>                       | sparcv9v \
>                       | spu \
>                       | sv1 \
> +                     | sw_64 \

In config.guess, sw_64 is being added with a specific vendor,
while here in config.guess sw_64 is being allowed for any vendor.
Please clarify.


-- 
ldv

Reply via email to