Module Name: src Committed By: mrg Date: Thu May 2 02:51:01 UTC 2019
Modified Files: src: build.sh Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.331 -r1.332 src/build.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/build.sh diff -u src/build.sh:1.331 src/build.sh:1.332 --- src/build.sh:1.331 Thu Apr 25 05:12:49 2019 +++ src/build.sh Thu May 2 02:51:01 2019 @@ -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} #