version 1.38, 2003/07/18 08:38:10 |
version 1.42, 2003/08/19 10:00:29 |
|
|
MAKEOBJDIR Directory to use as the .OBJDIR for the current direc- |
MAKEOBJDIR Directory to use as the .OBJDIR for the current direc- |
tory. Used only if MAKEOBJDIRPREFIX is not defined. |
tory. Used only if MAKEOBJDIRPREFIX is not defined. |
MAKEOBJDIR can only be provided in the environment or |
MAKEOBJDIR can only be provided in the environment or |
via the -M flag of build.sh. |
via the -O flag of build.sh. |
|
|
MAKEOBJDIRPREFIX Top level directory of the object directory tree. If |
MAKEOBJDIRPREFIX Top level directory of the object directory tree. If |
this is defined, ${MAKEOBJDIRPREFIX}/${.CURDIR} is used |
this is defined, ${MAKEOBJDIRPREFIX}/${.CURDIR} is used |
|
|
tree. (However, multiple targets may share the same TOOLDIR; |
tree. (However, multiple targets may share the same TOOLDIR; |
the target-dependent files have unique names.) If unset, a |
the target-dependent files have unique names.) If unset, a |
default based on the uname(1) information of the host plat- |
default based on the uname(1) information of the host plat- |
form will be created in the .OBJDIR of src/tools. |
form will be created in the .OBJDIR of src. |
|
|
Default: Unset. |
Default: Unset. |
|
|
|
|
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. |
|
|
-M obj Set MAKEOBJDIRPREFIX to obj. |
-M obj Set MAKEOBJDIRPREFIX to obj. Unsets MAKEOBJDIR. |
|
|
-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 |
|
|
-O obj Create an appropriate transform macro for MAKEOBJDIR that will |
-O obj Create an appropriate transform macro for MAKEOBJDIR that will |
place the built object files under obj. For instance, a set- |
place the built object files under obj. For instance, a set- |
ting of /usr/obj will place build-time files under |
ting of /usr/obj will place build-time files under |
/usr/obj/bin, /usr/obj/lib, and so forth. |
/usr/obj/bin, /usr/obj/lib, /usr/obj/usr.bin, and so forth. |
|
Unsets MAKEOBJDIRPREFIX. |
|
|
-o Set the value of MKOBJDIRS to ``no''. Otherwise, it will be |
-o Set the value of MKOBJDIRS to ``no''. Otherwise, it will be |
automatically set to ``yes'' (which is opposite to the default |
automatically set to ``yes'' (which is opposite to the default |
|
|
-u Set MKUPDATE=yes. |
-u Set MKUPDATE=yes. |
|
|
-V var=[value] |
-V var=[value] |
Set the variable var to value (which is optional). |
Set the environment variable var to an optional value. This is |
|
propagated to the nbmake wrapper. |
|
|
-w wrapper |
-w wrapper |
Create the nbmake wrapper script (see below) in a custom loca- |
Create the nbmake wrapper script (see below) in a custom loca- |
|
|
place the wrapper in PATH automatically. Note that wrapper is |
place the wrapper in PATH automatically. Note that wrapper is |
the full name of the file, not just a directory name. |
the full name of the file, not just a directory name. |
|
|
|
-Z var Unset ("zap") the environment variable var. This is propagated |
|
to the nbmake wrapper. |
|
|
The "nbmake-MACHINE" wrapper script |
The "nbmake-MACHINE" wrapper script |
If using the build.sh script to build NetBSD, a nbmake-MACHINE script |
If using the build.sh script to build NetBSD, a nbmake-MACHINE script |
will be created in TOOLDIR/bin upon the first build to assist in building |
will be created in TOOLDIR/bin upon the first build to assist in building |
|
|
nbmake-MACHINE can be invoked in lieu of make(1), and will instead call |
nbmake-MACHINE can be invoked in lieu of make(1), and will instead call |
the up-to-date version of ``nbmake'' installed into TOOLDIR/bin with sev- |
the up-to-date version of ``nbmake'' installed into TOOLDIR/bin with sev- |
eral key variables pre-set, including MACHINE, MACHINE_ARCH, and TOOLDIR. |
eral key variables pre-set, including MACHINE, MACHINE_ARCH, and TOOLDIR. |
|
build.sh will also set variables specified with -V, and unset variables |
|
specified with -Z. |
|
|
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. |
|
|
|
|
Using unprivileged mode, build a complete distribution to a DESTDIR |
Using unprivileged mode, build a complete distribution to a DESTDIR |
directory that build.sh selects (and will display). |
directory that build.sh selects (and will display). |
|
|
3. # ./build.sh -U install=/ |
3. ./build.sh -U install=/ |
|
|
As root, install to / the distribution that was built by example 2. |
As root, install to / the distribution that was built by example 2. |
Even though this is run as root, -U is required so that the permis- |
Even though this is run as root, -U is required so that the permis- |
|
|
BUGS |
BUGS |
A few platforms are not yet using this build system. |
A few platforms are not yet using this build system. |
|
|
NetBSD July 18, 2003 NetBSD |
NetBSD August 7, 2003 NetBSD |