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).
This commit is contained in:
mrg 2004-10-09 20:38:01 +00:00
parent 801400d3c7
commit 57d6df6697
1 changed files with 11 additions and 2 deletions

View File

@ -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 <<EOF ${makewrapout}
#! /bin/sh
# Set proper variables to allow easy "make" building of a NetBSD subtree.
# Generated from: \$NetBSD: build.sh,v 1.131 2004/08/17 14:00:30 junyoung Exp $
# Generated from: \$NetBSD: build.sh,v 1.132 2004/10/09 20:38:01 mrg Exp $
# with these arguments: ${_args}
#
EOF