summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2019-05-02 02:51:01 +0000
committermrg <mrg@NetBSD.org>2019-05-02 02:51:01 +0000
commit8659e9665e08eb201ff17b9d376f68bc32badfaf (patch)
tree3c4acffc1c73b88140e8350a2a5da15ee8998124 /build.sh
parentec87f44fc01315e270456e4ca06c1e22c503f315 (diff)
on netbsd when defaulting to the native system, also derived MACHINE_ARCH
from the uname -p value already fetched. this means eg, build.sh on evbarm will build the native platform rather than "earm" (armv5) -- which was the default even on arm64 hosts.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 46b622d5cd1..52886016144 100755
--- a/build.sh
+++ b/build.sh
@@ -1,5 +1,5 @@
#! /usr/bin/env sh
-# $NetBSD: build.sh,v 1.331 2019/04/25 05:12:49 pgoyette Exp $
+# $NetBSD: build.sh,v 1.332 2019/05/02 02:51:01 mrg Exp $
#
# Copyright (c) 2001-2011 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -1416,6 +1416,7 @@ parseoptions()
[ "${uname_s}" = "NetBSD" ] ||
bomb "MACHINE must be set, or -m must be used, for cross builds."
MACHINE=${uname_m}
+ MACHINE_ARCH=${uname_p}
fi
if $opt_m && ! $opt_a; then
# Settings implied by the command line -m option
@@ -1936,7 +1937,7 @@ createmakewrapper()
eval cat <<EOF ${makewrapout}
#! ${HOST_SH}
# Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from: \$NetBSD: build.sh,v 1.331 2019/04/25 05:12:49 pgoyette Exp $
+# Generated from: \$NetBSD: build.sh,v 1.332 2019/05/02 02:51:01 mrg Exp $
# with these arguments: ${_args}
#