version 1.14, 2002/09/17 16:35:39 |
version 1.17, 2002/11/25 19:18:44 |
|
|
plementation are noted specially, as with the note below: |
plementation are noted specially, as with the note below: |
|
|
Note: This document applies only to platforms which use the new toolchain |
Note: This document applies only to platforms which use the new toolchain |
as indicated by the default setting of USE_NEW_TOOLCHAIN in <bsd.own.mk>. |
as indicated by the default setting of TOOLCHAIN_MISSING in <bsd.own.mk>. |
Platforms which have not yet been switched to the new toolchain should |
Platforms which have not yet been switched to the new toolchain should |
continue building traditionally, using the notes specified in the file |
continue building traditionally, using the notes specified in the file |
UPDATING. |
UPDATING. |
|
|
FILES |
FILES |
Source tree layout |
Source tree layout |
|
|
BUILDING.mdoc This document (in -mdoc troff format; the original copy). |
doc/BUILDING.mdoc |
|
This document (in -mdoc troff format; the original copy). |
|
|
BUILDING This document (in plaintext). |
BUILDING This document (in plaintext). |
|
|
|
|
If you see build failures with -j, please save complete build |
If you see build failures with -j, please save complete build |
logs so the failures can be analyzed. |
logs so the failures can be analyzed. |
|
|
|
-k kernel |
|
Build a new kernel. The kernel argument is the name of a con- |
|
figuration file suitable for use by config(8). If kernel does |
|
not contain any `/' characters, the configuration file is ex- |
|
pected to be found in the KERNCONFDIR directory, which is typi- |
|
cally sys/arch/MACHINE/conf. The new kernel will be built in a |
|
subdirectory of KERNOBJDIR, which is typically |
|
sys/arch/MACHINE/compile or an associated object directory. In |
|
order to ensure that the kernel is built using up-to-date |
|
tools, it is strongly recommended that the tools be rebuilt |
|
(using the -t option) in a separate invocation of build.sh pri- |
|
or to using the -k option, or that the -t and -k options be |
|
used together in a single invocation of build.sh. |
|
|
-m mach Set the value of MACHINE to mach. This will also override any |
-m mach Set the value of MACHINE to mach. This will also override any |
value of MACHINE_ARCH in the process environment with a value |
value of MACHINE_ARCH in the process environment with a value |
deduced from mach, unless -a is specified. All cross builds |
deduced from mach, unless -a is specified. All cross builds |
|
|
This script can be symlinked into a directory listed in PATH, or called |
This script can be symlinked into a directory listed in PATH, or called |
with an absolute path. |
with an absolute path. |
|
|
|
EXAMPLES |
|
./build.sh -t |
|
Build a new toolchain. |
|
|
|
cd ${KERNCONFDIR} ; ${TOOLDIR}/bin/nbconfig GENERIC |
|
Use the new version of config(8) to prepare to build a new |
|
GENERIC kernel. |
|
|
|
cd ${KERNOBJDIR}/GENERIC ; ${TOOLDIR}/bin/nbmake-${MACHINE} dependall |
|
Use the new toolchain to build a new GENERIC kernel. |
|
|
|
./build.sh -t -k GENERIC |
|
Build a new toolchain, and use the new toolchain to configure |
|
and build a new GENERIC kernel. |
|
|
|
./build.sh -U -d |
|
Using unprivileged mode, build a complete distribution in |
|
DESTDIR. |
|
|
|
./build.sh -U -R /some/dir/RELEASE |
|
Using unprivileged mode, build a complete release in the speci- |
|
fied release directory. |
|
|
OBSOLETE VARIABLES |
OBSOLETE VARIABLES |
NBUILDJOBS Now obsolete. Use the make(1) option -j, instead. |
NBUILDJOBS Use the make(1) option -j, instead. |
|
|
|
USE_NEW_TOOLCHAIN |
|
The new toolchain is now the default. To disable, use |
|
TOOLCHAIN_MISSING=yes. |
|
|
SEE ALSO |
SEE ALSO |
make(1), hier(7), release(7) |
make(1), hier(7), release(7) |
|
|
HISTORY |
HISTORY |
The USE_NEW_TOOLCHAIN based build scheme was introduced in the ``NetBSD- |
The build.sh based build scheme was introduced for NetBSD 1.6 as |
current'' development sources between NetBSD 1.5 and NetBSD 1.6. |
USE_NEW_TOOLCHAIN, and re-worked to TOOLCHAIN_MISSING after that. |
|
|
BUGS |
BUGS |
A few platforms are not yet using the USE_NEW_TOOLCHAIN system. |
A few platforms are not yet using this build system. |
|
|
NetBSD May 3, 2002 8 |
NetBSD October 21, 2002 9 |