Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src on netbsd when defaulting to the native system, also derived...



details:   https://anonhg.NetBSD.org/src/rev/81350f299d18
branches:  trunk
changeset: 450983:81350f299d18
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu May 02 02:51:01 2019 +0000

description:
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:

 build.sh |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 0a1df070d551 -r 81350f299d18 build.sh
--- a/build.sh  Thu May 02 00:34:06 2019 +0000
+++ b/build.sh  Thu May 02 02:51:01 2019 +0000
@@ -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 @@
                [ "${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 @@
        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}
 #
 



Home | Main Index | Thread Index | Old Index