Add "sourcesets" argument/target, which builds source sets into
RELEASEDIR/source/sets
This commit is contained in:
parent
c5fa449210
commit
b7d3d22051
5
BUILDING
5
BUILDING
|
@ -436,6 +436,9 @@ BUILDING
|
|||
distribution'' (as ``make build'' does not install all of
|
||||
the required files).
|
||||
|
||||
sourcesets Create source sets of the source tree into
|
||||
RELEASEDIR/source/sets.
|
||||
|
||||
release Do a ``make distribution'', build kernels, distribution me-
|
||||
dia, and install sets (this as per ``make sets''), and then
|
||||
package the system into a standard release layout as de-
|
||||
|
@ -498,6 +501,8 @@ BUILDING
|
|||
|
||||
sets Perform ``make sets''.
|
||||
|
||||
sourcesets Perform ``make sourcesets''.
|
||||
|
||||
The following command line options alter the behaviour of the above oper-
|
||||
ations: The following command line options alter the behaviour of the
|
||||
build.sh operations described above:
|
||||
|
|
14
Makefile
14
Makefile
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.205 2003/04/18 19:14:39 thorpej Exp $
|
||||
# $NetBSD: Makefile,v 1.206 2003/05/10 07:12:37 lukem Exp $
|
||||
|
||||
#
|
||||
# This is the top-level makefile for building NetBSD. For an outline of
|
||||
|
@ -52,6 +52,10 @@
|
|||
# (See etc/Makefile for more information on this.)
|
||||
# regression-tests:
|
||||
# Runs the regression tests in "regress" on this host.
|
||||
# sets:
|
||||
# Populate ${RELEASEDIR}/${MACHINE}/binary/sets from ${DESTDIR}
|
||||
# sourcesets:
|
||||
# Populate ${RELEASEDIR}/source/sets from ${NETBSDSRCDIR}
|
||||
#
|
||||
# Targets invoked by `make build,' in order:
|
||||
# cleandir: cleans the tree.
|
||||
|
@ -245,11 +249,13 @@ installworld:
|
|||
@printf "make ${.TARGET} finished at: " && date
|
||||
|
||||
#
|
||||
# Create sets from $DESTDIR into $RELEASEDIR
|
||||
# Create sets from $DESTDIR or $NETBSDSRCDIR into $RELEASEDIR
|
||||
#
|
||||
|
||||
sets:
|
||||
(cd ${.CURDIR}/distrib/sets && ${MAKE} maketars)
|
||||
.for tgt in sets sourcesets
|
||||
${tgt}:
|
||||
(cd ${.CURDIR}/distrib/sets && ${MAKE} $@)
|
||||
.endfor
|
||||
|
||||
#
|
||||
# Build a release or snapshot (implies "make build"). Note that
|
||||
|
|
12
build.sh
12
build.sh
|
@ -1,5 +1,5 @@
|
|||
#! /usr/bin/env sh
|
||||
# $NetBSD: build.sh,v 1.99 2003/05/09 09:10:06 lukem Exp $
|
||||
# $NetBSD: build.sh,v 1.100 2003/05/10 07:12:37 lukem Exp $
|
||||
#
|
||||
# Copyright (c) 2001-2003 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
|
@ -128,6 +128,7 @@ initdefaults()
|
|||
do_kernel=false
|
||||
do_install=false
|
||||
do_sets=false
|
||||
do_sourcesets=false
|
||||
|
||||
# Create scratch directory
|
||||
#
|
||||
|
@ -322,7 +323,8 @@ Usage: ${progname} [-EnorUu] [-a arch] [-B buildid] [-D dest] [-j njob] [-M obj]
|
|||
kernel=conf Build kernel with config file \`conf'
|
||||
install=idir Run "make installworld" to \`idir'
|
||||
(useful after 'distribution' or 'release')
|
||||
sets Create distribution sets in RELEASEDIR
|
||||
sets Create binary sets in RELEASEDIR/MACHINE/binary/sets
|
||||
sourcesets Create source sets in RELEASEDIR/source/sets
|
||||
|
||||
Options:
|
||||
-a arch Set MACHINE_ARCH to arch (otherwise deduced from MACHINE)
|
||||
|
@ -535,7 +537,7 @@ parseoptions()
|
|||
usage
|
||||
;;
|
||||
|
||||
makewrapper|obj|tools|build|distribution|release|sets)
|
||||
makewrapper|obj|tools|build|distribution|release|sets|sourcesets)
|
||||
;;
|
||||
|
||||
kernel=*)
|
||||
|
@ -759,7 +761,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.99 2003/05/09 09:10:06 lukem Exp $
|
||||
# Generated from: \$NetBSD: build.sh,v 1.100 2003/05/10 07:12:37 lukem Exp $
|
||||
#
|
||||
|
||||
EOF
|
||||
|
@ -896,7 +898,7 @@ main()
|
|||
buildtools
|
||||
;;
|
||||
|
||||
obj|build|distribution|release|sets)
|
||||
obj|build|distribution|release|sets|sourcesets)
|
||||
${runcmd} "${makewrapper}" ${parallel} ${op} ||
|
||||
bomb "Failed to make ${op}"
|
||||
statusmsg "Successful make ${op}"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: BUILDING.mdoc,v 1.17 2003/05/08 14:42:06 lukem Exp $
|
||||
.\" $NetBSD: BUILDING.mdoc,v 1.18 2003/05/10 07:12:39 lukem Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2001-2003 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -819,6 +819,10 @@ Should be run after
|
|||
.Dq make build
|
||||
does not install all of the required files).
|
||||
.
|
||||
.It Sy sourcesets
|
||||
Create source sets of the source tree into
|
||||
.Sy RELEASEDIR Ns Pa /source/sets .
|
||||
.
|
||||
.It Sy release
|
||||
Do a
|
||||
.Dq make distribution ,
|
||||
|
@ -954,6 +958,11 @@ using
|
|||
.It Sy sets
|
||||
Perform
|
||||
.Dq make sets .
|
||||
.
|
||||
.It Sy sourcesets
|
||||
Perform
|
||||
.Dq make sourcesets .
|
||||
.
|
||||
.El
|
||||
.
|
||||
.Pp
|
||||
|
|
Loading…
Reference in New Issue