From 57d6df6697cf6d349f9c2758572883a0cd8547d0 Mon Sep 17 00:00:00 2001 From: mrg Date: Sat, 9 Oct 2004 20:38:01 +0000 Subject: [PATCH] add new ${uname_p} (as `uname -p`). set ${arches} to "sparc64 sparc" for MACHINE=sparc64. for 32 bit sparc64 host, default to building 32 bit world (same as native). --- build.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index c27c27133cb8..248a9e31cd25 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #! /usr/bin/env sh -# $NetBSD: build.sh,v 1.131 2004/08/17 14:00:30 junyoung Exp $ +# $NetBSD: build.sh,v 1.132 2004/10/09 20:38:01 mrg Exp $ # # Copyright (c) 2001-2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -78,6 +78,7 @@ initdefaults() uname_s=$(uname -s 2>/dev/null) uname_m=$(uname -m 2>/dev/null) + uname_p=$(uname -p 2>/dev/null) # If $PWD is a valid name of the current directory, POSIX mandates # that pwd return it by default which causes problems in the @@ -225,6 +226,10 @@ getarch() xen) # no default MACHINE_ARCH ;; + sparc64) + MACHINE_ARCH=${uname_p} + ;; + alpha|i386|sparc|sparc64|vax) MACHINE_ARCH=${MACHINE} ;; @@ -275,6 +280,10 @@ validatearch() arches="sh5eb sh5el" ;; + sparc64) + arches="sparc sparc64" + ;; + *) oma="${MACHINE_ARCH}" getarch @@ -861,7 +870,7 @@ createmakewrapper() eval cat <