2000-11-22 14:04:26 +00:00
|
|
|
.\" Copyright (c) 2000
|
|
|
|
.\" Mike W. Meyer
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2017-12-31 18:53:13 +00:00
|
|
|
.Dd December 24, 2017
|
2000-11-22 14:04:26 +00:00
|
|
|
.Dt BUILD 7
|
2001-07-10 15:31:11 +00:00
|
|
|
.Os
|
2000-11-22 14:04:26 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm build
|
2001-04-18 15:54:10 +00:00
|
|
|
.Nd information on how to build the system
|
2000-11-22 14:04:26 +00:00
|
|
|
.Sh DESCRIPTION
|
2005-12-05 16:59:45 +00:00
|
|
|
The sources for the
|
2000-12-14 12:40:48 +00:00
|
|
|
.Fx
|
2005-12-05 16:59:45 +00:00
|
|
|
system and its applications are contained in three different directories,
|
2000-11-22 14:04:26 +00:00
|
|
|
normally
|
|
|
|
.Pa /usr/src ,
|
|
|
|
.Pa /usr/doc ,
|
|
|
|
and
|
|
|
|
.Pa /usr/ports .
|
2012-06-27 17:51:09 +00:00
|
|
|
These directories may be initially empty or non-existent until updated with
|
2014-06-25 12:28:22 +00:00
|
|
|
.Xr svn 1
|
2012-06-27 17:51:09 +00:00
|
|
|
or
|
2012-07-02 17:52:43 +00:00
|
|
|
.Xr portsnap 8 .
|
2005-12-05 16:59:45 +00:00
|
|
|
Directory
|
2000-11-22 14:04:26 +00:00
|
|
|
.Pa /usr/src
|
|
|
|
contains the
|
|
|
|
.Dq "base system"
|
|
|
|
sources, which is loosely defined as the things required to rebuild
|
|
|
|
the system to a useful state.
|
2005-12-05 16:59:45 +00:00
|
|
|
Directory
|
2000-11-22 14:04:26 +00:00
|
|
|
.Pa /usr/doc
|
|
|
|
contains the source for the system documentation, excluding the manual
|
|
|
|
pages.
|
2005-12-05 16:59:45 +00:00
|
|
|
Directory
|
2000-11-22 14:04:26 +00:00
|
|
|
.Pa /usr/ports
|
2005-12-05 16:59:45 +00:00
|
|
|
contains a tree that provides a consistent interface for building and
|
2000-11-22 14:04:26 +00:00
|
|
|
installing third party applications.
|
2005-12-05 16:59:45 +00:00
|
|
|
For more information about the ports build process, see
|
|
|
|
.Xr ports 7 .
|
2000-11-22 14:04:26 +00:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Xr make 1
|
|
|
|
command is used in each of these directories to build and install the
|
2002-03-20 14:33:37 +00:00
|
|
|
things in that directory.
|
|
|
|
Issuing the
|
|
|
|
.Xr make 1
|
|
|
|
command in any directory or
|
2000-11-22 14:04:26 +00:00
|
|
|
subdirectory of those directories has the same effect as issuing the
|
2002-03-20 14:33:37 +00:00
|
|
|
same command in all subdirectories of that directory.
|
|
|
|
With no target specified, the things in that directory are just built.
|
2005-12-05 16:59:45 +00:00
|
|
|
.Pp
|
|
|
|
A source tree is allowed to be read-only.
|
|
|
|
As described in
|
|
|
|
.Xr make 1 ,
|
|
|
|
objects are usually built in a separate object directory hierarchy
|
|
|
|
specified by the environment variable
|
|
|
|
.Va MAKEOBJDIRPREFIX ,
|
|
|
|
or under
|
|
|
|
.Pa /usr/obj
|
|
|
|
if variable
|
|
|
|
.Va MAKEOBJDIRPREFIX
|
|
|
|
is not set.
|
2017-11-01 21:22:05 +00:00
|
|
|
The canonical object directory is described in the documentation for the
|
2005-12-05 16:59:45 +00:00
|
|
|
.Cm buildworld
|
|
|
|
target below.
|
|
|
|
.Pp
|
|
|
|
The build may be controlled by defining
|
|
|
|
.Xr make 1
|
|
|
|
variables described in the
|
|
|
|
.Sx ENVIRONMENT
|
|
|
|
section below, and by the variables documented in
|
|
|
|
.Xr make.conf 5 .
|
|
|
|
.Pp
|
|
|
|
The following list provides the names and actions for the targets
|
|
|
|
supported by the build system:
|
|
|
|
.Bl -tag -width ".Cm cleandepend"
|
2016-02-26 22:14:00 +00:00
|
|
|
.It Cm analyze
|
|
|
|
Run Clang static analyzer against all objects and present output on stdout.
|
2016-02-07 18:40:04 +00:00
|
|
|
.It Cm check
|
|
|
|
Run tests for a given subdirectory.
|
|
|
|
The default directory used is
|
|
|
|
.Pa ${.OBJDIR} ,
|
|
|
|
but the check directory can be changed with
|
|
|
|
.Pa ${CHECKDIR} .
|
|
|
|
.It Cm checkworld
|
|
|
|
Run the
|
|
|
|
.Fx
|
|
|
|
test suite on installed world.
|
2002-03-20 14:33:37 +00:00
|
|
|
.It Cm clean
|
2005-12-05 16:59:45 +00:00
|
|
|
Remove any files created during the build process.
|
|
|
|
.It Cm cleandepend
|
2016-03-30 23:50:23 +00:00
|
|
|
Remove the
|
|
|
|
.Pa ${.OBJDIR}/${DEPENDFILE}*
|
|
|
|
files generated by prior
|
|
|
|
.Dq Li "make"
|
|
|
|
and
|
2005-12-05 16:59:45 +00:00
|
|
|
.Dq Li "make depend"
|
2016-03-30 23:50:23 +00:00
|
|
|
steps.
|
2005-12-05 16:59:45 +00:00
|
|
|
.It Cm cleandir
|
|
|
|
Remove the canonical object directory if it exists, or perform
|
|
|
|
actions equivalent to
|
|
|
|
.Dq Li "make clean cleandepend"
|
|
|
|
if it does not.
|
|
|
|
This target will also remove an
|
|
|
|
.Pa obj
|
|
|
|
link in
|
|
|
|
.Pa ${.CURDIR}
|
|
|
|
if that exists.
|
|
|
|
.Pp
|
|
|
|
It is advisable to run
|
|
|
|
.Dq Li "make cleandir"
|
|
|
|
twice: the first invocation will remove the canonical object directory
|
|
|
|
and the second one will clean up
|
|
|
|
.Pa ${.CURDIR} .
|
|
|
|
.It Cm depend
|
|
|
|
Generate a list of build dependencies in file
|
|
|
|
.Pa ${.OBJDIR}/${DEPENDFILE} .
|
2016-03-30 23:50:23 +00:00
|
|
|
Per-object dependencies are generated at build time and stored in
|
|
|
|
.Pa ${.OBJDIR}/${DEPENDFILE}.${OBJ} .
|
2002-03-20 14:33:37 +00:00
|
|
|
.It Cm install
|
2005-12-05 16:59:45 +00:00
|
|
|
Install the results of the build to the appropriate location in the
|
|
|
|
installation directory hierarchy specified in variable
|
|
|
|
.Va DESTDIR .
|
|
|
|
.It Cm obj
|
|
|
|
Create the canonical object directory associated with the current
|
|
|
|
directory.
|
|
|
|
.It Cm objlink
|
|
|
|
Create a symbolic link to the canonical object directory in
|
|
|
|
.Pa ${.CURDIR} .
|
|
|
|
.It Cm tags
|
|
|
|
Generate a tags file using the program specified in the
|
|
|
|
.Xr make 1
|
|
|
|
variable
|
|
|
|
.Va CTAGS .
|
|
|
|
The build system supports
|
|
|
|
.Xr ctags 1
|
|
|
|
and
|
|
|
|
.Nm "GNU Global" .
|
2000-11-22 14:04:26 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
2005-12-05 16:59:45 +00:00
|
|
|
The other supported targets under directory
|
2000-11-22 14:04:26 +00:00
|
|
|
.Pa /usr/src
|
2005-12-05 16:59:45 +00:00
|
|
|
are:
|
|
|
|
.Bl -tag -width ".Cm distributeworld"
|
|
|
|
.It Cm buildenv
|
|
|
|
Spawn an interactive shell with environment variables set up for
|
|
|
|
cross-building the system.
|
|
|
|
The target architecture needs to be specified with
|
|
|
|
.Xr make 1
|
|
|
|
variables
|
|
|
|
.Va TARGET_ARCH
|
|
|
|
and
|
|
|
|
.Va TARGET .
|
|
|
|
.Pp
|
|
|
|
This target is only useful after a complete cross-toolchain including
|
|
|
|
the compiler, linker, assembler, headers and libraries has been
|
|
|
|
built; see the
|
|
|
|
.Cm toolchain
|
|
|
|
target below.
|
2002-03-20 14:33:37 +00:00
|
|
|
.It Cm buildworld
|
2005-12-05 16:59:45 +00:00
|
|
|
Build everything but the kernel, configure files in
|
|
|
|
.Pa etc ,
|
|
|
|
and
|
|
|
|
.Pa release .
|
2016-04-28 22:14:09 +00:00
|
|
|
The object directory can be changed from the default
|
|
|
|
.Pa /usr/obj
|
|
|
|
by setting the
|
|
|
|
.Pa MAKEOBJDIRPREFIX
|
|
|
|
.Xr make 1
|
|
|
|
variable.
|
2017-11-01 21:22:05 +00:00
|
|
|
The actual build location prefix used
|
|
|
|
depends on the
|
|
|
|
.Va WITH_UNIFIED_OBJDIR
|
|
|
|
option from
|
|
|
|
.Xr src.conf 5 .
|
|
|
|
If enabled it is
|
|
|
|
.Pa ${MAKEOBJDIRPREFIX}${.CURDIR}/${TARGET}.${TARGET_ARCH}
|
|
|
|
for all builds.
|
|
|
|
If disabled it is
|
2005-12-05 16:59:45 +00:00
|
|
|
.Pa ${MAKEOBJDIRPREFIX}${.CURDIR}
|
|
|
|
for native builds, and
|
2017-11-01 21:22:05 +00:00
|
|
|
.Pa ${MAKEOBJDIRPREFIX}/${TARGET}.${TARGET_ARCH}${.CURDIR}
|
2005-12-05 16:59:45 +00:00
|
|
|
for cross builds and native builds with variable
|
|
|
|
.Va CROSS_BUILD_TESTING
|
|
|
|
set.
|
|
|
|
.It Cm cleanworld
|
|
|
|
Attempt to clean up targets built by a preceding
|
2017-11-01 21:22:10 +00:00
|
|
|
.Cm buildworld ,
|
|
|
|
or similar step built from this source directory.
|
|
|
|
.It Cm cleanuniverse
|
|
|
|
When
|
|
|
|
.Va WITH_UNIFIED_OBJDIR
|
|
|
|
is enabled, attempt to clean up targets built by a preceding
|
|
|
|
.Cm buildworld ,
|
|
|
|
.Cm universe ,
|
|
|
|
or similar step, for any architecture built from this source directory.
|
2005-12-05 16:59:45 +00:00
|
|
|
.It Cm distributeworld
|
|
|
|
Distribute everything compiled by a preceding
|
|
|
|
.Cm buildworld
|
|
|
|
step.
|
|
|
|
Files are placed in the directory hierarchy specified by
|
|
|
|
.Xr make 1
|
|
|
|
variable
|
|
|
|
.Va DISTDIR .
|
|
|
|
This target is used while building a release; see
|
|
|
|
.Xr release 7 .
|
2017-10-29 01:21:22 +00:00
|
|
|
.It Cm native-xtools
|
|
|
|
This target builds a cross-toolchain for the given
|
|
|
|
.Sy TARGET
|
|
|
|
and
|
|
|
|
.Sy TARGET_ARCH ,
|
|
|
|
as well as a select list of static userland tools for the host system.
|
|
|
|
This is intended to be used in a jail where QEMU is used to improve
|
|
|
|
performance by avoiding emulating binaries that do not need to be emulated.
|
|
|
|
.Sy TARGET
|
|
|
|
and
|
|
|
|
.Sy TARGET_ARCH
|
|
|
|
should be defined.
|
2017-10-29 01:21:29 +00:00
|
|
|
.It Cm native-xtools-install
|
|
|
|
Installs the results to
|
|
|
|
.Pa ${DESTDIR}/${NXTP}
|
|
|
|
where
|
|
|
|
.Va NXTP
|
|
|
|
defaults to
|
|
|
|
.Pa nxb-bin .
|
|
|
|
.Sy TARGET
|
|
|
|
and
|
|
|
|
.Sy TARGET_ARCH
|
|
|
|
must be defined.
|
2011-03-22 01:21:51 +00:00
|
|
|
.It Cm packageworld
|
|
|
|
Archive the results of
|
|
|
|
.Cm distributeworld ,
|
|
|
|
placing the results in
|
|
|
|
.Va DISTDIR .
|
|
|
|
This target is used while building a release; see
|
|
|
|
.Xr release 7 .
|
2002-03-20 14:33:37 +00:00
|
|
|
.It Cm installworld
|
2005-12-05 16:59:45 +00:00
|
|
|
Install everything built by a preceding
|
|
|
|
.Cm buildworld
|
|
|
|
step into the directory hierarchy pointed to by
|
|
|
|
.Xr make 1
|
|
|
|
variable
|
|
|
|
.Va DESTDIR .
|
2006-03-20 12:27:08 +00:00
|
|
|
.Pp
|
2006-09-30 20:18:28 +00:00
|
|
|
If installing onto an NFS file system and running
|
2006-09-30 20:37:37 +00:00
|
|
|
.Xr make 1
|
|
|
|
with the
|
2006-09-30 20:18:28 +00:00
|
|
|
.Fl j
|
|
|
|
option, make sure that
|
2006-03-20 12:27:08 +00:00
|
|
|
.Xr rpc.lockd 8
|
|
|
|
is running on both client and server.
|
|
|
|
See
|
|
|
|
.Xr rc.conf 5
|
|
|
|
on how to make it start at boot time.
|
2005-12-05 16:59:45 +00:00
|
|
|
.It Cm toolchain
|
|
|
|
Create the build toolchain needed to build the rest of the system.
|
|
|
|
For cross-architecture builds, this step creates a cross-toolchain.
|
|
|
|
.It Cm universe
|
2011-02-10 18:54:52 +00:00
|
|
|
For each architecture,
|
|
|
|
execute a
|
2005-12-05 16:59:45 +00:00
|
|
|
.Cm buildworld
|
2011-02-10 18:54:52 +00:00
|
|
|
followed by a
|
2005-12-05 16:59:45 +00:00
|
|
|
.Cm buildkernel
|
2011-02-10 18:54:52 +00:00
|
|
|
for all kernels for that architecture,
|
|
|
|
including
|
|
|
|
.Pa LINT .
|
2005-12-05 16:59:45 +00:00
|
|
|
This command takes a long time.
|
|
|
|
.It Cm update
|
|
|
|
Get updated sources as configured in
|
|
|
|
.Xr make.conf 5 .
|
2011-01-25 08:13:31 +00:00
|
|
|
.It Cm targets
|
2011-09-29 02:57:08 +00:00
|
|
|
Print a list of supported
|
2011-01-25 08:13:31 +00:00
|
|
|
.Va TARGET
|
|
|
|
/
|
|
|
|
.Va TARGET_ARCH
|
|
|
|
pairs for world and kernel targets.
|
2011-01-22 22:57:28 +00:00
|
|
|
.It Cm tinderbox
|
|
|
|
Execute the same targets as
|
|
|
|
.Cm universe .
|
|
|
|
In addition print a summary of all failed targets at the end and
|
|
|
|
exit with an error if there were any.
|
2011-02-10 18:54:52 +00:00
|
|
|
.It Cm toolchains
|
|
|
|
Create a build toolchain for each architecture supported by the build system.
|
2017-10-29 01:21:26 +00:00
|
|
|
.It Cm xdev
|
|
|
|
Builds and installs a cross-toolchain and sysroot for the given
|
|
|
|
.Sy TARGET
|
|
|
|
and
|
|
|
|
.Sy TARGET_ARCH .
|
|
|
|
The sysroot contains target library and headers.
|
|
|
|
The target is an alias for
|
|
|
|
.Cm xdev-build
|
|
|
|
and
|
|
|
|
.Cm xdev-install .
|
|
|
|
The location of the files installed can be controlled with
|
|
|
|
.Va DESTDIR .
|
|
|
|
The target location in
|
|
|
|
.Va DESTDIR
|
|
|
|
is
|
|
|
|
.Pa ${DESTDIR}/${XDTP}
|
|
|
|
where
|
|
|
|
.Va XDTP
|
|
|
|
defaults to
|
|
|
|
.Pa /usr/${XDDIR}
|
|
|
|
and
|
|
|
|
.Va XDDIR
|
|
|
|
defaults to
|
|
|
|
.Pa ${TARGET_ARCH}-freebsd .
|
|
|
|
.It Cm xdev-build
|
|
|
|
Builds for the
|
|
|
|
.Cm xdev
|
|
|
|
target.
|
|
|
|
.It Cm xdev-install
|
|
|
|
Installs the files for the
|
|
|
|
.Cm xdev
|
|
|
|
target.
|
|
|
|
.It Cm xdev-links
|
|
|
|
Installs autoconf-style symlinks to
|
|
|
|
.Pa ${DESTDIR}/usr/bin
|
|
|
|
pointing into the xdev toolchain in
|
|
|
|
.Pa ${DESTDIR}/${XDTP} .
|
2005-12-05 16:59:45 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Kernel specific build targets in
|
|
|
|
.Pa /usr/src
|
|
|
|
are:
|
2011-03-22 01:21:51 +00:00
|
|
|
.Bl -tag -width ".Cm distributekernel"
|
2002-03-20 14:33:37 +00:00
|
|
|
.It Cm buildkernel
|
|
|
|
Rebuild the kernel and the kernel modules.
|
2016-04-28 22:14:09 +00:00
|
|
|
The object directory can be changed from the default
|
|
|
|
.Pa /usr/obj
|
|
|
|
by setting the
|
|
|
|
.Pa MAKEOBJDIRPREFIX
|
|
|
|
.Xr make 1
|
|
|
|
variable.
|
2002-03-20 14:33:37 +00:00
|
|
|
.It Cm installkernel
|
2005-12-05 16:59:45 +00:00
|
|
|
Install the kernel and the kernel modules to directory
|
|
|
|
.Pa ${DESTDIR}/boot/kernel ,
|
|
|
|
renaming any pre-existing directory with this name to
|
|
|
|
.Pa kernel.old
|
|
|
|
if it contained the currently running kernel.
|
|
|
|
The target directory under
|
|
|
|
.Pa ${DESTDIR}
|
|
|
|
may be modified using the
|
|
|
|
.Va INSTKERNNAME
|
|
|
|
and
|
|
|
|
.Va KODIR
|
|
|
|
.Xr make 1
|
|
|
|
variables.
|
2011-03-22 01:21:51 +00:00
|
|
|
.It Cm distributekernel
|
|
|
|
Install the kernel to the directory
|
|
|
|
.Pa ${DISTDIR}/kernel/boot/kernel .
|
|
|
|
This target is used while building a release; see
|
|
|
|
.Xr release 7 .
|
|
|
|
.It Cm packagekernel
|
|
|
|
Archive the results of
|
|
|
|
.Cm distributekernel ,
|
|
|
|
placing the results in
|
|
|
|
.Va DISTDIR .
|
|
|
|
This target is used while building a release; see
|
|
|
|
.Xr release 7 .
|
2005-02-24 03:46:36 +00:00
|
|
|
.It Cm kernel
|
|
|
|
Equivalent to
|
|
|
|
.Cm buildkernel
|
|
|
|
followed by
|
|
|
|
.Cm installkernel
|
2005-12-05 16:59:45 +00:00
|
|
|
.It Cm kernel-toolchain
|
|
|
|
Rebuild the tools needed for kernel compilation.
|
|
|
|
Use this if you did not do a
|
|
|
|
.Cm buildworld
|
|
|
|
first.
|
|
|
|
.It Cm reinstallkernel
|
|
|
|
Reinstall the kernel and the kernel modules, overwriting the contents
|
|
|
|
of the target directory.
|
|
|
|
As with the
|
|
|
|
.Cm installkernel
|
|
|
|
target, the target directory can be specified using the
|
|
|
|
.Xr make 1
|
|
|
|
variable
|
|
|
|
.Va INSTKERNNAME .
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Convenience targets for cleaning up the install destination directory
|
|
|
|
denoted by variable
|
|
|
|
.Va DESTDIR
|
|
|
|
include:
|
|
|
|
.Bl -tag -width ".Cm delete-old-libs"
|
|
|
|
.It Cm check-old
|
2006-12-14 13:37:08 +00:00
|
|
|
Print a list of old files and directories in the system.
|
2005-07-23 14:23:30 +00:00
|
|
|
.It Cm delete-old
|
|
|
|
Delete obsolete base system files and directories interactively.
|
2005-11-18 10:56:28 +00:00
|
|
|
When
|
|
|
|
.Li -DBATCH_DELETE_OLD_FILES
|
2005-12-05 16:59:45 +00:00
|
|
|
is specified at the command line, the delete operation will be
|
|
|
|
non-interactive.
|
2005-08-03 20:09:59 +00:00
|
|
|
The variables
|
2005-12-05 16:59:45 +00:00
|
|
|
.Va DESTDIR ,
|
|
|
|
.Va TARGET_ARCH
|
2005-08-03 20:09:59 +00:00
|
|
|
and
|
|
|
|
.Va TARGET
|
|
|
|
should be set as with
|
|
|
|
.Dq Li "make installworld" .
|
2005-07-23 14:23:30 +00:00
|
|
|
.It Cm delete-old-libs
|
|
|
|
Delete obsolete base system libraries interactively.
|
2016-04-28 22:14:09 +00:00
|
|
|
This target should only be used if no third party software uses these
|
2005-12-05 16:59:45 +00:00
|
|
|
libraries.
|
2005-11-18 10:56:28 +00:00
|
|
|
When
|
|
|
|
.Li -DBATCH_DELETE_OLD_FILES
|
2005-12-05 16:59:45 +00:00
|
|
|
is specified at the command line, the delete operation will be
|
|
|
|
non-interactive.
|
2005-08-03 20:09:59 +00:00
|
|
|
The variables
|
2005-12-05 16:59:45 +00:00
|
|
|
.Va DESTDIR ,
|
|
|
|
.Va TARGET_ARCH
|
2005-08-03 20:09:59 +00:00
|
|
|
and
|
|
|
|
.Va TARGET
|
|
|
|
should be set as with
|
|
|
|
.Dq Li "make installworld" .
|
2000-11-22 14:04:26 +00:00
|
|
|
.El
|
2002-03-14 09:38:24 +00:00
|
|
|
.Sh ENVIRONMENT
|
2005-12-05 16:59:45 +00:00
|
|
|
Variables that influence all builds include:
|
|
|
|
.Bl -tag -width ".Va MAKEOBJDIRPREFIX"
|
2010-03-31 12:52:19 +00:00
|
|
|
.It Va DEBUG_FLAGS
|
|
|
|
Defines a set of debugging flags that will be used to build all userland
|
|
|
|
binaries under
|
|
|
|
.Pa /usr/src .
|
|
|
|
When
|
|
|
|
.Va DEBUG_FLAGS
|
|
|
|
is defined, the
|
|
|
|
.Cm install
|
|
|
|
and
|
|
|
|
.Cm installworld
|
|
|
|
targets install binaries from the current
|
|
|
|
.Va MAKEOBJDIRPREFIX
|
|
|
|
without stripping,
|
|
|
|
so that debugging information is retained in the installed binaries.
|
2005-12-05 16:59:45 +00:00
|
|
|
.It Va DESTDIR
|
|
|
|
The directory hierarchy prefix where built objects will be installed.
|
|
|
|
If not set,
|
|
|
|
.Va DESTDIR
|
|
|
|
defaults to the empty string.
|
|
|
|
.It Va MAKEOBJDIRPREFIX
|
|
|
|
Defines the prefix for directory names in the tree of built objects.
|
|
|
|
Defaults to
|
|
|
|
.Pa /usr/obj
|
|
|
|
if not defined.
|
2017-11-01 21:22:05 +00:00
|
|
|
This variable should only be set in the environment or
|
|
|
|
.Pa /etc/src-env.conf
|
|
|
|
and not via
|
2005-12-05 16:59:45 +00:00
|
|
|
.Pa /etc/make.conf
|
2017-11-01 21:22:05 +00:00
|
|
|
or
|
|
|
|
.Pa /etc/src.conf
|
2005-12-05 16:59:45 +00:00
|
|
|
or the command line.
|
|
|
|
.It Va NO_WERROR
|
|
|
|
If defined, compiler warnings will not cause the build to halt,
|
|
|
|
even if the makefile says otherwise.
|
2010-04-02 06:55:31 +00:00
|
|
|
.It Va WITH_CTF
|
|
|
|
If defined, the build process will run the DTrace CTF conversion
|
|
|
|
tools on built objects.
|
2005-12-05 16:59:45 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Additionally, builds in
|
|
|
|
.Pa /usr/src
|
|
|
|
are influenced by the following
|
|
|
|
.Xr make 1
|
|
|
|
variables:
|
|
|
|
.Bl -tag -width ".Va SUBDIR_OVERRIDE"
|
2009-01-23 18:35:09 +00:00
|
|
|
.It Va KERNCONF
|
|
|
|
Overrides which kernel to build and install for the various kernel
|
|
|
|
make targets.
|
|
|
|
It defaults to
|
|
|
|
.Cm GENERIC .
|
|
|
|
.It Va KERNFAST
|
|
|
|
If set, the build target
|
|
|
|
.Cm buildkernel
|
2011-09-29 02:57:08 +00:00
|
|
|
defaults to setting
|
2009-01-23 18:35:09 +00:00
|
|
|
.Va NO_KERNELCLEAN ,
|
2009-12-16 03:25:43 +00:00
|
|
|
.Va NO_KERNELCONFIG ,
|
2009-01-23 18:35:09 +00:00
|
|
|
and
|
2009-12-16 03:25:43 +00:00
|
|
|
.Va NO_KERNELOBJ .
|
2009-01-23 18:35:09 +00:00
|
|
|
When set to a value other than
|
|
|
|
.Cm 1
|
2011-09-29 02:57:08 +00:00
|
|
|
then
|
|
|
|
.Va KERNCONF
|
|
|
|
is set to the value of
|
2009-01-23 18:35:09 +00:00
|
|
|
.Va KERNFAST .
|
2005-12-05 16:59:45 +00:00
|
|
|
.It Va LOCAL_DIRS
|
2014-03-27 11:12:35 +00:00
|
|
|
If set, this variable supplies a list of additional directories relative to
|
|
|
|
the root of the source tree to build as part of the
|
|
|
|
.Cm everything
|
|
|
|
target.
|
2017-12-31 18:53:13 +00:00
|
|
|
The directories are built in parallel with each other,
|
|
|
|
and with the base system directories.
|
|
|
|
Insert a
|
|
|
|
.Va .WAIT
|
|
|
|
directive at the beginning of the
|
|
|
|
.Va LOCAL_DIRS
|
|
|
|
list to ensure all base system directories are built first.
|
|
|
|
.Va .WAIT
|
|
|
|
may also be used as needed elsewhere within the list.
|
2014-06-17 22:23:36 +00:00
|
|
|
.It Va LOCAL_ITOOLS
|
|
|
|
If set, this variable supplies a list of additional tools that are used by the
|
|
|
|
.Cm installworld
|
|
|
|
and
|
|
|
|
.Cm distributeworld
|
|
|
|
targets.
|
2014-03-27 11:12:35 +00:00
|
|
|
.It Va LOCAL_LIB_DIRS
|
|
|
|
If set, this variable supplies a list of additional directories relative to
|
|
|
|
the root of the source tree to build as part of the
|
|
|
|
.Cm libraries
|
|
|
|
target.
|
2017-12-31 18:53:13 +00:00
|
|
|
The directories are built in parallel with each other,
|
|
|
|
and with the base system libraries.
|
|
|
|
Insert a
|
|
|
|
.Va .WAIT
|
|
|
|
directive at the beginning of the
|
|
|
|
.Va LOCAL_DIRS
|
|
|
|
list to ensure all base system libraries are built first.
|
|
|
|
.Va .WAIT
|
|
|
|
may also be used as needed elsewhere within the list.
|
2014-03-27 11:12:35 +00:00
|
|
|
.It Va LOCAL_MTREE
|
|
|
|
If set, this variable supplies a list of additional mtrees relative to the
|
|
|
|
root of the source tree to use as part of the
|
|
|
|
.Cm hierarchy
|
|
|
|
target.
|
|
|
|
.It Va LOCAL_TOOL_DIRS
|
|
|
|
If set, this variable supplies a list of additional directories relative to
|
|
|
|
the root of the source tree to build as part of the
|
|
|
|
.Cm build-tools
|
|
|
|
target.
|
2016-07-21 06:06:11 +00:00
|
|
|
.It Va LOCAL_XTOOL_DIRS
|
|
|
|
If set, this variable supplies a list of additional directories relative to
|
|
|
|
the root of the source tree to build as part of the
|
|
|
|
.Cm cross-tools
|
|
|
|
target.
|
2011-09-29 02:52:33 +00:00
|
|
|
.It Va PORTS_MODULES
|
|
|
|
A list of ports with kernel modules that should be built and installed
|
|
|
|
as part of the
|
|
|
|
.Cm buildkernel
|
|
|
|
and
|
|
|
|
.Cm installkernel
|
|
|
|
process.
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
make PORTS_MODULES=emulators/kqemu-kmod kernel
|
|
|
|
.Ed
|
2014-12-31 22:49:02 +00:00
|
|
|
.It Va STRIPBIN
|
2014-12-18 18:20:33 +00:00
|
|
|
Command to use at install time when stripping binaries.
|
|
|
|
Be sure to add any additional tools required to run
|
2014-12-31 22:49:02 +00:00
|
|
|
.Va STRIPBIN
|
2014-12-18 18:20:33 +00:00
|
|
|
to the
|
|
|
|
.Va LOCAL_ITOOLS
|
|
|
|
.Xr make 1
|
|
|
|
variable before running the
|
|
|
|
.Cm distributeworld
|
|
|
|
or
|
|
|
|
.Cm installworld
|
|
|
|
targets.
|
|
|
|
See
|
|
|
|
.Xr install 1
|
|
|
|
for more details.
|
2005-12-05 16:59:45 +00:00
|
|
|
.It Va SUBDIR_OVERRIDE
|
|
|
|
Override the default list of sub-directories and only build the
|
|
|
|
sub-directory named in this variable.
|
Let SUBDIR_OVERRIDE with 'make buildworld' be more useful.
Now it can be used to effectively "build in a subdir". It will use the
'cross-tools', 'libraries', and 'includes' phases of 'buildworld' to properly
setup a WORLDTMP to use. Then it will build 'everything' only in the
listed SUBDIR_OVERRIDE directories. It is still required to list custom
library directories in LOCAL_LIB_DIRS if SUBDIR_OVERRIDE is something
that contains libraries outside of the normal area (such as
SUBDIR_OVERRIDE=contrib/ofed needing LOCAL_LIB_DIRS=contrib/ofed/usr.lib)
Without these changes, SUBDIR_OVERRIDE with buildworld was broken or hit
obscure failures due to missing libraries, includes, or cross compiler.
SUBDIR_OVERRIDE with 'make <target that is not buildworld>' will continue to
work as it did before although its usefulness is questionable.
With a fully populated WORLDTMP, building with a SUBDIR_OVERRIDE with
-DNO_CLEAN only takes a few minutes to start building the target
directories. This is still much better than building unneeded things via
'everything' when testing small subset changes. A BUILDFAST or
SKIPWORLDTMP might make sense for this as well.
- Add in '_worldtmp' as we still need to create WORLDTMP as later targets,
such as '_libraries' and '_includes' use it. This probably was avoiding
calling '_worldtmp' to not remove WORLDTMP for debugging purposes, but
-DNO_CLEAN can be used for that.
- '_legacy' must be included since '_build-tools' uses -legacy.
The SUBDIR_OVERRIDE change came in r95509, while -legacy being part
of build-tools came in r113136.
- 'bootstrap-tools' is still skipped as this feature is not for
upgrades.
- Fix buildworld combined with SUBDIR_OVERRIDE not installing all includes.
The original change for SUBDIR_OVERRIDE in r95509 kept '_includes'
and '_libraries' as building everything possible as the SUBDIR_OVERRIDE
could need anything from them. However in r96462 the real 'includes'
target was changed from manual sub-makes to just recursing 'includes'
on SUBDIR, thus not all includes have been installed into WORLDTMP since then
when combined with 'buildworld'.
This is not done unless calling 'make buildworld' as it would be
unexpected to have it go into all directories when doing 'make
SUBDIR_OVERRIDE=mydir includes'.
- Also need to build the cross-compiler so it is used with --sysroot.
If this is burdensome then telling the build to use the local compiler
as an external compiler (thus using a proper --sysroot to WORLDTMP) is
possible by setting CC=/usr/bin/cc, CXX=/usr/bin/c++, etc.
- Don't build the lib32 distribution with SUBDIR_OVERRIDE in buildworld
since it won't contain anything related to SUBDIR_OVERRIDE. Testing
of the lib32 build can be done with 'make build32'.
- Document these changes in build.7
Sponsored by: EMC / Isilon Storage Division
MFC after: 2 weeks
2015-10-22 00:07:48 +00:00
|
|
|
If combined with
|
|
|
|
.Cm buildworld
|
|
|
|
then all libraries and includes, and some of the build tools will still build
|
|
|
|
as well.
|
2017-05-10 00:02:24 +00:00
|
|
|
Specifying
|
|
|
|
.Cm -DNO_LIBS ,
|
|
|
|
and
|
|
|
|
.Cm -DWORLDFAST
|
|
|
|
will only build the specified directory as was done historically.
|
Let SUBDIR_OVERRIDE with 'make buildworld' be more useful.
Now it can be used to effectively "build in a subdir". It will use the
'cross-tools', 'libraries', and 'includes' phases of 'buildworld' to properly
setup a WORLDTMP to use. Then it will build 'everything' only in the
listed SUBDIR_OVERRIDE directories. It is still required to list custom
library directories in LOCAL_LIB_DIRS if SUBDIR_OVERRIDE is something
that contains libraries outside of the normal area (such as
SUBDIR_OVERRIDE=contrib/ofed needing LOCAL_LIB_DIRS=contrib/ofed/usr.lib)
Without these changes, SUBDIR_OVERRIDE with buildworld was broken or hit
obscure failures due to missing libraries, includes, or cross compiler.
SUBDIR_OVERRIDE with 'make <target that is not buildworld>' will continue to
work as it did before although its usefulness is questionable.
With a fully populated WORLDTMP, building with a SUBDIR_OVERRIDE with
-DNO_CLEAN only takes a few minutes to start building the target
directories. This is still much better than building unneeded things via
'everything' when testing small subset changes. A BUILDFAST or
SKIPWORLDTMP might make sense for this as well.
- Add in '_worldtmp' as we still need to create WORLDTMP as later targets,
such as '_libraries' and '_includes' use it. This probably was avoiding
calling '_worldtmp' to not remove WORLDTMP for debugging purposes, but
-DNO_CLEAN can be used for that.
- '_legacy' must be included since '_build-tools' uses -legacy.
The SUBDIR_OVERRIDE change came in r95509, while -legacy being part
of build-tools came in r113136.
- 'bootstrap-tools' is still skipped as this feature is not for
upgrades.
- Fix buildworld combined with SUBDIR_OVERRIDE not installing all includes.
The original change for SUBDIR_OVERRIDE in r95509 kept '_includes'
and '_libraries' as building everything possible as the SUBDIR_OVERRIDE
could need anything from them. However in r96462 the real 'includes'
target was changed from manual sub-makes to just recursing 'includes'
on SUBDIR, thus not all includes have been installed into WORLDTMP since then
when combined with 'buildworld'.
This is not done unless calling 'make buildworld' as it would be
unexpected to have it go into all directories when doing 'make
SUBDIR_OVERRIDE=mydir includes'.
- Also need to build the cross-compiler so it is used with --sysroot.
If this is burdensome then telling the build to use the local compiler
as an external compiler (thus using a proper --sysroot to WORLDTMP) is
possible by setting CC=/usr/bin/cc, CXX=/usr/bin/c++, etc.
- Don't build the lib32 distribution with SUBDIR_OVERRIDE in buildworld
since it won't contain anything related to SUBDIR_OVERRIDE. Testing
of the lib32 build can be done with 'make build32'.
- Document these changes in build.7
Sponsored by: EMC / Isilon Storage Division
MFC after: 2 weeks
2015-10-22 00:07:48 +00:00
|
|
|
When combined with
|
|
|
|
.Cm buildworld
|
|
|
|
it is necesarry to override
|
|
|
|
.Va LOCAL_LIB_DIRS
|
|
|
|
with any custom directories containing libraries.
|
|
|
|
This allows building a subset of the system in the same way as
|
|
|
|
.Cm buildworld
|
|
|
|
does using its sysroot handling.
|
|
|
|
This variable can also be useful when debugging failed builds.
|
2005-12-05 16:59:45 +00:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
make some-target SUBDIR_OVERRIDE=foo/bar
|
|
|
|
.Ed
|
2002-03-15 23:34:17 +00:00
|
|
|
.It Va TARGET
|
2002-03-15 23:29:24 +00:00
|
|
|
The target hardware platform.
|
2002-03-17 15:01:28 +00:00
|
|
|
This is analogous to the
|
2002-03-20 14:33:37 +00:00
|
|
|
.Dq Nm uname Fl m
|
2002-03-15 23:29:24 +00:00
|
|
|
output.
|
|
|
|
This is necessary to cross-build some target architectures.
|
2017-01-28 23:58:17 +00:00
|
|
|
For example, cross-building for ARM64 machines requires
|
|
|
|
.Va TARGET_ARCH Ns = Ns Li aarch64
|
2002-03-15 23:29:24 +00:00
|
|
|
and
|
2017-01-28 23:58:17 +00:00
|
|
|
.Va TARGET Ns = Ns Li arm64 .
|
2005-12-05 16:59:45 +00:00
|
|
|
If not set,
|
|
|
|
.Va TARGET
|
2017-05-11 08:39:55 +00:00
|
|
|
defaults to the current hardware platform, unless
|
|
|
|
.Va TARGET_ARCH
|
|
|
|
is also set, in which case it defaults to the appropriate
|
|
|
|
value for that architecture.
|
2005-12-05 16:59:45 +00:00
|
|
|
.It Va TARGET_ARCH
|
|
|
|
The target machine processor architecture.
|
|
|
|
This is analogous to the
|
|
|
|
.Dq Nm uname Fl p
|
|
|
|
output.
|
|
|
|
Set this to cross-build for a different architecture.
|
|
|
|
If not set,
|
|
|
|
.Va TARGET_ARCH
|
2011-09-29 02:57:08 +00:00
|
|
|
defaults to the current machine architecture, unless
|
2007-12-11 21:14:10 +00:00
|
|
|
.Va TARGET
|
|
|
|
is also set, in which case it defaults to the appropriate
|
|
|
|
value for that platform.
|
2011-09-29 02:57:08 +00:00
|
|
|
Typically, one only needs to set
|
2009-01-23 18:32:31 +00:00
|
|
|
.Va TARGET .
|
2005-12-05 16:59:45 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Builds under directory
|
2009-01-05 16:25:36 +00:00
|
|
|
.Pa /usr/src
|
2010-10-26 13:07:01 +00:00
|
|
|
are also influenced by defining one or more of the following symbols,
|
2009-01-05 16:25:36 +00:00
|
|
|
using the
|
|
|
|
.Fl D
|
|
|
|
option of
|
|
|
|
.Xr make 1 :
|
2016-03-30 23:50:23 +00:00
|
|
|
.Bl -tag -width ".Va -DNO_KERNELCONFIG"
|
2009-01-05 16:25:36 +00:00
|
|
|
.It Va NO_CLEANDIR
|
|
|
|
If set, the build targets that clean parts of the object tree use the
|
|
|
|
equivalent of
|
|
|
|
.Dq make clean
|
|
|
|
instead of
|
|
|
|
.Dq make cleandir .
|
|
|
|
.It Va NO_CLEAN
|
|
|
|
If set, no object tree files are cleaned at all.
|
2016-04-14 22:00:33 +00:00
|
|
|
This is the default when
|
|
|
|
.Va WITH_META_MODE
|
|
|
|
is used with
|
|
|
|
.Xr filemon 4
|
|
|
|
loaded.
|
|
|
|
See
|
|
|
|
.Xr src.conf 5
|
|
|
|
for more details.
|
2009-01-05 16:25:36 +00:00
|
|
|
Setting
|
|
|
|
.Va NO_CLEAN
|
|
|
|
implies
|
|
|
|
.Va NO_KERNELCLEAN ,
|
|
|
|
so when
|
|
|
|
.Va NO_CLEAN
|
|
|
|
is set no kernel objects are cleaned either.
|
|
|
|
.It Va NO_CTF
|
|
|
|
If set, the build process does not run the DTrace CTF conversion tools
|
|
|
|
on built objects.
|
|
|
|
.It Va NO_SHARE
|
|
|
|
If set, the build does not descend into the
|
|
|
|
.Pa /usr/src/share
|
2016-04-28 22:14:09 +00:00
|
|
|
subdirectory (i.e., manual pages, locale data files, timezone data files and
|
2009-01-05 16:25:36 +00:00
|
|
|
other
|
|
|
|
.Pa /usr/src/share
|
|
|
|
files will not be rebuild from their sources).
|
|
|
|
.It Va NO_KERNELCLEAN
|
|
|
|
If set, the build process does not run
|
|
|
|
.Dq make clean
|
|
|
|
as part of the
|
|
|
|
.Cm buildkernel
|
|
|
|
target.
|
|
|
|
.It Va NO_KERNELCONFIG
|
|
|
|
If set, the build process does not run
|
|
|
|
.Xr config 8
|
|
|
|
as part of the
|
|
|
|
.Cm buildkernel
|
|
|
|
target.
|
2009-12-16 03:25:43 +00:00
|
|
|
.It Va NO_KERNELOBJ
|
|
|
|
If set, the build process does not run
|
|
|
|
.Dq make obj
|
|
|
|
as part of the
|
|
|
|
.Cm buildkernel
|
|
|
|
target.
|
2009-01-05 16:25:36 +00:00
|
|
|
.It Va NO_DOCUPDATE
|
|
|
|
If set, the update process does not update the source of the
|
|
|
|
.Fx
|
|
|
|
documentation as part of the
|
|
|
|
.Dq make update
|
|
|
|
target.
|
2017-05-09 23:58:07 +00:00
|
|
|
.It Va NO_LIBS
|
|
|
|
If set, the libraries phase will be skipped.
|
2017-11-03 23:22:03 +00:00
|
|
|
.It Va NO_OBJWALK
|
2017-05-09 20:21:38 +00:00
|
|
|
If set, no object directories will be created.
|
|
|
|
This should only be used if object directories were created in a
|
|
|
|
previous build and no new directories are connected.
|
2009-01-05 16:25:36 +00:00
|
|
|
.It Va NO_PORTSUPDATE
|
|
|
|
If set, the update process does not update the Ports tree as part of the
|
|
|
|
.Dq make update
|
|
|
|
target.
|
2011-06-16 12:28:37 +00:00
|
|
|
.It Va NO_WWWUPDATE
|
|
|
|
If set, the update process does not update the www tree as part of the
|
|
|
|
.Dq make update
|
|
|
|
target.
|
2017-05-09 20:21:58 +00:00
|
|
|
.It Va WORLDFAST
|
|
|
|
If set, the build target
|
|
|
|
.Cm buildworld
|
|
|
|
defaults to setting
|
|
|
|
.Va NO_CLEAN ,
|
2017-11-03 23:22:03 +00:00
|
|
|
.Va NO_OBJWALK ,
|
2017-05-09 20:21:58 +00:00
|
|
|
and will skip most bootstrap phases.
|
|
|
|
It will only bootstrap libraries and build all of userland.
|
|
|
|
This option should be used only when it is known that none of the bootstrap
|
|
|
|
needs changed and that no new directories have been connected to the build.
|
2009-01-05 16:25:36 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Builds under directory
|
2005-12-05 16:59:45 +00:00
|
|
|
.Pa /usr/doc
|
|
|
|
are influenced by the following
|
|
|
|
.Xr make 1
|
|
|
|
variables:
|
|
|
|
.Bl -tag -width ".Va DOC_LANG"
|
|
|
|
.It Va DOC_LANG
|
|
|
|
If set, restricts the documentation build to the language subdirectories
|
|
|
|
specified as its content.
|
|
|
|
The default action is to build documentation for all languages.
|
2002-03-14 09:38:24 +00:00
|
|
|
.El
|
2011-02-10 18:54:52 +00:00
|
|
|
.Pp
|
|
|
|
Builds using the
|
|
|
|
.Cm universe
|
|
|
|
target are influenced by the following
|
|
|
|
.Xr make 1
|
|
|
|
variables:
|
|
|
|
.Bl -tag -width ".Va MAKE_JUST_KERNELS"
|
|
|
|
.It Va JFLAG
|
|
|
|
Pass the value of this variable to each
|
|
|
|
.Xr make 1
|
|
|
|
invocation used to build worlds and kernels.
|
|
|
|
This can be used to enable multiple jobs within a single architecture's build
|
|
|
|
while still building each architecture serially.
|
|
|
|
.It Va MAKE_JUST_KERNELS
|
|
|
|
Only build kernels for each supported architecture.
|
|
|
|
.It Va MAKE_JUST_WORLDS
|
|
|
|
Only build worlds for each supported architecture.
|
|
|
|
.It Va UNIVERSE_TARGET
|
|
|
|
Execute the specified
|
|
|
|
.Xr make 1
|
|
|
|
target for each supported architecture instead of the default action of
|
|
|
|
building a world and one or more kernels.
|
|
|
|
.El
|
2000-11-22 14:04:26 +00:00
|
|
|
.Sh FILES
|
2001-09-04 10:08:19 +00:00
|
|
|
.Bl -tag -width ".Pa /usr/share/examples/etc/make.conf" -compact
|
2000-11-22 14:04:26 +00:00
|
|
|
.It Pa /usr/doc/Makefile
|
|
|
|
.It Pa /usr/doc/share/mk/doc.project.mk
|
|
|
|
.It Pa /usr/ports/Mk/bsd.port.mk
|
|
|
|
.It Pa /usr/ports/Mk/bsd.sites.mk
|
2002-03-20 14:33:37 +00:00
|
|
|
.It Pa /usr/share/examples/etc/make.conf
|
2001-09-04 10:08:19 +00:00
|
|
|
.It Pa /usr/src/Makefile
|
|
|
|
.It Pa /usr/src/Makefile.inc1
|
2000-12-29 09:18:45 +00:00
|
|
|
.El
|
2000-11-23 14:00:26 +00:00
|
|
|
.Sh EXAMPLES
|
2004-08-13 12:59:46 +00:00
|
|
|
For an
|
2000-11-23 14:00:26 +00:00
|
|
|
.Dq approved
|
2005-12-05 16:59:45 +00:00
|
|
|
method of updating your system from the latest sources, please see the
|
2004-08-13 12:59:46 +00:00
|
|
|
.Sx COMMON ITEMS
|
|
|
|
section in
|
|
|
|
.Pa src/UPDATING .
|
2002-03-14 09:38:24 +00:00
|
|
|
.Pp
|
|
|
|
The following sequence of commands can be used to cross-build the
|
2017-05-11 08:39:55 +00:00
|
|
|
system for the armv6 architecture on an amd64 host:
|
2002-03-14 09:38:24 +00:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
cd /usr/src
|
2017-05-11 08:39:55 +00:00
|
|
|
make TARGET_ARCH=armv6 buildworld buildkernel
|
|
|
|
make TARGET_ARCH=armv6 DESTDIR=/clients/arm64 installworld installkernel
|
2002-03-14 09:38:24 +00:00
|
|
|
.Ed
|
2000-11-22 14:04:26 +00:00
|
|
|
.Sh SEE ALSO
|
2000-11-23 14:44:45 +00:00
|
|
|
.Xr cc 1 ,
|
2000-11-22 14:04:26 +00:00
|
|
|
.Xr install 1 ,
|
|
|
|
.Xr make 1 ,
|
2012-06-27 17:51:09 +00:00
|
|
|
.Xr svn 1 ,
|
2000-11-22 14:04:26 +00:00
|
|
|
.Xr make.conf 5 ,
|
2006-06-11 08:30:38 +00:00
|
|
|
.Xr src.conf 5 ,
|
2017-05-11 08:39:55 +00:00
|
|
|
.Xr arch 7 ,
|
2000-11-23 14:19:50 +00:00
|
|
|
.Xr ports 7 ,
|
2002-03-13 06:59:39 +00:00
|
|
|
.Xr release 7 ,
|
2017-03-23 05:06:40 +00:00
|
|
|
.Xr tests 7 ,
|
2005-02-25 00:40:46 +00:00
|
|
|
.Xr config 8 ,
|
2000-11-24 10:22:08 +00:00
|
|
|
.Xr mergemaster 8 ,
|
2012-07-02 17:52:43 +00:00
|
|
|
.Xr portsnap 8 ,
|
2000-11-23 14:19:50 +00:00
|
|
|
.Xr reboot 8 ,
|
2017-03-23 05:06:40 +00:00
|
|
|
.Xr shutdown 8
|
2000-11-22 14:04:26 +00:00
|
|
|
.Sh AUTHORS
|
2014-06-23 08:27:27 +00:00
|
|
|
.An Mike W. Meyer Aq Mt mwm@mired.org
|