* Report the NetBSD version being built.
* Report the host platform. * Print more of the initial messages in the same part of the code.
This commit is contained in:
parent
086bf77aab
commit
daaa947e26
19
build.sh
19
build.sh
@ -1,5 +1,5 @@
|
|||||||
#! /usr/bin/env sh
|
#! /usr/bin/env sh
|
||||||
# $NetBSD: build.sh,v 1.164 2007/03/25 12:36:01 apb Exp $
|
# $NetBSD: build.sh,v 1.165 2007/04/02 10:57:36 apb Exp $
|
||||||
#
|
#
|
||||||
# Copyright (c) 2001-2005 The NetBSD Foundation, Inc.
|
# Copyright (c) 2001-2005 The NetBSD Foundation, Inc.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
@ -159,7 +159,10 @@ initdefaults()
|
|||||||
[ -f share/mk/bsd.own.mk ] ||
|
[ -f share/mk/bsd.own.mk ] ||
|
||||||
bomb "src/share/mk is missing; please re-fetch the source tree"
|
bomb "src/share/mk is missing; please re-fetch the source tree"
|
||||||
|
|
||||||
|
# Find information about the build platform.
|
||||||
|
#
|
||||||
uname_s=$(uname -s 2>/dev/null)
|
uname_s=$(uname -s 2>/dev/null)
|
||||||
|
uname_r=$(uname -r 2>/dev/null)
|
||||||
uname_m=$(uname -m 2>/dev/null)
|
uname_m=$(uname -m 2>/dev/null)
|
||||||
|
|
||||||
# If $PWD is a valid name of the current directory, POSIX mandates
|
# If $PWD is a valid name of the current directory, POSIX mandates
|
||||||
@ -234,6 +237,10 @@ initdefaults()
|
|||||||
#
|
#
|
||||||
setmakeenv NETBSDSRCDIR "${TOP}"
|
setmakeenv NETBSDSRCDIR "${TOP}"
|
||||||
|
|
||||||
|
# Find the version of NetBSD
|
||||||
|
#
|
||||||
|
DISTRIBVER="$(${HOST_SH} ${TOP}/sys/conf/osrelease.sh)"
|
||||||
|
|
||||||
# Set various environment variables to known defaults,
|
# Set various environment variables to known defaults,
|
||||||
# to minimize (cross-)build problems observed "in the field".
|
# to minimize (cross-)build problems observed "in the field".
|
||||||
#
|
#
|
||||||
@ -908,9 +915,6 @@ validatemakeparams()
|
|||||||
${runcmd} cd "${TOP}"
|
${runcmd} cd "${TOP}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
statusmsg "MACHINE: ${MACHINE}"
|
|
||||||
statusmsg "MACHINE_ARCH: ${MACHINE_ARCH}"
|
|
||||||
|
|
||||||
# Find TOOLDIR, DESTDIR, and RELEASEDIR.
|
# Find TOOLDIR, DESTDIR, and RELEASEDIR.
|
||||||
#
|
#
|
||||||
TOOLDIR=$(getmakevar TOOLDIR)
|
TOOLDIR=$(getmakevar TOOLDIR)
|
||||||
@ -1017,7 +1021,7 @@ createmakewrapper()
|
|||||||
eval cat <<EOF ${makewrapout}
|
eval cat <<EOF ${makewrapout}
|
||||||
#! ${HOST_SH}
|
#! ${HOST_SH}
|
||||||
# Set proper variables to allow easy "make" building of a NetBSD subtree.
|
# Set proper variables to allow easy "make" building of a NetBSD subtree.
|
||||||
# Generated from: \$NetBSD: build.sh,v 1.164 2007/03/25 12:36:01 apb Exp $
|
# Generated from: \$NetBSD: build.sh,v 1.165 2007/04/02 10:57:36 apb Exp $
|
||||||
# with these arguments: ${_args}
|
# with these arguments: ${_args}
|
||||||
#
|
#
|
||||||
EOF
|
EOF
|
||||||
@ -1170,7 +1174,10 @@ main()
|
|||||||
build_start=$(date)
|
build_start=$(date)
|
||||||
statusmsg "${progname} command: $0 $@"
|
statusmsg "${progname} command: $0 $@"
|
||||||
statusmsg "${progname} started: ${build_start}"
|
statusmsg "${progname} started: ${build_start}"
|
||||||
|
statusmsg "NetBSD version: ${DISTRIBVER}"
|
||||||
|
statusmsg "MACHINE: ${MACHINE}"
|
||||||
|
statusmsg "MACHINE_ARCH: ${MACHINE_ARCH}"
|
||||||
|
statusmsg "Build platform: ${uname_s} ${uname_r} ${uname_m}"
|
||||||
statusmsg "HOST_SH: ${HOST_SH}"
|
statusmsg "HOST_SH: ${HOST_SH}"
|
||||||
|
|
||||||
rebuildmake
|
rebuildmake
|
||||||
|
Loading…
Reference in New Issue
Block a user