Lines Matching full:build

8      The basic build procedure is the same whether compiling natively (on the
12 This source tree contains the build.sh shell script which supports both
16 system to create a build toolchain for the target architecture. The host
19 as nbmake) are created as part of the NetBSD build process. (See the
38 its shortcomings, it has been superseded by the build.sh
43 build of an updated source tree.
45 build.sh Bourne-compatible shell script used for building the host
46 build tools and the NetBSD system from scratch. Can be
54 mangling the existing build structure. Other source trees
69 Sources and build infrastructure for components imported
75 "Reachover" build structure for modular Xorg; the source
92 tools/ "Reachover" build structure for the host build tools.
97 Special notes for cross-hosting a NetBSD build on non-
103 during the build.
105 Build tree layout
106 The NetBSD build tree is described in hier(7) (whose mdoc(7) source is in
135 suitable for use during the build. The NetBSD build
147 Most parts of the build require HOST_SH to be an absolute
148 path; however, build.sh allows it to be a simple command
177 Default: "/etc/mk.conf", although build.sh will set the
179 present in the same directory as build.sh.
183 Note: build.sh ignores the value of MAKEFLAGS passed in
199 or via the -O flag of build.sh; it cannot usefully be set
207 build.sh will create the ${MAKEOBJDIRPREFIX} directory if
208 necessary, but if make(1) is used without build.sh, then
209 rules in <bsd.obj.mk> will abort the build if the
217 environment or via the -M flag of build.sh; it cannot
224 by build.sh before paths to other directories such as
240 Note: Variables set in the environment, either directly or via build.sh
243 mk.conf(5) to be overridden by the environment or build.sh options,
251 BSDOBJDIR, BSDSRCDIR, BUILD, BUILDID, BUILDINFO, BUILDSEED,
294 enforce build ordering.
301 build.sh.
307 -V var Show make(1)'s idea of the value of var. Does not build any
320 all Build programs, libraries, and preformatted documentation.
326 files known to be created at build time.
334 This improves cache locality of the build since both passes
339 includes Build and install system header files. Typically needed
360 build Build the entire NetBSD system (except the kernel). This
364 distribution Do a "make build", and then install a full distribution
392 after "make distribution", as "make build" alone does not
400 after "make distribution", as "make build" alone does not
403 release Do a "make distribution", build kernels, distribution
479 be populated by "make release" or equivalent. The build
495 populated by "make release" or equivalent. The build must
508 The build.sh script
509 This script file is a shell script designed to build the entire NetBSD
518 /path/to/suitable/shell build.sh [options]
520 The above command will usually enable build.sh to automatically set
526 ${HOST_SH} build.sh [options]
528 If build.sh detects that it is being executed under an unsuitable shell,
530 If HOST_SH is not set explicitly, then build.sh sets a default using
532 build.sh is executed (if that can be determined), or using the first copy
536 should make use of build.sh rather than just running "make". This way,
540 When compiling the entire system via build.sh, many make(1) variables are
541 set for you in order to help encapsulate the build process. In the list
542 of options below, variables that are automatically set by build.sh are
545 The following operations are supported by build.sh:
547 build Build the system as per "make build". Before the main part
548 of the build commences, this command runs the obj operation
552 distribution Build a full distribution as per "make distribution". This
553 command first runs the build operation.
555 release Build a full release as per "make release". This command
567 tools Build and install the host tools from src/tools. This
579 kernel=kconf Build a new kernel. The kconf argument is the name of a
595 Build a new kernel with debug information. Similar to the
601 kernels This command will build all kernels defined in port
602 specific release build procedure.
607 modules This command will build kernel modules and install them
638 "build.sh -m 'evb*' -a '*arm*' list-arch" will list all
643 The following command line options alter the behaviour of the build.sh
651 build identifier to the name of the nbmake-MACHINE wrapper
667 Select the compiler for the toolchain to build NetBSD and for
674 The compiler used to build the toolchain can be different; see
693 out of memory while using build.sh with -j, please save
694 complete build logs so the failures can be analyzed.
705 "-M /usr/obj" will place build-time files under
710 absolute path before being used. build.sh imposes the
715 build.sh will create it.
720 Such aliases are interpreted entirely by build.sh; they are not
721 used by any other part of the build system. The MACHINE_ARCH
732 Set the "noisiness" level of the build, by setting MAKEVERBOSE
735 -n Show the commands that would be executed by build.sh, but do
742 For instance, a setting of "-O /usr/obj" will place build-time
747 absolute path before being used. build.sh imposes the
750 already exist, build.sh will create it.
772 behaviour when not using build.sh.
823 If using the build.sh script to build NetBSD, a nbmake-MACHINE wrapper
824 script will be created in TOOLDIR/bin upon the first build to assist in
839 1. % ./build.sh [OPTIONS] tools kernel=GENERIC
841 Build a new toolchain, and use the new toolchain to configure and
842 build a new GENERIC kernel.
844 2. % ./build.sh [OPTIONS] -U distribution
846 Using unprivileged mode, build a complete distribution to a DESTDIR
847 directory that build.sh selects (and will show).
849 3. # ./build.sh [OPTIONS] -U install=/
856 4. % ./build.sh [OPTIONS] -U -u release
858 Using unprivileged mode, build a complete release to DESTDIR and
859 RELEASEDIR directories that build.sh selects (and will show).
862 the release build.
874 The build.sh based build scheme was introduced for NetBSD 1.6 as