xref: /freebsd/share/man/man5/src.conf.5 (revision b013518a0c8f42926d6725d169a22d4df5f5bac1)
1b1a0e564SEitan Adler.\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman.
2fa07cb9cSRuslan Ermilov.\" $FreeBSD$
3*b013518aSEd Maste.Dd November 13, 2020
4fa07cb9cSRuslan Ermilov.Dt SRC.CONF 5
5fa07cb9cSRuslan Ermilov.Os
6fa07cb9cSRuslan Ermilov.Sh NAME
7fa07cb9cSRuslan Ermilov.Nm src.conf
816f2e711SYaroslav Tykhiy.Nd "source build options"
9fa07cb9cSRuslan Ermilov.Sh DESCRIPTION
10fa07cb9cSRuslan ErmilovThe
11fa07cb9cSRuslan Ermilov.Nm
12e6ca6901SGordon Berglingfile contains variables that control what components will be generated during
13e6ca6901SGordon Berglingthe build process of the
14fa07cb9cSRuslan Ermilov.Fx
15fa07cb9cSRuslan Ermilovsource tree; see
16fa07cb9cSRuslan Ermilov.Xr build 7 .
17fa07cb9cSRuslan Ermilov.Pp
18fa07cb9cSRuslan ErmilovThe
19fa07cb9cSRuslan Ermilov.Nm
20fa07cb9cSRuslan Ermilovfile uses the standard makefile syntax.
21fa07cb9cSRuslan ErmilovHowever,
22fa07cb9cSRuslan Ermilov.Nm
23fa07cb9cSRuslan Ermilovshould not specify any dependencies to
24fa07cb9cSRuslan Ermilov.Xr make 1 .
25fa07cb9cSRuslan ErmilovInstead,
26fa07cb9cSRuslan Ermilov.Nm
27fa07cb9cSRuslan Ermilovis to set
28fa07cb9cSRuslan Ermilov.Xr make 1
29fa07cb9cSRuslan Ermilovvariables that control the aspects of how the system builds.
30fa07cb9cSRuslan Ermilov.Pp
31fa07cb9cSRuslan ErmilovThe default location of
32fa07cb9cSRuslan Ermilov.Nm
33fa07cb9cSRuslan Ermilovis
34fa07cb9cSRuslan Ermilov.Pa /etc/src.conf ,
35fa07cb9cSRuslan Ermilovthough an alternative location can be specified in the
36fa07cb9cSRuslan Ermilov.Xr make 1
37fa07cb9cSRuslan Ermilovvariable
38fa07cb9cSRuslan Ermilov.Va SRCCONF .
39fa07cb9cSRuslan ErmilovOverriding the location of
40fa07cb9cSRuslan Ermilov.Nm
41fa07cb9cSRuslan Ermilovmay be necessary if the system-wide settings are not suitable
42fa07cb9cSRuslan Ermilovfor a particular build.
43fa07cb9cSRuslan ErmilovFor instance, setting
44fa07cb9cSRuslan Ermilov.Va SRCCONF
45fa07cb9cSRuslan Ermilovto
46fa07cb9cSRuslan Ermilov.Pa /dev/null
47fa07cb9cSRuslan Ermiloveffectively resets all build controls to their defaults.
48fa07cb9cSRuslan Ermilov.Pp
49fa07cb9cSRuslan ErmilovThe only purpose of
50fa07cb9cSRuslan Ermilov.Nm
51fa07cb9cSRuslan Ermilovis to control the compilation of the
52fa07cb9cSRuslan Ermilov.Fx
5316f2e711SYaroslav Tykhiysource code, which is usually located in
54fa07cb9cSRuslan Ermilov.Pa /usr/src .
55fa07cb9cSRuslan ErmilovAs a rule, the system administrator creates
56fa07cb9cSRuslan Ermilov.Nm
57fa07cb9cSRuslan Ermilovwhen the values of certain control variables need to be changed
58fa07cb9cSRuslan Ermilovfrom their defaults.
59fa07cb9cSRuslan Ermilov.Pp
60fa07cb9cSRuslan ErmilovIn addition, control variables can be specified
61fa07cb9cSRuslan Ermilovfor a particular build via the
62fa07cb9cSRuslan Ermilov.Fl D
63fa07cb9cSRuslan Ermilovoption of
64fa07cb9cSRuslan Ermilov.Xr make 1
6572735687SMike Makonnenor in its environment; see
66fa07cb9cSRuslan Ermilov.Xr environ 7 .
67fa07cb9cSRuslan Ermilov.Pp
680a70ef02SBryan DreweryThe environment of
690a70ef02SBryan Drewery.Xr make 1
700a70ef02SBryan Dreweryfor the build can be controlled via the
710a70ef02SBryan Drewery.Va SRC_ENV_CONF
720a70ef02SBryan Dreweryvariable, which defaults to
730a70ef02SBryan Drewery.Pa /etc/src-env.conf .
740a70ef02SBryan DrewerySome examples that may only be set in this file are
7532b5dc9aSSimon J. Gerraty.Va WITH_DIRDEPS_BUILD ,
760a70ef02SBryan Dreweryand
77efb949a6SBryan Drewery.Va WITH_META_MODE ,
78efb949a6SBryan Dreweryand
797df4050dSBryan Drewery.Va MAKEOBJDIRPREFIX
80efb949a6SBryan Dreweryas they are environment-only variables.
810a70ef02SBryan Drewery.Pp
8216f2e711SYaroslav TykhiyThe values of variables are ignored regardless of their setting;
8316f2e711SYaroslav Tykhiyeven if they would be set to
84fa07cb9cSRuslan Ermilov.Dq Li FALSE
85fa07cb9cSRuslan Ermilovor
8616f2e711SYaroslav Tykhiy.Dq Li NO .
87344e2bb9SEd MasteThe presence of an option causes
88344e2bb9SEd Masteit to be honored by
8916f2e711SYaroslav Tykhiy.Xr make 1 .
90fa07cb9cSRuslan Ermilov.Pp
91344e2bb9SEd MasteThis list provides a name and short description for variables
92fa07cb9cSRuslan Ermilovthat can be used for source builds.
93fa07cb9cSRuslan Ermilov.Bl -tag -width indent
94aaa6d7ebSSam Leffler.It Va WITHOUT_ACCT
95aaa6d7ebSSam LefflerSet to not build process accounting tools such as
960ea27d02SEd Schouten.Xr accton 8
97aaa6d7ebSSam Lefflerand
980ea27d02SEd Schouten.Xr sa 8 .
99fa07cb9cSRuslan Ermilov.It Va WITHOUT_ACPI
100fa07cb9cSRuslan ErmilovSet to not build
101fa07cb9cSRuslan Ermilov.Xr acpiconf 8 ,
102fa07cb9cSRuslan Ermilov.Xr acpidump 8
103fa07cb9cSRuslan Ermilovand related programs.
104aaa6d7ebSSam Leffler.It Va WITHOUT_APM
105aaa6d7ebSSam LefflerSet to not build
106aaa6d7ebSSam Leffler.Xr apm 8 ,
107aaa6d7ebSSam Leffler.Xr apmd 8
108aaa6d7ebSSam Lefflerand related programs.
109e567b213SRuslan Ermilov.It Va WITHOUT_ASSERT_DEBUG
110e567b213SRuslan ErmilovSet to compile programs and libraries without the
111e567b213SRuslan Ermilov.Xr assert 3
112e567b213SRuslan Ermilovchecks.
113aaa6d7ebSSam Leffler.It Va WITHOUT_AT
114aaa6d7ebSSam LefflerSet to not build
115aaa6d7ebSSam Leffler.Xr at 1
116aaa6d7ebSSam Lefflerand related utilities.
117fa07cb9cSRuslan Ermilov.It Va WITHOUT_ATM
118fa07cb9cSRuslan ErmilovSet to not build
119fa07cb9cSRuslan Ermilovprograms and libraries related to ATM networking.
120fa07cb9cSRuslan Ermilov.It Va WITHOUT_AUDIT
121fa07cb9cSRuslan ErmilovSet to not build audit support into system programs.
122fa07cb9cSRuslan Ermilov.It Va WITHOUT_AUTHPF
123fa07cb9cSRuslan ErmilovSet to not build
124fa07cb9cSRuslan Ermilov.Xr authpf 8 .
12561940879SEnji Cooper.It Va WITHOUT_AUTOFS
12661940879SEnji CooperSet to not build
1274b9f77e4SEdward Tomasz Napierala.Xr autofs 5
12861940879SEnji Cooperrelated programs, libraries, and kernel modules.
129906a1c6cSBryan Drewery.It Va WITHOUT_AUTO_OBJ
130906a1c6cSBryan DreweryDisable automatic creation of objdirs.
131906a1c6cSBryan DreweryThis is enabled by default if the wanted OBJDIR is writable by the current user.
1320a70ef02SBryan Drewery.Pp
133ba852870SBryan DreweryThis must be set in the environment, make command line, or
1340a70ef02SBryan Drewery.Pa /etc/src-env.conf ,
1350a70ef02SBryan Drewerynot
1360a70ef02SBryan Drewery.Pa /etc/src.conf .
137bfdf8aa9SJohn Baldwin.It Va WITH_BEARSSL
138bfdf8aa9SJohn BaldwinBuild the BearSSL library.
139bfdf8aa9SJohn Baldwin.Pp
140bfdf8aa9SJohn BaldwinBearSSL is a tiny SSL library suitable for embedded environments.
141bfdf8aa9SJohn BaldwinFor details see
142bfdf8aa9SJohn Baldwin.Lk http://www.BearSSL.org/
143bfdf8aa9SJohn Baldwin.Pp
144bfdf8aa9SJohn BaldwinThis library is currently only used to perform
145bfdf8aa9SJohn Baldwinsignature verification and related operations
146bfdf8aa9SJohn Baldwinfor Verified Exec and
147bfdf8aa9SJohn Baldwin.Xr loader 8 .
148bfdf8aa9SJohn BaldwinWhen set, these options are also in effect:
149bfdf8aa9SJohn Baldwin.Pp
150bfdf8aa9SJohn Baldwin.Bl -inset -compact
151bfdf8aa9SJohn Baldwin.It Va WITH_LOADER_EFI_SECUREBOOT
152bfdf8aa9SJohn Baldwin(unless
153bfdf8aa9SJohn Baldwin.Va WITHOUT_LOADER_EFI_SECUREBOOT
154bfdf8aa9SJohn Baldwinis set explicitly)
155bfdf8aa9SJohn Baldwin.It Va WITH_LOADER_VERIEXEC
156bfdf8aa9SJohn Baldwin(unless
157bfdf8aa9SJohn Baldwin.Va WITHOUT_LOADER_VERIEXEC
158bfdf8aa9SJohn Baldwinis set explicitly)
159f87a2082SEd Maste.It Va WITH_LOADER_VERIEXEC_VECTX
160f87a2082SEd Maste(unless
161f87a2082SEd Maste.Va WITHOUT_LOADER_VERIEXEC_VECTX
162f87a2082SEd Masteis set explicitly)
163bfdf8aa9SJohn Baldwin.It Va WITH_VERIEXEC
164bfdf8aa9SJohn Baldwin(unless
165bfdf8aa9SJohn Baldwin.Va WITHOUT_VERIEXEC
166bfdf8aa9SJohn Baldwinis set explicitly)
167bfdf8aa9SJohn Baldwin.El
16861940879SEnji Cooper.It Va WITHOUT_BHYVE
16961940879SEnji CooperSet to not build or install
17061940879SEnji Cooper.Xr bhyve 8 ,
17161940879SEnji Cooperassociated utilities, and examples.
17261940879SEnji Cooper.Pp
17361940879SEnji CooperThis option only affects amd64/amd64.
174483d953aSJohn Baldwin.It Va WITH_BHYVE_SNAPSHOT
175483d953aSJohn BaldwinSet to include support for save and restore (snapshots) in
176483d953aSJohn Baldwin.Xr bhyve 8
177483d953aSJohn Baldwinand
178483d953aSJohn Baldwin.Xr bhyvectl 8 .
179483d953aSJohn Baldwin.Pp
180483d953aSJohn BaldwinThis option only affects amd64/amd64.
1811f3b049dSEd Maste.It Va WITH_BIND_NOW
1821f3b049dSEd MasteBuild all binaries with the
1831f3b049dSEd Maste.Dv DF_BIND_NOW
1841f3b049dSEd Masteflag set to indicate that the run-time loader should perform all relocation
1851f3b049dSEd Masteprocessing at process startup rather than on demand.
1860341a043SBryan Drewery.It Va WITHOUT_BLACKLIST
1874650b8aeSEnji CooperSet this if you do not want to build
1884650b8aeSEnji Cooper.Xr blacklistd 8
1894650b8aeSEnji Cooperand
1904650b8aeSEnji Cooper.Xr blacklistctl 8 .
191bf64e879SBryan DreweryWhen set, these options are also in effect:
1920341a043SBryan Drewery.Pp
193bf64e879SBryan Drewery.Bl -inset -compact
194bf64e879SBryan Drewery.It Va WITHOUT_BLACKLIST_SUPPORT
195bf64e879SBryan Drewery(unless
196bf64e879SBryan Drewery.Va WITH_BLACKLIST_SUPPORT
197bf64e879SBryan Dreweryis set explicitly)
1980341a043SBryan Drewery.El
1990341a043SBryan Drewery.It Va WITHOUT_BLACKLIST_SUPPORT
2004650b8aeSEnji CooperSet to build some programs without
2014650b8aeSEnji Cooper.Xr libblacklist 3
2024650b8aeSEnji Coopersupport, like
2030341a043SBryan Drewery.Xr fingerd 8 ,
2040341a043SBryan Drewery.Xr ftpd 8 ,
2050341a043SBryan Dreweryand
2060341a043SBryan Drewery.Xr sshd 8 .
20790be798eSDimitry Andric.It Va WITHOUT_BLUETOOTH
20890be798eSDimitry AndricSet to not build Bluetooth related kernel modules, programs and libraries.
20990be798eSDimitry Andric.It Va WITHOUT_BOOT
21090be798eSDimitry AndricSet to not build the boot blocks and loader.
2110e0e9604SEnji Cooper.It Va WITHOUT_BOOTPARAMD
2120e0e9604SEnji CooperSet to not build or install
2130e0e9604SEnji Cooper.Xr bootparamd 8 .
2140e0e9604SEnji Cooper.It Va WITHOUT_BOOTPD
2150e0e9604SEnji CooperSet to not build or install
2160e0e9604SEnji Cooper.Xr bootpd 8 .
21793da8366SEnji Cooper.It Va WITHOUT_BSDINSTALL
21893da8366SEnji CooperSet to not build
21993da8366SEnji Cooper.Xr bsdinstall 8 ,
22093da8366SEnji Cooper.Xr sade 8 ,
22193da8366SEnji Cooperand related programs.
22290be798eSDimitry Andric.It Va WITHOUT_BSD_CPIO
22390be798eSDimitry AndricSet to not build the BSD licensed version of cpio based on
22490be798eSDimitry Andric.Xr libarchive 3 .
22590be798eSDimitry Andric.It Va WITH_BSD_GREP
22690be798eSDimitry AndricInstall BSD-licensed grep as '[ef]grep' instead of GNU grep.
22790be798eSDimitry Andric.It Va WITHOUT_BSNMP
22890be798eSDimitry AndricSet to not build or install
22990be798eSDimitry Andric.Xr bsnmpd 1
23090be798eSDimitry Andricand related libraries and data files.
23190be798eSDimitry Andric.It Va WITHOUT_BZIP2
23290be798eSDimitry AndricSet to not build contributed bzip2 software as a part of the base system.
23390be798eSDimitry Andric.Bf -symbolic
23490be798eSDimitry AndricThe option has no effect yet.
23590be798eSDimitry Andric.Ef
236bf64e879SBryan DreweryWhen set, these options are also in effect:
23790be798eSDimitry Andric.Pp
238bf64e879SBryan Drewery.Bl -inset -compact
239bf64e879SBryan Drewery.It Va WITHOUT_BZIP2_SUPPORT
240bf64e879SBryan Drewery(unless
241bf64e879SBryan Drewery.Va WITH_BZIP2_SUPPORT
242bf64e879SBryan Dreweryis set explicitly)
24390be798eSDimitry Andric.El
24490be798eSDimitry Andric.It Va WITHOUT_BZIP2_SUPPORT
24590be798eSDimitry AndricSet to build some programs without optional bzip2 support.
246fd1efedcSConrad Meyer.It Va WITHOUT_CALENDAR
247fd1efedcSConrad MeyerSet to not build
248fd1efedcSConrad Meyer.Xr calendar 1 .
24990be798eSDimitry Andric.It Va WITHOUT_CAPSICUM
25090be798eSDimitry AndricSet to not build Capsicum support into system programs.
251344e2bb9SEd MasteWhen set, it enforces these options:
252aced6942SBaptiste Daroussin.Pp
253aced6942SBaptiste Daroussin.Bl -item -compact
254aced6942SBaptiste Daroussin.It
255aced6942SBaptiste Daroussin.Va WITHOUT_CASPER
256aced6942SBaptiste Daroussin.El
257de19b521SDimitry Andric.It Va WITHOUT_CAROOT
258de19b521SDimitry AndricSet to not add the trusted certificates from the Mozilla NSS bundle to
259de19b521SDimitry Andricbase.
26090be798eSDimitry Andric.It Va WITHOUT_CASPER
26190be798eSDimitry AndricSet to not build Casper program and related libraries.
2621c01e4f8SBryan Drewery.It Va WITH_CCACHE_BUILD
2631c01e4f8SBryan DrewerySet to use
2641c01e4f8SBryan Drewery.Xr ccache 1
2651c01e4f8SBryan Dreweryfor the build.
2661c01e4f8SBryan DreweryNo configuration is required except to install the
2671c01e4f8SBryan Drewery.Sy devel/ccache
2681c01e4f8SBryan Drewerypackage.
269344e2bb9SEd MasteWhen using with
270344e2bb9SEd Maste.Xr distcc 1 ,
271344e2bb9SEd Masteset
2721c01e4f8SBryan Drewery.Sy CCACHE_PREFIX=/usr/local/bin/distcc .
2731c01e4f8SBryan DreweryThe default cache directory of
2741c01e4f8SBryan Drewery.Pa $HOME/.ccache
2751c01e4f8SBryan Drewerywill be used, which can be overridden by setting
2761c01e4f8SBryan Drewery.Sy CCACHE_DIR .
2771c01e4f8SBryan DreweryThe
2781c01e4f8SBryan Drewery.Sy CCACHE_COMPILERCHECK
2791c01e4f8SBryan Dreweryoption defaults to
2801c01e4f8SBryan Drewery.Sy content
2811c01e4f8SBryan Drewerywhen using the in-tree bootstrap compiler,
2821c01e4f8SBryan Dreweryand
2831c01e4f8SBryan Drewery.Sy mtime
2841c01e4f8SBryan Drewerywhen using an external compiler.
2851c01e4f8SBryan DreweryThe
2861c01e4f8SBryan Drewery.Sy CCACHE_CPP2
2871c01e4f8SBryan Dreweryoption is used for Clang but not GCC.
2881c01e4f8SBryan Drewery.Pp
2891c01e4f8SBryan DrewerySharing a cache between multiple work directories requires using a layout
2901c01e4f8SBryan Drewerysimilar to
2911c01e4f8SBryan Drewery.Pa /some/prefix/src
2921c01e4f8SBryan Drewery.Pa /some/prefix/obj
2931c01e4f8SBryan Dreweryand an environment such as:
2941c01e4f8SBryan Drewery.Bd -literal -offset indent
2951c01e4f8SBryan DreweryCCACHE_BASEDIR='${SRCTOP:H}' MAKEOBJDIRPREFIX='${SRCTOP:H}/obj'
2961c01e4f8SBryan Drewery.Ed
2971c01e4f8SBryan Drewery.Pp
2981c01e4f8SBryan DrewerySee
2991c01e4f8SBryan Drewery.Xr ccache 1
3001c01e4f8SBryan Dreweryfor more configuration options.
30193da8366SEnji Cooper.It Va WITHOUT_CCD
30293da8366SEnji CooperSet to not build
30393da8366SEnji Cooper.Xr geom_ccd 4
30493da8366SEnji Cooperand related utilities.
30590be798eSDimitry Andric.It Va WITHOUT_CDDL
30690be798eSDimitry AndricSet to not build code licensed under Sun's CDDL.
307344e2bb9SEd MasteWhen set, it enforces these options:
30890be798eSDimitry Andric.Pp
30990be798eSDimitry Andric.Bl -item -compact
31090be798eSDimitry Andric.It
31190be798eSDimitry Andric.Va WITHOUT_CTF
31290be798eSDimitry Andric.It
3131f7d1483SEd Maste.Va WITHOUT_LOADER_ZFS
3141f7d1483SEd Maste.It
31590be798eSDimitry Andric.Va WITHOUT_ZFS
31690be798eSDimitry Andric.El
31790be798eSDimitry Andric.It Va WITHOUT_CLANG
31890be798eSDimitry AndricSet to not build the Clang C/C++ compiler during the regular phase of the build.
319344e2bb9SEd MasteWhen set, it enforces these options:
32090be798eSDimitry Andric.Pp
32190be798eSDimitry Andric.Bl -item -compact
32290be798eSDimitry Andric.It
32390be798eSDimitry Andric.Va WITHOUT_CLANG_EXTRAS
32490be798eSDimitry Andric.It
32519267656SConrad Meyer.Va WITHOUT_CLANG_FORMAT
32619267656SConrad Meyer.It
32790be798eSDimitry Andric.Va WITHOUT_CLANG_FULL
3285b9c3654SEd Maste.It
3295b9c3654SEd Maste.Va WITHOUT_LLVM_COV
33090be798eSDimitry Andric.El
33190be798eSDimitry Andric.It Va WITHOUT_CLANG_BOOTSTRAP
332344e2bb9SEd MasteSet to not build the Clang C/C++ compiler during the bootstrap phase of
333344e2bb9SEd Mastethe build.
334344e2bb9SEd MasteTo be able to build the system, either gcc or clang bootstrap must be
335344e2bb9SEd Masteenabled unless an alternate compiler is provided via XCC.
33690be798eSDimitry Andric.It Va WITH_CLANG_EXTRAS
337b3a27c81SEd MasteSet to build additional clang and llvm tools, such as bugpoint and
338b3a27c81SEd Masteclang-format.
33919267656SConrad Meyer.It Va WITH_CLANG_FORMAT
34019267656SConrad MeyerSet to build clang-format.
34190be798eSDimitry Andric.It Va WITHOUT_CLANG_FULL
34290be798eSDimitry AndricSet to avoid building the ARCMigrate, Rewriter and StaticAnalyzer components of
34390be798eSDimitry Andricthe Clang C/C++ compiler.
34490be798eSDimitry Andric.It Va WITHOUT_CLANG_IS_CC
3458683408cSEd MasteDo not install links to the Clang C/C++ compiler as
34690be798eSDimitry Andric.Pa /usr/bin/cc ,
34790be798eSDimitry Andric.Pa /usr/bin/c++
34890be798eSDimitry Andricand
34990be798eSDimitry Andric.Pa /usr/bin/cpp .
350f83a16e0SEd Maste.It Va WITHOUT_CLEAN
351f83a16e0SEd MasteDo not clean before building world and/or kernel.
35290be798eSDimitry Andric.It Va WITHOUT_CPP
35390be798eSDimitry AndricSet to not build
35490be798eSDimitry Andric.Xr cpp 1 .
35590be798eSDimitry Andric.It Va WITHOUT_CROSS_COMPILER
35690be798eSDimitry AndricSet to not build any cross compiler in the cross-tools stage of buildworld.
357344e2bb9SEd MasteWhen compiling a different version of
35890be798eSDimitry Andric.Fx
359344e2bb9SEd Mastethan what is installed on the system, provide an alternate
36090be798eSDimitry Andriccompiler with XCC to ensure success.
361344e2bb9SEd MasteWhen compiling with an identical version of
36290be798eSDimitry Andric.Fx
36390be798eSDimitry Andricto the host, this option may be safely used.
36490be798eSDimitry AndricThis option may also be safe when the host version of
36590be798eSDimitry Andric.Fx
36690be798eSDimitry Andricis close to the sources being built, but all bets are off if there have
36790be798eSDimitry Andricbeen any changes to the toolchain between the versions.
368344e2bb9SEd MasteWhen set, it enforces these options:
36990be798eSDimitry Andric.Pp
37090be798eSDimitry Andric.Bl -item -compact
37190be798eSDimitry Andric.It
37290be798eSDimitry Andric.Va WITHOUT_CLANG_BOOTSTRAP
37390be798eSDimitry Andric.It
374f972b8a4SBryan Drewery.Va WITHOUT_ELFTOOLCHAIN_BOOTSTRAP
375f972b8a4SBryan Drewery.It
37628f52545SEd Maste.Va WITHOUT_LLD_BOOTSTRAP
37790be798eSDimitry Andric.El
37890be798eSDimitry Andric.It Va WITHOUT_CRYPT
37990be798eSDimitry AndricSet to not build any crypto code.
380344e2bb9SEd MasteWhen set, it enforces these options:
38190be798eSDimitry Andric.Pp
38290be798eSDimitry Andric.Bl -item -compact
38390be798eSDimitry Andric.It
3849f4e04c1SEd Maste.Va WITHOUT_DMAGENT
3859f4e04c1SEd Maste.It
38690be798eSDimitry Andric.Va WITHOUT_KERBEROS
38790be798eSDimitry Andric.It
388fb27d7aeSEd Maste.Va WITHOUT_KERBEROS_SUPPORT
389fb27d7aeSEd Maste.It
390da39b3adSEd Maste.Va WITHOUT_LDNS
391da39b3adSEd Maste.It
392da39b3adSEd Maste.Va WITHOUT_LDNS_UTILS
393da39b3adSEd Maste.It
39490be798eSDimitry Andric.Va WITHOUT_OPENSSH
39590be798eSDimitry Andric.It
39690be798eSDimitry Andric.Va WITHOUT_OPENSSL
397da39b3adSEd Maste.It
398116f7fccSEd Maste.Va WITHOUT_PKGBOOTSTRAP
399116f7fccSEd Maste.It
400116f7fccSEd Maste.Va WITHOUT_SVN
401116f7fccSEd Maste.It
402116f7fccSEd Maste.Va WITHOUT_SVNLITE
403116f7fccSEd Maste.It
404da39b3adSEd Maste.Va WITHOUT_UNBOUND
405116f7fccSEd Maste.It
406116f7fccSEd Maste.Va WITHOUT_WIRELESS
40790be798eSDimitry Andric.El
40890be798eSDimitry Andric.Pp
409344e2bb9SEd MasteWhen set, these options are also in effect:
41090be798eSDimitry Andric.Pp
41190be798eSDimitry Andric.Bl -inset -compact
41290be798eSDimitry Andric.It Va WITHOUT_GSSAPI
41390be798eSDimitry Andric(unless
41490be798eSDimitry Andric.Va WITH_GSSAPI
41590be798eSDimitry Andricis set explicitly)
41690be798eSDimitry Andric.El
41790be798eSDimitry Andric.It Va WITH_CTF
41890be798eSDimitry AndricSet to compile with CTF (Compact C Type Format) data.
41990be798eSDimitry AndricCTF data encapsulates a reduced form of debugging information
42090be798eSDimitry Andricsimilar to DWARF and the venerable stabs and is required for DTrace.
42154d8c5d5SBryan Drewery.It Va WITHOUT_CUSE
42254d8c5d5SBryan DrewerySet to not build CUSE-related programs and libraries.
4239cf76983SNavdeep Parhar.It Va WITHOUT_CXGBETOOL
4249cf76983SNavdeep ParharSet to not build
4259cf76983SNavdeep Parhar.Xr cxgbetool 8
4269cf76983SNavdeep Parhar.Pp
4279cf76983SNavdeep ParharThis is a default setting on
42873699177SEd Mastearm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
4299cf76983SNavdeep Parhar.It Va WITH_CXGBETOOL
4309cf76983SNavdeep ParharSet to build
4319cf76983SNavdeep Parhar.Xr cxgbetool 8
4329cf76983SNavdeep Parhar.Pp
4339cf76983SNavdeep ParharThis is a default setting on
434429932baSEd Masteamd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
43590be798eSDimitry Andric.It Va WITHOUT_CXX
43690be798eSDimitry AndricSet to not build
4374a62dc3aSBryan Drewery.Xr c++ 1
43890be798eSDimitry Andricand related libraries.
43990be798eSDimitry AndricIt will also prevent building of
44090be798eSDimitry Andric.Xr gperf 1
44190be798eSDimitry Andricand
44290be798eSDimitry Andric.Xr devd 8 .
443344e2bb9SEd MasteWhen set, it enforces these options:
44490be798eSDimitry Andric.Pp
44590be798eSDimitry Andric.Bl -item -compact
44690be798eSDimitry Andric.It
44790be798eSDimitry Andric.Va WITHOUT_CLANG
44890be798eSDimitry Andric.It
44990be798eSDimitry Andric.Va WITHOUT_CLANG_EXTRAS
45090be798eSDimitry Andric.It
45119267656SConrad Meyer.Va WITHOUT_CLANG_FORMAT
45219267656SConrad Meyer.It
45390be798eSDimitry Andric.Va WITHOUT_CLANG_FULL
45490be798eSDimitry Andric.It
455051ea717SEd Maste.Va WITHOUT_DTRACE_TESTS
456051ea717SEd Maste.It
457770379b9SEd Maste.Va WITHOUT_GOOGLETEST
458770379b9SEd Maste.It
4595b9c3654SEd Maste.Va WITHOUT_LLVM_COV
4605b9c3654SEd Maste.It
461051ea717SEd Maste.Va WITHOUT_TESTS
46290be798eSDimitry Andric.El
4634a5e4462SEd Maste.It Va WITHOUT_DEBUG_FILES
4644a5e4462SEd MasteSet to avoid building or installing standalone debug files for each
4654a5e4462SEd Masteexecutable binary and shared library.
466cc68b6e5SEd Maste.It Va WITHOUT_DIALOG
467344e2bb9SEd MasteSet to not build
468344e2bb9SEd Maste.Xr dialog 1 ,
469344e2bb9SEd Maste.Xr dialog 3 ,
470344e2bb9SEd Maste.Xr dpv 1 ,
471344e2bb9SEd Masteand
472344e2bb9SEd Maste.Xr dpv 3 .
473344e2bb9SEd MasteWhen set, it enforces these options:
474cc68b6e5SEd Maste.Pp
475cc68b6e5SEd Maste.Bl -item -compact
476cc68b6e5SEd Maste.It
477cc68b6e5SEd Maste.Va WITHOUT_BSDINSTALL
478cc68b6e5SEd Maste.El
47990be798eSDimitry Andric.It Va WITHOUT_DICT
48090be798eSDimitry AndricSet to not build the Webster dictionary files.
48132b5dc9aSSimon J. Gerraty.It Va WITH_DIRDEPS_BUILD
482be894451SBryan DreweryThis is an experimental build system.
48332b5dc9aSSimon J. GerratyFor details see
48432b5dc9aSSimon J. Gerratyhttp://www.crufty.net/sjg/docs/freebsd-meta-mode.htm.
485be894451SBryan DreweryBuild commands can be seen from the top-level with:
486be894451SBryan Drewery.Dl make show-valid-targets
48732b5dc9aSSimon J. GerratyThe build is driven by dirdeps.mk using
48832b5dc9aSSimon J. Gerraty.Va DIRDEPS
48932b5dc9aSSimon J. Gerratystored in
49032b5dc9aSSimon J. GerratyMakefile.depend files found in each directory.
49132b5dc9aSSimon J. Gerraty.Pp
49232b5dc9aSSimon J. GerratyThe build can be started from anywhere, and behaves the same.
49332b5dc9aSSimon J. GerratyThe initial instance of
49432b5dc9aSSimon J. Gerraty.Xr make 1
49532b5dc9aSSimon J. Gerratyrecursively reads
49632b5dc9aSSimon J. Gerraty.Va DIRDEPS
497344e2bb9SEd Mastefrom
498344e2bb9SEd Maste.Pa Makefile.depend ,
49932b5dc9aSSimon J. Gerratycomputing a graph of tree dependencies from the current origin.
50032b5dc9aSSimon J. GerratySetting
50132b5dc9aSSimon J. Gerraty.Va NO_DIRDEPS
502344e2bb9SEd Masteskips checking dirdep dependencies and will only build in the current
5037f76a95cSBryan Dreweryand child directories.
5047f76a95cSBryan Drewery.Va NO_DIRDEPS_BELOW
505344e2bb9SEd Masteskips building any dirdeps and only build the current directory.
50632b5dc9aSSimon J. Gerraty.Pp
507be894451SBryan DreweryThis also utilizes the
508be894451SBryan Drewery.Va WITH_META_MODE
509be894451SBryan Drewerylogic for incremental builds.
51032b5dc9aSSimon J. Gerraty.Pp
511344e2bb9SEd MasteThe build hides commands executed unless
51232b5dc9aSSimon J. Gerraty.Va NO_SILENT
51332b5dc9aSSimon J. Gerratyis defined.
51432b5dc9aSSimon J. Gerraty.Pp
515be894451SBryan DreweryNote that there is currently no mass install feature for this.
516be894451SBryan Drewery.Pp
517344e2bb9SEd MasteWhen set, it enforces these options:
51832b5dc9aSSimon J. Gerraty.Pp
51932b5dc9aSSimon J. Gerraty.Bl -item -compact
52032b5dc9aSSimon J. Gerraty.It
52132b5dc9aSSimon J. Gerraty.Va WITH_INSTALL_AS_USER
52232b5dc9aSSimon J. Gerraty.El
52332b5dc9aSSimon J. Gerraty.Pp
524344e2bb9SEd MasteWhen set, these options are also in effect:
52532b5dc9aSSimon J. Gerraty.Pp
52632b5dc9aSSimon J. Gerraty.Bl -inset -compact
52726b79d5bSHajimu UMEMOTO.It Va WITH_META_MODE
52826b79d5bSHajimu UMEMOTO(unless
52926b79d5bSHajimu UMEMOTO.Va WITHOUT_META_MODE
53026b79d5bSHajimu UMEMOTOis set explicitly)
53132b5dc9aSSimon J. Gerraty.It Va WITH_STAGING
53232b5dc9aSSimon J. Gerraty(unless
53332b5dc9aSSimon J. Gerraty.Va WITHOUT_STAGING
53432b5dc9aSSimon J. Gerratyis set explicitly)
53532b5dc9aSSimon J. Gerraty.It Va WITH_STAGING_MAN
53632b5dc9aSSimon J. Gerraty(unless
53732b5dc9aSSimon J. Gerraty.Va WITHOUT_STAGING_MAN
53832b5dc9aSSimon J. Gerratyis set explicitly)
53932b5dc9aSSimon J. Gerraty.It Va WITH_STAGING_PROG
54032b5dc9aSSimon J. Gerraty(unless
54132b5dc9aSSimon J. Gerraty.Va WITHOUT_STAGING_PROG
54232b5dc9aSSimon J. Gerratyis set explicitly)
54332b5dc9aSSimon J. Gerraty.It Va WITH_SYSROOT
54432b5dc9aSSimon J. Gerraty(unless
54532b5dc9aSSimon J. Gerraty.Va WITHOUT_SYSROOT
54632b5dc9aSSimon J. Gerratyis set explicitly)
54732b5dc9aSSimon J. Gerraty.El
54832b5dc9aSSimon J. Gerraty.Pp
54932b5dc9aSSimon J. GerratyThis must be set in the environment, make command line, or
55032b5dc9aSSimon J. Gerraty.Pa /etc/src-env.conf ,
55132b5dc9aSSimon J. Gerratynot
55232b5dc9aSSimon J. Gerraty.Pa /etc/src.conf .
553cc2520d2SSimon J. Gerraty.It Va WITH_DIRDEPS_CACHE
554cc2520d2SSimon J. GerratyCache result of dirdeps.mk which can save significant time
555cc2520d2SSimon J. Gerratyfor subsequent builds.
556cc2520d2SSimon J. GerratyDepends on
55732b5dc9aSSimon J. Gerraty.Va WITH_DIRDEPS_BUILD .
5580a70ef02SBryan Drewery.Pp
559ba852870SBryan DreweryThis must be set in the environment, make command line, or
5600a70ef02SBryan Drewery.Pa /etc/src-env.conf ,
5610a70ef02SBryan Drewerynot
5620a70ef02SBryan Drewery.Pa /etc/src.conf .
56390be798eSDimitry Andric.It Va WITHOUT_DMAGENT
564344e2bb9SEd MasteSet to not build dma Mail Transport Agent.
56590be798eSDimitry Andric.It Va WITHOUT_DOCCOMPRESS
566344e2bb9SEd MasteSet to not install compressed system documentation.
56790be798eSDimitry AndricOnly the uncompressed version will be installed.
56816f3fdf5SMark Johnston.It Va WITH_DTRACE_TESTS
56916f3fdf5SMark JohnstonSet to build and install the DTrace test suite in
57016f3fdf5SMark Johnston.Pa /usr/tests/cddl/usr.sbin/dtrace .
57116f3fdf5SMark JohnstonThis test suite is considered experimental on architectures other than
57216f3fdf5SMark Johnstonamd64/amd64 and running it may cause system instability.
57390be798eSDimitry Andric.It Va WITHOUT_DYNAMICROOT
57490be798eSDimitry AndricSet this if you do not want to link
57590be798eSDimitry Andric.Pa /bin
57690be798eSDimitry Andricand
57790be798eSDimitry Andric.Pa /sbin
57890be798eSDimitry Andricdynamically.
57993da8366SEnji Cooper.It Va WITHOUT_EE
58093da8366SEnji CooperSet to not build and install
58193da8366SEnji Cooper.Xr edit 1 ,
58293da8366SEnji Cooper.Xr ee 1 ,
58393da8366SEnji Cooperand related programs.
5840cd582c8SEnji Cooper.It Va WITHOUT_EFI
5850cd582c8SEnji CooperSet not to build
5860cd582c8SEnji Cooper.Xr efivar 3
5870cd582c8SEnji Cooperand
5880cd582c8SEnji Cooper.Xr efivar 8 .
5890cd582c8SEnji Cooper.Pp
590344e2bb9SEd MasteThis is a default setting on
591d3112319SMitchell Hornemips/mips, mips/mips64, powerpc/powerpc and powerpc/powerpc64.
5920cd582c8SEnji Cooper.It Va WITH_EFI
5930cd582c8SEnji CooperSet to build
5940cd582c8SEnji Cooper.Xr efivar 3
5950cd582c8SEnji Cooperand
5960cd582c8SEnji Cooper.Xr efivar 8 .
5970cd582c8SEnji Cooper.Pp
598344e2bb9SEd MasteThis is a default setting on
599d3112319SMitchell Horneamd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, riscv/riscv64 and riscv/riscv64sf.
6005977355fSBryan Drewery.It Va WITHOUT_ELFTOOLCHAIN_BOOTSTRAP
6015977355fSBryan DrewerySet to not build ELF Tool Chain tools
6025977355fSBryan Drewery(addr2line, nm, size, strings and strip)
6035977355fSBryan Dreweryas part of the bootstrap process.
6045977355fSBryan Drewery.Bf -symbolic
6055977355fSBryan DreweryAn alternate bootstrap tool chain must be provided.
6065977355fSBryan Drewery.Ef
60790be798eSDimitry Andric.It Va WITHOUT_EXAMPLES
60890be798eSDimitry AndricSet to avoid installing examples to
60990be798eSDimitry Andric.Pa /usr/share/examples/ .
61043f75d57SBjoern A. Zeeb.It Va WITH_EXPERIMENTAL
61143f75d57SBjoern A. ZeebSet to include experimental features in the build.
612d5a2667bSJonathan T. Looney.It Va WITH_EXTRA_TCP_STACKS
613d5a2667bSJonathan T. LooneySet to build extra TCP stack modules.
61490be798eSDimitry Andric.It Va WITHOUT_FDT
61590be798eSDimitry AndricSet to not build Flattened Device Tree support as part of the base system.
61690be798eSDimitry AndricThis includes the device tree compiler (dtc) and libfdt support library.
6170e0e9604SEnji Cooper.It Va WITHOUT_FILE
6180e0e9604SEnji CooperSet to not build
6190e0e9604SEnji Cooper.Xr file 1
6200e0e9604SEnji Cooperand related programs.
621770379b9SEd MasteWhen set, it enforces these options:
622770379b9SEd Maste.Pp
623770379b9SEd Maste.Bl -item -compact
624770379b9SEd Maste.It
625770379b9SEd Maste.Va WITHOUT_SVNLITE
626770379b9SEd Maste.El
6270e0e9604SEnji Cooper.It Va WITHOUT_FINGER
6280e0e9604SEnji CooperSet to not build or install
6290e0e9604SEnji Cooper.Xr finger 1
6300e0e9604SEnji Cooperand
6310e0e9604SEnji Cooper.Xr fingerd 8 .
63290be798eSDimitry Andric.It Va WITHOUT_FLOPPY
63390be798eSDimitry AndricSet to not build or install programs
63490be798eSDimitry Andricfor operating floppy disk driver.
63590be798eSDimitry Andric.It Va WITHOUT_FMTREE
63690be798eSDimitry AndricSet to not build and install
63790be798eSDimitry Andric.Pa /usr/sbin/fmtree .
638a0f6423bSEd Maste.It Va WITHOUT_FORMAT_EXTENSIONS
639a0f6423bSEd MasteSet to not enable
640a0f6423bSEd Maste.Fl fformat-extensions
641a0f6423bSEd Mastewhen compiling the kernel.
642a0f6423bSEd MasteAlso disables all format checking.
64390be798eSDimitry Andric.It Va WITHOUT_FORTH
64490be798eSDimitry AndricSet to build bootloaders without Forth support.
64590be798eSDimitry Andric.It Va WITHOUT_FP_LIBC
64690be798eSDimitry AndricSet to build
64790be798eSDimitry Andric.Nm libc
64890be798eSDimitry Andricwithout floating-point support.
64990be798eSDimitry Andric.It Va WITHOUT_FREEBSD_UPDATE
65090be798eSDimitry AndricSet to not build
65190be798eSDimitry Andric.Xr freebsd-update 8 .
6520e0e9604SEnji Cooper.It Va WITHOUT_FTP
6530e0e9604SEnji CooperSet to not build or install
6540e0e9604SEnji Cooper.Xr ftp 1
6550e0e9604SEnji Cooperand
6560e0e9604SEnji Cooper.Xr ftpd 8 .
65790be798eSDimitry Andric.It Va WITHOUT_GAMES
65890be798eSDimitry AndricSet to not build games.
65990be798eSDimitry Andric.It Va WITHOUT_GDB
66090be798eSDimitry AndricSet to not build
66190be798eSDimitry Andric.Xr gdb 1 .
6625be09b10SEd Maste.Pp
663344e2bb9SEd MasteThis is a default setting on
6644cee74dfSEd Mastearm64/aarch64, riscv/riscv64 and riscv/riscv64sf.
6655977355fSBryan Drewery.It Va WITH_GDB
6665977355fSBryan DrewerySet to build
6675977355fSBryan Drewery.Xr gdb 1 .
6685977355fSBryan Drewery.Pp
669344e2bb9SEd MasteThis is a default setting on
67073699177SEd Masteamd64/amd64, arm/armv6, arm/armv7, i386/i386, mips/mips, mips/mips64, powerpc/powerpc and powerpc/powerpc64.
671160ea953SStefan Eßer.It Va WITHOUT_GH_BC
67268c8c1a7SStefan EßerSet to not build and install the enhanced
67368c8c1a7SStefan Eßer.Xr bc 1
674160ea953SStefan Eßerand
67568c8c1a7SStefan Eßer.Xr dc 1
676160ea953SStefan Eßerprograms instead of the traditional FreeBSD versions.
67736e8c7bbSEd Maste.It Va WITHOUT_GNU_DIFF
67836e8c7bbSEd MasteSet to not build GNU
67936e8c7bbSEd Maste.Xr diff3 1 .
68036e8c7bbSEd Maste.It Va WITHOUT_GNU_GREP
68136e8c7bbSEd MasteSet to not build GNU
68236e8c7bbSEd Maste.Xr grep 1 .
683e9e768f7SEd Maste.It Va WITH_GNU_GREP_COMPAT
684e9e768f7SEd MasteSet this option to include GNU extensions in
685e9e768f7SEd Maste.Xr bsdgrep 1
686e9e768f7SEd Masteby linking against libgnuregex.
6877840b63aSEnji Cooper.It Va WITHOUT_GOOGLETEST
6887840b63aSEnji CooperSet to neither build nor install
6897840b63aSEnji Cooper.Lb libgmock ,
6907840b63aSEnji Cooper.Lb libgtest ,
6917840b63aSEnji Cooperand dependent tests.
69245181e6dSEd Maste.Pp
69345181e6dSEd MasteThis is a default setting on
69473699177SEd Mastemips/mips and mips/mips64.
69545181e6dSEd Maste.It Va WITH_GOOGLETEST
69645181e6dSEd MasteSet to build and install
69745181e6dSEd Maste.Lb libgmock ,
69845181e6dSEd Maste.Lb libgtest ,
69945181e6dSEd Masteand dependent tests.
70045181e6dSEd Maste.Pp
70145181e6dSEd MasteThis is a default setting on
70245181e6dSEd Masteamd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
70390be798eSDimitry Andric.It Va WITHOUT_GPIO
70490be798eSDimitry AndricSet to not build
70590be798eSDimitry Andric.Xr gpioctl 8
70690be798eSDimitry Andricas part of the base system.
70790be798eSDimitry Andric.It Va WITHOUT_GSSAPI
70890be798eSDimitry AndricSet to not build libgssapi.
70961940879SEnji Cooper.It Va WITHOUT_HAST
71061940879SEnji CooperSet to not build
71161940879SEnji Cooper.Xr hastd 8
71261940879SEnji Cooperand related utilities.
71390be798eSDimitry Andric.It Va WITH_HESIOD
71490be798eSDimitry AndricSet to build Hesiod support.
71590be798eSDimitry Andric.It Va WITHOUT_HTML
71690be798eSDimitry AndricSet to not build HTML docs.
7172c4b4abcSXin LI.It Va WITHOUT_HYPERV
7182c4b4abcSXin LISet to not build or install HyperV utilities.
7190543ade3SBrooks Davis.Pp
7200543ade3SBrooks DavisThis is a default setting on
72173699177SEd Mastearm/armv6, arm/armv7, arm64/aarch64, mips/mips, mips/mips64, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
7220543ade3SBrooks Davis.It Va WITH_HYPERV
7230543ade3SBrooks DavisSet to build or install HyperV utilities.
7240543ade3SBrooks Davis.Pp
7250543ade3SBrooks DavisThis is a default setting on
7260543ade3SBrooks Davisamd64/amd64 and i386/i386.
72790be798eSDimitry Andric.It Va WITHOUT_ICONV
72890be798eSDimitry AndricSet to not build iconv as part of libc.
729c5d09a87SGlen Barber.It Va WITHOUT_INCLUDES
730c5d09a87SGlen BarberSet to not install header files.
731c5d09a87SGlen BarberThis option used to be spelled
732c5d09a87SGlen Barber.Va NO_INCS .
733c5d09a87SGlen Barber.Bf -symbolic
734c5d09a87SGlen BarberThe option does not work for build targets.
735c5d09a87SGlen Barber.Ef
73690be798eSDimitry Andric.It Va WITHOUT_INET
73790be798eSDimitry AndricSet to not build programs and libraries related to IPv4 networking.
738344e2bb9SEd MasteWhen set, it enforces these options:
73990be798eSDimitry Andric.Pp
74090be798eSDimitry Andric.Bl -item -compact
74190be798eSDimitry Andric.It
74290be798eSDimitry Andric.Va WITHOUT_INET_SUPPORT
74390be798eSDimitry Andric.El
74490be798eSDimitry Andric.It Va WITHOUT_INET6
74590be798eSDimitry AndricSet to not build
74690be798eSDimitry Andricprograms and libraries related to IPv6 networking.
747344e2bb9SEd MasteWhen set, it enforces these options:
74890be798eSDimitry Andric.Pp
74990be798eSDimitry Andric.Bl -item -compact
75090be798eSDimitry Andric.It
75190be798eSDimitry Andric.Va WITHOUT_INET6_SUPPORT
75290be798eSDimitry Andric.El
75390be798eSDimitry Andric.It Va WITHOUT_INET6_SUPPORT
75490be798eSDimitry AndricSet to build libraries, programs, and kernel modules without IPv6 support.
7550e0e9604SEnji Cooper.It Va WITHOUT_INETD
7560e0e9604SEnji CooperSet to not build
7570e0e9604SEnji Cooper.Xr inetd 8 .
75890be798eSDimitry Andric.It Va WITHOUT_INET_SUPPORT
75990be798eSDimitry AndricSet to build libraries, programs, and kernel modules without IPv4 support.
760*b013518aSEd Maste.It Va WITH_INIT_ALL_PATTERN
761*b013518aSEd MasteSet to build the base system or kernel with stack variables initialized to
762*b013518aSEd Maste.Pq compiler defined
763*b013518aSEd Mastedebugging patterns on function entry.
764*b013518aSEd MasteThis option requires the clang compiler.
765*b013518aSEd Maste.It Va WITH_INIT_ALL_ZERO
766*b013518aSEd MasteSet to build the base system or kernel with stack variables initialized
767*b013518aSEd Masteto zero on function entry.
768*b013518aSEd MasteThis option requires that the clang compiler be used.
76990be798eSDimitry Andric.It Va WITHOUT_INSTALLLIB
770344e2bb9SEd MasteSet this to not install optional libraries.
771344e2bb9SEd MasteFor example, when creating a
77290be798eSDimitry Andric.Xr nanobsd 8
77390be798eSDimitry Andricimage.
774f79bedf5SBryan Drewery.Bf -symbolic
775f79bedf5SBryan DreweryThe option does not work for build targets.
776f79bedf5SBryan Drewery.Ef
77790be798eSDimitry Andric.It Va WITH_INSTALL_AS_USER
77890be798eSDimitry AndricSet to make install targets succeed for non-root users by installing
77990be798eSDimitry Andricfiles with owner and group attributes set to that of the user running
78090be798eSDimitry Andricthe
78190be798eSDimitry Andric.Xr make 1
78290be798eSDimitry Andriccommand.
783344e2bb9SEd MasteThe user still must set the
78490be798eSDimitry Andric.Va DESTDIR
78590be798eSDimitry Andricvariable to point to a directory where the user has write permissions.
78690be798eSDimitry Andric.It Va WITHOUT_IPFILTER
78790be798eSDimitry AndricSet to not build IP Filter package.
78890be798eSDimitry Andric.It Va WITHOUT_IPFW
78990be798eSDimitry AndricSet to not build IPFW tools.
79088342134SEnji Cooper.It Va WITHOUT_IPSEC_SUPPORT
79188342134SEnji CooperSet to not build the kernel with
79288342134SEnji Cooper.Xr ipsec 4
79388342134SEnji Coopersupport.
79488342134SEnji CooperThis option is needed for
79588342134SEnji Cooper.Xr ipsec 4
79688342134SEnji Cooperand
79788342134SEnji Cooper.Xr tcpmd5 4 .
79893da8366SEnji Cooper.It Va WITHOUT_ISCSI
79993da8366SEnji CooperSet to not build
80026d6bbfaSSevan Janiyan.Xr iscsid 8
80193da8366SEnji Cooperand related utilities.
80290be798eSDimitry Andric.It Va WITHOUT_JAIL
80390be798eSDimitry AndricSet to not build tools for the support of jails; e.g.,
80490be798eSDimitry Andric.Xr jail 8 .
80590be798eSDimitry Andric.It Va WITHOUT_KDUMP
80690be798eSDimitry AndricSet to not build
80790be798eSDimitry Andric.Xr kdump 1
80890be798eSDimitry Andricand
80990be798eSDimitry Andric.Xr truss 1 .
81090be798eSDimitry Andric.It Va WITHOUT_KERBEROS
811344e2bb9SEd MasteSet this to not build Kerberos 5 (KTH Heimdal).
812344e2bb9SEd MasteWhen set, these options are also in effect:
81390be798eSDimitry Andric.Pp
81490be798eSDimitry Andric.Bl -inset -compact
81590be798eSDimitry Andric.It Va WITHOUT_GSSAPI
81690be798eSDimitry Andric(unless
81790be798eSDimitry Andric.Va WITH_GSSAPI
81890be798eSDimitry Andricis set explicitly)
819bf64e879SBryan Drewery.It Va WITHOUT_KERBEROS_SUPPORT
820bf64e879SBryan Drewery(unless
821bf64e879SBryan Drewery.Va WITH_KERBEROS_SUPPORT
822bf64e879SBryan Dreweryis set explicitly)
82390be798eSDimitry Andric.El
82490be798eSDimitry Andric.It Va WITHOUT_KERBEROS_SUPPORT
82590be798eSDimitry AndricSet to build some programs without Kerberos support, like
82690be798eSDimitry Andric.Xr ssh 1 ,
82790be798eSDimitry Andric.Xr telnet 1 ,
82890be798eSDimitry Andric.Xr sshd 8 ,
82990be798eSDimitry Andricand
83090be798eSDimitry Andric.Xr telnetd 8 .
8316f7527f0SEd Maste.It Va WITH_KERNEL_RETPOLINE
8326f7527f0SEd MasteSet to enable the "retpoline" mitigation for CVE-2017-5715 in the kernel
8336f7527f0SEd Mastebuild.
834a0f6423bSEd Maste.It Va WITHOUT_KERNEL_SYMBOLS
835a0f6423bSEd MasteSet to not install kernel symbol files.
836a0f6423bSEd Maste.Bf -symbolic
837a0f6423bSEd MasteThis option is recommended for those people who have small root partitions.
838a0f6423bSEd Maste.Ef
83990be798eSDimitry Andric.It Va WITHOUT_KVM
84090be798eSDimitry AndricSet to not build the
84190be798eSDimitry Andric.Nm libkvm
84290be798eSDimitry Andriclibrary as a part of the base system.
84390be798eSDimitry Andric.Bf -symbolic
84490be798eSDimitry AndricThe option has no effect yet.
84590be798eSDimitry Andric.Ef
846bf64e879SBryan DreweryWhen set, these options are also in effect:
84790be798eSDimitry Andric.Pp
848bf64e879SBryan Drewery.Bl -inset -compact
849bf64e879SBryan Drewery.It Va WITHOUT_KVM_SUPPORT
850bf64e879SBryan Drewery(unless
851bf64e879SBryan Drewery.Va WITH_KVM_SUPPORT
852bf64e879SBryan Dreweryis set explicitly)
85390be798eSDimitry Andric.El
85490be798eSDimitry Andric.It Va WITHOUT_KVM_SUPPORT
85590be798eSDimitry AndricSet to build some programs without optional
85690be798eSDimitry Andric.Nm libkvm
85790be798eSDimitry Andricsupport.
85890be798eSDimitry Andric.It Va WITHOUT_LDNS
85990be798eSDimitry AndricSetting this variable will prevent the LDNS library from being built.
860344e2bb9SEd MasteWhen set, it enforces these options:
86190be798eSDimitry Andric.Pp
86290be798eSDimitry Andric.Bl -item -compact
86390be798eSDimitry Andric.It
86490be798eSDimitry Andric.Va WITHOUT_LDNS_UTILS
86590be798eSDimitry Andric.It
86690be798eSDimitry Andric.Va WITHOUT_UNBOUND
86790be798eSDimitry Andric.El
86890be798eSDimitry Andric.It Va WITHOUT_LDNS_UTILS
86990be798eSDimitry AndricSetting this variable will prevent building the LDNS utilities
87090be798eSDimitry Andric.Xr drill 1
87190be798eSDimitry Andricand
87290be798eSDimitry Andric.Xr host 1 .
87390be798eSDimitry Andric.It Va WITHOUT_LEGACY_CONSOLE
87490be798eSDimitry AndricSet to not build programs that support a legacy PC console; e.g.,
87523a6b49aSEdward Tomasz Napierala.Xr kbdcontrol 1
87690be798eSDimitry Andricand
87723a6b49aSEdward Tomasz Napierala.Xr vidcontrol 1 .
87890be798eSDimitry Andric.It Va WITHOUT_LIB32
879c5d09a87SGlen BarberOn 64-bit platforms, set to not build 32-bit library set and a
88090be798eSDimitry Andric.Nm ld-elf32.so.1
88190be798eSDimitry Andricruntime linker.
882f3cdc622SEd Maste.Pp
883f3cdc622SEd MasteThis is a default setting on
88473699177SEd Mastearm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
88590be798eSDimitry Andric.It Va WITHOUT_LIBCPLUSPLUS
88690be798eSDimitry AndricSet to avoid building libcxxrt and libc++.
88790be798eSDimitry Andric.It Va WITHOUT_LIBPTHREAD
88890be798eSDimitry AndricSet to not build the
88990be798eSDimitry Andric.Nm libpthread
89090be798eSDimitry Andricproviding library,
89190be798eSDimitry Andric.Nm libthr .
892344e2bb9SEd MasteWhen set, it enforces these options:
89390be798eSDimitry Andric.Pp
89490be798eSDimitry Andric.Bl -item -compact
89590be798eSDimitry Andric.It
89690be798eSDimitry Andric.Va WITHOUT_LIBTHR
89790be798eSDimitry Andric.El
8988a7c8ae4SBryan Drewery.It Va WITH_LIBSOFT
8998a7c8ae4SBryan DreweryOn armv6 only, set to enable soft float ABI compatibility libraries.
9008a7c8ae4SBryan DreweryThis option is for transitioning to the new hard float ABI.
90190be798eSDimitry Andric.It Va WITHOUT_LIBTHR
90290be798eSDimitry AndricSet to not build the
90390be798eSDimitry Andric.Nm libthr
90490be798eSDimitry Andric(1:1 threading)
90590be798eSDimitry Andriclibrary.
90636e8c7bbSEd Maste.It Va WITHOUT_LLD
90736e8c7bbSEd MasteSet to not build LLVM's lld linker.
9081500eb21SEd Maste.It Va WITHOUT_LLDB
9091500eb21SEd MasteSet to not build the LLDB debugger.
9101500eb21SEd Maste.Pp
911344e2bb9SEd MasteThis is a default setting on
91273699177SEd Mastearm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
91390be798eSDimitry Andric.It Va WITH_LLDB
91490be798eSDimitry AndricSet to build the LLDB debugger.
9151500eb21SEd Maste.Pp
916344e2bb9SEd MasteThis is a default setting on
917e5259506SEnji Cooperamd64/amd64, arm64/aarch64 and i386/i386.
9186c2b7edaSEd Maste.It Va WITHOUT_LLD_BOOTSTRAP
9196c2b7edaSEd MasteSet to not build the LLD linker during the bootstrap phase of
9206c2b7edaSEd Mastethe build.
9216c2b7edaSEd MasteTo be able to build the system, either Binutils or LLD bootstrap must be
9226c2b7edaSEd Masteenabled unless an alternate linker is provided via XLD.
923661cf9b6SYoshihiro Takahashi.It Va WITHOUT_LLD_IS_LD
92436e8c7bbSEd MasteSet to use GNU binutils ld as the system linker, instead of LLVM's LLD.
925a870eaa4SKyle Evans.It Va WITHOUT_LLVM_ASSERTIONS
926a870eaa4SKyle EvansSet to disable debugging assertions in LLVM.
9275b9c3654SEd Maste.It Va WITHOUT_LLVM_COV
9285b9c3654SEd MasteSet to not build the
9295b9c3654SEd Maste.Xr llvm-cov 1
9305b9c3654SEd Mastetool.
9319fa94e1cSDimitry Andric.It Va WITHOUT_LLVM_CXXFILT
9329fa94e1cSDimitry AndricInstall ELF Tool Chain's cxxfilt as c++filt, instead of LLVM's llvm-cxxfilt.
933cbafd263SDimitry Andric.It Va WITHOUT_LLVM_TARGET_AARCH64
934cbafd263SDimitry AndricSet to not build LLVM target support for AArch64.
935bf64e879SBryan DreweryThe
936bf64e879SBryan Drewery.Va LLVM_TARGET_ALL
937bf64e879SBryan Dreweryoption should be used rather than this in most cases.
938bf64e879SBryan Drewery.It Va WITHOUT_LLVM_TARGET_ALL
939bf64e879SBryan DrewerySet to only build the required LLVM target support.
940bf64e879SBryan DreweryThis option is preferred to specific target support options.
941bf64e879SBryan DreweryWhen set, these options are also in effect:
942bf64e879SBryan Drewery.Pp
943bf64e879SBryan Drewery.Bl -inset -compact
944bf64e879SBryan Drewery.It Va WITHOUT_LLVM_TARGET_AARCH64
945bf64e879SBryan Drewery(unless
946bf64e879SBryan Drewery.Va WITH_LLVM_TARGET_AARCH64
947bf64e879SBryan Dreweryis set explicitly)
948bf64e879SBryan Drewery.It Va WITHOUT_LLVM_TARGET_ARM
949bf64e879SBryan Drewery(unless
950bf64e879SBryan Drewery.Va WITH_LLVM_TARGET_ARM
951bf64e879SBryan Dreweryis set explicitly)
952bf64e879SBryan Drewery.It Va WITHOUT_LLVM_TARGET_MIPS
953bf64e879SBryan Drewery(unless
954bf64e879SBryan Drewery.Va WITH_LLVM_TARGET_MIPS
955bf64e879SBryan Dreweryis set explicitly)
956bf64e879SBryan Drewery.It Va WITHOUT_LLVM_TARGET_POWERPC
957bf64e879SBryan Drewery(unless
958bf64e879SBryan Drewery.Va WITH_LLVM_TARGET_POWERPC
959bf64e879SBryan Dreweryis set explicitly)
960f3cdc622SEd Maste.It Va WITHOUT_LLVM_TARGET_RISCV
961f3cdc622SEd Maste(unless
962f3cdc622SEd Maste.Va WITH_LLVM_TARGET_RISCV
963f3cdc622SEd Masteis set explicitly)
964bf64e879SBryan Drewery.El
965cbafd263SDimitry Andric.It Va WITHOUT_LLVM_TARGET_ARM
966cbafd263SDimitry AndricSet to not build LLVM target support for ARM.
967bf64e879SBryan DreweryThe
968bf64e879SBryan Drewery.Va LLVM_TARGET_ALL
969bf64e879SBryan Dreweryoption should be used rather than this in most cases.
97089edb881SDimitry Andric.It Va WITH_LLVM_TARGET_BPF
97189edb881SDimitry AndricSet to build LLVM target support for BPF.
97289edb881SDimitry AndricThe
97389edb881SDimitry Andric.Va LLVM_TARGET_ALL
97489edb881SDimitry Andricoption should be used rather than this in most cases.
975cbafd263SDimitry Andric.It Va WITHOUT_LLVM_TARGET_MIPS
976cbafd263SDimitry AndricSet to not build LLVM target support for MIPS.
977bf64e879SBryan DreweryThe
978bf64e879SBryan Drewery.Va LLVM_TARGET_ALL
979bf64e879SBryan Dreweryoption should be used rather than this in most cases.
980cbafd263SDimitry Andric.It Va WITHOUT_LLVM_TARGET_POWERPC
981cbafd263SDimitry AndricSet to not build LLVM target support for PowerPC.
982bf64e879SBryan DreweryThe
983bf64e879SBryan Drewery.Va LLVM_TARGET_ALL
984bf64e879SBryan Dreweryoption should be used rather than this in most cases.
985f3cdc622SEd Maste.It Va WITHOUT_LLVM_TARGET_RISCV
986f3cdc622SEd MasteSet to not build LLVM target support for RISC-V.
987f3cdc622SEd MasteThe
988f3cdc622SEd Maste.Va LLVM_TARGET_ALL
989f3cdc622SEd Masteoption should be used rather than this in most cases.
990cbafd263SDimitry Andric.It Va WITHOUT_LLVM_TARGET_X86
991cbafd263SDimitry AndricSet to not build LLVM target support for X86.
992bf64e879SBryan DreweryThe
993bf64e879SBryan Drewery.Va LLVM_TARGET_ALL
994bf64e879SBryan Dreweryoption should be used rather than this in most cases.
995bfdf8aa9SJohn Baldwin.It Va WITH_LOADER_EFI_SECUREBOOT
996bfdf8aa9SJohn BaldwinEnable building
997bfdf8aa9SJohn Baldwin.Xr loader 8
998bfdf8aa9SJohn Baldwinwith support for verification based on certificates obtained from UEFI.
999bfdf8aa9SJohn Baldwin.Pp
1000782df3edSEd Maste.It Va WITH_LOADER_FIREWIRE
1001ea91248cSLi-Wen HsuEnable firewire support in /boot/loader on x86.
1002ea91248cSLi-Wen HsuThis option is a nop on all other platforms.
1003782df3edSEd Maste.It Va WITHOUT_LOADER_GELI
1004782df3edSEd MasteDisable inclusion of GELI crypto support in the boot chain binaries.
100530323356SWarner Losh.Pp
100630323356SWarner LoshThis is a default setting on
1007429932baSEd Mastepowerpc/powerpc and powerpc/powerpc64.
10088edab9cdSWarner Losh.It Va WITH_LOADER_GELI
10098edab9cdSWarner LoshSet to build GELI bootloader support.
10108edab9cdSWarner Losh.Pp
10118edab9cdSWarner LoshThis is a default setting on
101273699177SEd Masteamd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, mips/mips64, riscv/riscv64 and riscv/riscv64sf.
10138edab9cdSWarner Losh.It Va WITHOUT_LOADER_LUA
10148edab9cdSWarner LoshSet to not build LUA bindings for the boot loader.
10158edab9cdSWarner Losh.Pp
10168edab9cdSWarner LoshThis is a default setting on
1017429932baSEd Mastepowerpc/powerpc and powerpc/powerpc64.
10186f7527f0SEd Maste.It Va WITH_LOADER_LUA
10196f7527f0SEd MasteSet to build LUA bindings for the boot loader.
102030323356SWarner Losh.Pp
102130323356SWarner LoshThis is a default setting on
102273699177SEd Masteamd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, mips/mips64, riscv/riscv64 and riscv/riscv64sf.
1023b8f3641fSKyle Evans.It Va WITHOUT_LOADER_OFW
1024b8f3641fSKyle EvansDisable building of openfirmware bootloader components.
1025b8f3641fSKyle Evans.Pp
1026b8f3641fSKyle EvansThis is a default setting on
102773699177SEd Masteamd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, mips/mips64, riscv/riscv64 and riscv/riscv64sf.
1028b8f3641fSKyle Evans.It Va WITH_LOADER_OFW
1029b8f3641fSKyle EvansSet to build openfirmware bootloader components.
1030b8f3641fSKyle Evans.Pp
1031b8f3641fSKyle EvansThis is a default setting on
1032429932baSEd Mastepowerpc/powerpc and powerpc/powerpc64.
1033b8f3641fSKyle Evans.It Va WITHOUT_LOADER_UBOOT
1034b8f3641fSKyle EvansDisable building of ubldr.
1035b8f3641fSKyle Evans.Pp
1036b8f3641fSKyle EvansThis is a default setting on
1037429932baSEd Masteamd64/amd64, arm64/aarch64, i386/i386, riscv/riscv64 and riscv/riscv64sf.
1038b8f3641fSKyle Evans.It Va WITH_LOADER_UBOOT
1039b8f3641fSKyle EvansSet to build ubldr.
1040b8f3641fSKyle Evans.Pp
1041b8f3641fSKyle EvansThis is a default setting on
104273699177SEd Mastearm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc and powerpc/powerpc64.
10431f7d1483SEd Maste.It Va WITH_LOADER_VERBOSE
10441f7d1483SEd MasteSet to build with extra verbose debugging in the loader.
10451f7d1483SEd MasteMay explode already nearly too large loader over the limit.
10461f7d1483SEd MasteUse with care.
1047bfdf8aa9SJohn Baldwin.It Va WITH_LOADER_VERIEXEC
1048bfdf8aa9SJohn BaldwinEnable building
1049bfdf8aa9SJohn Baldwin.Xr loader 8
1050de19b521SDimitry Andricwith support for verification similar to Verified Exec.
1051bfdf8aa9SJohn Baldwin.Pp
1052de19b521SDimitry AndricDepends on
1053de19b521SDimitry Andric.Va WITH_BEARSSL .
1054bfdf8aa9SJohn BaldwinWhen set, these options are also in effect:
1055bfdf8aa9SJohn Baldwin.Pp
1056bfdf8aa9SJohn Baldwin.Bl -inset -compact
1057bfdf8aa9SJohn Baldwin.It Va WITH_LOADER_EFI_SECUREBOOT
1058bfdf8aa9SJohn Baldwin(unless
1059bfdf8aa9SJohn Baldwin.Va WITHOUT_LOADER_EFI_SECUREBOOT
1060bfdf8aa9SJohn Baldwinis set explicitly)
1061f87a2082SEd Maste.It Va WITH_LOADER_VERIEXEC_VECTX
1062f87a2082SEd Maste(unless
1063f87a2082SEd Maste.Va WITHOUT_LOADER_VERIEXEC_VECTX
1064f87a2082SEd Masteis set explicitly)
1065bfdf8aa9SJohn Baldwin.El
1066de19b521SDimitry Andric.It Va WITH_LOADER_VERIEXEC_PASS_MANIFEST
1067de19b521SDimitry AndricEnable building
1068de19b521SDimitry Andric.Xr loader 8
1069de19b521SDimitry Andricwith support to pass a verified manifest to the kernel.
1070de19b521SDimitry AndricThe kernel has to be built with a module to parse the manifest.
1071de19b521SDimitry Andric.Pp
1072de19b521SDimitry AndricDepends on
1073de19b521SDimitry Andric.Va WITH_LOADER_VERIEXEC .
10741f7d1483SEd Maste.It Va WITHOUT_LOADER_ZFS
10751f7d1483SEd MasteSet to not build ZFS file system boot loader support.
107690be798eSDimitry Andric.It Va WITHOUT_LOCALES
107790be798eSDimitry AndricSet to not build localization files; see
107890be798eSDimitry Andric.Xr locale 1 .
107990be798eSDimitry Andric.It Va WITHOUT_LOCATE
108090be798eSDimitry AndricSet to not build
108190be798eSDimitry Andric.Xr locate 1
108290be798eSDimitry Andricand related programs.
108390be798eSDimitry Andric.It Va WITHOUT_LPR
108490be798eSDimitry AndricSet to not build
108590be798eSDimitry Andric.Xr lpr 1
108690be798eSDimitry Andricand related programs.
108790be798eSDimitry Andric.It Va WITHOUT_LS_COLORS
108890be798eSDimitry AndricSet to build
108990be798eSDimitry Andric.Xr ls 1
109090be798eSDimitry Andricwithout support for colors to distinguish file types.
109190be798eSDimitry Andric.It Va WITHOUT_LZMA_SUPPORT
109290be798eSDimitry AndricSet to build some programs without optional lzma compression support.
109390be798eSDimitry Andric.It Va WITHOUT_MAIL
109490be798eSDimitry AndricSet to not build any mail support (MUA or MTA).
1095344e2bb9SEd MasteWhen set, it enforces these options:
109690be798eSDimitry Andric.Pp
109790be798eSDimitry Andric.Bl -item -compact
109890be798eSDimitry Andric.It
109990be798eSDimitry Andric.Va WITHOUT_DMAGENT
110090be798eSDimitry Andric.It
110190be798eSDimitry Andric.Va WITHOUT_MAILWRAPPER
110290be798eSDimitry Andric.It
110390be798eSDimitry Andric.Va WITHOUT_SENDMAIL
110490be798eSDimitry Andric.El
110590be798eSDimitry Andric.It Va WITHOUT_MAILWRAPPER
110690be798eSDimitry AndricSet to not build the
110790be798eSDimitry Andric.Xr mailwrapper 8
110890be798eSDimitry AndricMTA selector.
110990be798eSDimitry Andric.It Va WITHOUT_MAKE
111090be798eSDimitry AndricSet to not install
111190be798eSDimitry Andric.Xr make 1
111290be798eSDimitry Andricand related support files.
111374782f0eSEnji Cooper.It Va WITHOUT_MAKE_CHECK_USE_SANDBOX
111474782f0eSEnji CooperSet to not execute
111574782f0eSEnji Cooper.Dq Li "make check"
111674782f0eSEnji Cooperin limited sandbox mode.
111774782f0eSEnji CooperThis option should be paired with
111874782f0eSEnji Cooper.Va WITH_INSTALL_AS_USER
111974782f0eSEnji Cooperif executed as an unprivileged user.
112074782f0eSEnji CooperSee
112174782f0eSEnji Cooper.Xr tests 7
112274782f0eSEnji Cooperfor more details.
11237d4374f6SDimitry Andric.It Va WITH_MALLOC_PRODUCTION
11247d4374f6SDimitry AndricSet to disable assertions and statistics gathering in
11257d4374f6SDimitry Andric.Xr malloc 3 .
11267d4374f6SDimitry AndricIt also defaults the A and J runtime options to off.
112790be798eSDimitry Andric.It Va WITHOUT_MAN
112890be798eSDimitry AndricSet to not build manual pages.
1129344e2bb9SEd MasteWhen set, these options are also in effect:
113090be798eSDimitry Andric.Pp
113190be798eSDimitry Andric.Bl -inset -compact
113290be798eSDimitry Andric.It Va WITHOUT_MAN_UTILS
113390be798eSDimitry Andric(unless
113490be798eSDimitry Andric.Va WITH_MAN_UTILS
113590be798eSDimitry Andricis set explicitly)
113690be798eSDimitry Andric.El
113790be798eSDimitry Andric.It Va WITHOUT_MANCOMPRESS
113890be798eSDimitry AndricSet to not to install compressed man pages.
113990be798eSDimitry AndricOnly the uncompressed versions will be installed.
114090be798eSDimitry Andric.It Va WITHOUT_MAN_UTILS
114190be798eSDimitry AndricSet to not build utilities for manual pages,
114290be798eSDimitry Andric.Xr apropos 1 ,
114390be798eSDimitry Andric.Xr makewhatis 1 ,
114490be798eSDimitry Andric.Xr man 1 ,
114590be798eSDimitry Andric.Xr whatis 1 ,
114690be798eSDimitry Andric.Xr manctl 8 ,
114790be798eSDimitry Andricand related support files.
1148cc2520d2SSimon J. Gerraty.It Va WITH_META_MODE
1149344e2bb9SEd MasteCreate
1150be894451SBryan Drewery.Xr make 1
1151be894451SBryan Drewerymeta files when building, which can provide a reliable incremental build when
1152be894451SBryan Dreweryusing
1153be894451SBryan Drewery.Xr filemon 4 .
1154344e2bb9SEd MasteThe meta file is created in OBJDIR as
1155be894451SBryan Drewery.Pa target.meta .
1156344e2bb9SEd MasteThese meta files track the command that was executed, its output, and the
1157344e2bb9SEd Mastecurrent directory.
11582710e62cSBryan DreweryThe
11597f76a95cSBryan Drewery.Xr filemon 4
11602710e62cSBryan Drewerymodule is required unless
11612710e62cSBryan Drewery.Va NO_FILEMON
11622710e62cSBryan Dreweryis defined.
1163344e2bb9SEd MasteWhen the module is loaded, any files used by the commands executed are
1164344e2bb9SEd Mastetracked as dependencies for the target in its meta file.
1165344e2bb9SEd MasteThe target is considered out-of-date and rebuilt if any of these
1166344e2bb9SEd Masteconditions are true compared to the last build:
1167be894451SBryan Drewery.Bl -bullet -compact
1168be894451SBryan Drewery.It
1169be894451SBryan DreweryThe command to execute changes.
1170be894451SBryan Drewery.It
1171be894451SBryan DreweryThe current working directory changes.
1172be894451SBryan Drewery.It
1173a4a2269eSBryan DreweryThe target's meta file is missing.
1174a4a2269eSBryan Drewery.It
1175a4a2269eSBryan DreweryThe target's meta file is missing filemon data when filemon is loaded
1176a4a2269eSBryan Dreweryand a previous run did not have it loaded.
1177be894451SBryan Drewery.It
1178be894451SBryan Drewery[requires
1179be894451SBryan Drewery.Xr filemon 4 ]
1180be894451SBryan DreweryFiles read, executed or linked to are newer than the target.
1181be894451SBryan Drewery.It
1182be894451SBryan Drewery[requires
1183be894451SBryan Drewery.Xr filemon 4 ]
1184be894451SBryan DreweryFiles read, written, executed or linked are missing.
1185be894451SBryan Drewery.El
11867f76a95cSBryan DreweryThe meta files can also be useful for debugging.
11877f76a95cSBryan Drewery.Pp
1188344e2bb9SEd MasteThe build hides commands that are executed unless
11897f76a95cSBryan Drewery.Va NO_SILENT
11907f76a95cSBryan Dreweryis defined.
1191344e2bb9SEd MasteErrors cause
11922710e62cSBryan Drewery.Xr make 1
11932710e62cSBryan Dreweryto show some of its environment for further debugging.
11940a70ef02SBryan Drewery.Pp
1195be894451SBryan DreweryThe build operates as it normally would otherwise.
1196be894451SBryan DreweryThis option originally invoked a different build system but that was renamed
1197be894451SBryan Dreweryto
1198be894451SBryan Drewery.Va WITH_DIRDEPS_BUILD .
1199be894451SBryan Drewery.Pp
1200ba852870SBryan DreweryThis must be set in the environment, make command line, or
12010a70ef02SBryan Drewery.Pa /etc/src-env.conf ,
12020a70ef02SBryan Drewerynot
12030a70ef02SBryan Drewery.Pa /etc/src.conf .
1204912aad0fSKyle Evans.It Va WITHOUT_MLX5TOOL
1205912aad0fSKyle EvansSet to not build
1206912aad0fSKyle Evans.Xr mlx5tool 8
1207912aad0fSKyle Evans.Pp
1208912aad0fSKyle EvansThis is a default setting on
120973699177SEd Mastearm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
1210912aad0fSKyle Evans.It Va WITH_MLX5TOOL
1211912aad0fSKyle EvansSet to build
1212912aad0fSKyle Evans.Xr mlx5tool 8
1213912aad0fSKyle Evans.Pp
1214912aad0fSKyle EvansThis is a default setting on
1215429932baSEd Masteamd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
121690be798eSDimitry Andric.It Va WITHOUT_NDIS
121790be798eSDimitry AndricSet to not build programs and libraries
121890be798eSDimitry Andricrelated to NDIS emulation support.
121990be798eSDimitry Andric.It Va WITHOUT_NETCAT
122090be798eSDimitry AndricSet to not build
122190be798eSDimitry Andric.Xr nc 1
122290be798eSDimitry Andricutility.
122390be798eSDimitry Andric.It Va WITHOUT_NETGRAPH
122490be798eSDimitry AndricSet to not build applications to support
122590be798eSDimitry Andric.Xr netgraph 4 .
1226344e2bb9SEd MasteWhen set, it enforces these options:
122790be798eSDimitry Andric.Pp
122890be798eSDimitry Andric.Bl -item -compact
122990be798eSDimitry Andric.It
123090be798eSDimitry Andric.Va WITHOUT_ATM
123190be798eSDimitry Andric.It
123290be798eSDimitry Andric.Va WITHOUT_BLUETOOTH
1233bf64e879SBryan Drewery.El
1234bf64e879SBryan Drewery.Pp
1235bf64e879SBryan DreweryWhen set, these options are also in effect:
1236bf64e879SBryan Drewery.Pp
1237bf64e879SBryan Drewery.Bl -inset -compact
1238bf64e879SBryan Drewery.It Va WITHOUT_NETGRAPH_SUPPORT
1239bf64e879SBryan Drewery(unless
1240bf64e879SBryan Drewery.Va WITH_NETGRAPH_SUPPORT
1241bf64e879SBryan Dreweryis set explicitly)
124290be798eSDimitry Andric.El
124390be798eSDimitry Andric.It Va WITHOUT_NETGRAPH_SUPPORT
124490be798eSDimitry AndricSet to build libraries, programs, and kernel modules without netgraph support.
124590be798eSDimitry Andric.It Va WITHOUT_NIS
124690be798eSDimitry AndricSet to not build
124790be798eSDimitry Andric.Xr NIS 8
124890be798eSDimitry Andricsupport and related programs.
124990be798eSDimitry AndricIf set, you might need to adopt your
125090be798eSDimitry Andric.Xr nsswitch.conf 5
125190be798eSDimitry Andricand remove
125290be798eSDimitry Andric.Sq nis
125390be798eSDimitry Andricentries.
125490be798eSDimitry Andric.It Va WITHOUT_NLS
125590be798eSDimitry AndricSet to not build NLS catalogs.
125657a87b06SEnji CooperWhen set, it enforces these options:
125757a87b06SEnji Cooper.Pp
125857a87b06SEnji Cooper.Bl -item -compact
125957a87b06SEnji Cooper.It
126057a87b06SEnji Cooper.Va WITHOUT_NLS_CATALOGS
126157a87b06SEnji Cooper.El
126290be798eSDimitry Andric.It Va WITHOUT_NLS_CATALOGS
126390be798eSDimitry AndricSet to not build NLS catalog support for
126490be798eSDimitry Andric.Xr csh 1 .
126590be798eSDimitry Andric.It Va WITHOUT_NS_CACHING
126690be798eSDimitry AndricSet to disable name caching in the
126790be798eSDimitry Andric.Pa nsswitch
126890be798eSDimitry Andricsubsystem.
126990be798eSDimitry AndricThe generic caching daemon,
127090be798eSDimitry Andric.Xr nscd 8 ,
127190be798eSDimitry Andricwill not be built either if this option is set.
127290be798eSDimitry Andric.It Va WITHOUT_NTP
127390be798eSDimitry AndricSet to not build
127490be798eSDimitry Andric.Xr ntpd 8
127590be798eSDimitry Andricand related programs.
12768edab9cdSWarner Losh.It Va WITHOUT_NVME
12778edab9cdSWarner LoshSet to not build nvme related tools and kernel modules.
12788edab9cdSWarner Losh.Pp
12798edab9cdSWarner LoshThis is a default setting on
128073699177SEd Mastearm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
12818edab9cdSWarner Losh.It Va WITH_NVME
12828edab9cdSWarner LoshSet to build nvme related tools and kernel modules.
12838edab9cdSWarner Losh.Pp
12848edab9cdSWarner LoshThis is a default setting on
1285f8783225SEd Masteamd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
128690be798eSDimitry Andric.It Va WITH_OFED
128790be798eSDimitry AndricSet to build the
128890be798eSDimitry Andric.Dq "OpenFabrics Enterprise Distribution"
128990be798eSDimitry AndricInfiniband software stack.
12904a3caf80SKonstantin Belousov.It Va WITH_OFED_EXTRA
12914a3caf80SKonstantin BelousovSet to build the non-essential components of the
12924a3caf80SKonstantin Belousov.Dq "OpenFabrics Enterprise Distribution"
12934a3caf80SKonstantin BelousovInfiniband software stack, mostly examples.
129490be798eSDimitry Andric.It Va WITH_OPENLDAP
129590be798eSDimitry AndricEnable building openldap support for kerberos.
1296b0840a28SDimitry Andric.It Va WITHOUT_OPENMP
1297b0840a28SDimitry AndricSet to not build LLVM's OpenMP runtime.
1298b0840a28SDimitry Andric.Pp
1299b0840a28SDimitry AndricThis is a default setting on
13007d4374f6SDimitry Andricarm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
1301b0840a28SDimitry Andric.It Va WITH_OPENMP
1302b0840a28SDimitry AndricSet to build LLVM's OpenMP runtime.
1303b0840a28SDimitry Andric.Pp
1304b0840a28SDimitry AndricThis is a default setting on
13057d4374f6SDimitry Andricamd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
130690be798eSDimitry Andric.It Va WITHOUT_OPENSSH
130790be798eSDimitry AndricSet to not build OpenSSH.
130890be798eSDimitry Andric.It Va WITHOUT_OPENSSL
130990be798eSDimitry AndricSet to not build OpenSSL.
1310344e2bb9SEd MasteWhen set, it enforces these options:
131190be798eSDimitry Andric.Pp
131290be798eSDimitry Andric.Bl -item -compact
131390be798eSDimitry Andric.It
13149f4e04c1SEd Maste.Va WITHOUT_DMAGENT
13159f4e04c1SEd Maste.It
131690be798eSDimitry Andric.Va WITHOUT_KERBEROS
131790be798eSDimitry Andric.It
1318fb27d7aeSEd Maste.Va WITHOUT_KERBEROS_SUPPORT
1319fb27d7aeSEd Maste.It
1320da39b3adSEd Maste.Va WITHOUT_LDNS
1321da39b3adSEd Maste.It
1322da39b3adSEd Maste.Va WITHOUT_LDNS_UTILS
1323da39b3adSEd Maste.It
132490be798eSDimitry Andric.Va WITHOUT_OPENSSH
1325da39b3adSEd Maste.It
1326116f7fccSEd Maste.Va WITHOUT_PKGBOOTSTRAP
1327116f7fccSEd Maste.It
1328116f7fccSEd Maste.Va WITHOUT_SVN
1329116f7fccSEd Maste.It
1330116f7fccSEd Maste.Va WITHOUT_SVNLITE
1331116f7fccSEd Maste.It
1332da39b3adSEd Maste.Va WITHOUT_UNBOUND
1333116f7fccSEd Maste.It
1334116f7fccSEd Maste.Va WITHOUT_WIRELESS
133590be798eSDimitry Andric.El
133690be798eSDimitry Andric.Pp
1337344e2bb9SEd MasteWhen set, these options are also in effect:
133890be798eSDimitry Andric.Pp
133990be798eSDimitry Andric.Bl -inset -compact
134090be798eSDimitry Andric.It Va WITHOUT_GSSAPI
134190be798eSDimitry Andric(unless
134290be798eSDimitry Andric.Va WITH_GSSAPI
134390be798eSDimitry Andricis set explicitly)
134490be798eSDimitry Andric.El
134590be798eSDimitry Andric.It Va WITHOUT_PAM
134690be798eSDimitry AndricSet to not build PAM library and modules.
134790be798eSDimitry Andric.Bf -symbolic
134890be798eSDimitry AndricThis option is deprecated and does nothing.
134990be798eSDimitry Andric.Ef
1350bf64e879SBryan DreweryWhen set, these options are also in effect:
135190be798eSDimitry Andric.Pp
1352bf64e879SBryan Drewery.Bl -inset -compact
1353bf64e879SBryan Drewery.It Va WITHOUT_PAM_SUPPORT
1354bf64e879SBryan Drewery(unless
1355bf64e879SBryan Drewery.Va WITH_PAM_SUPPORT
1356bf64e879SBryan Dreweryis set explicitly)
135790be798eSDimitry Andric.El
135890be798eSDimitry Andric.It Va WITHOUT_PAM_SUPPORT
135990be798eSDimitry AndricSet to build some programs without PAM support, particularly
136090be798eSDimitry Andric.Xr ftpd 8
136190be798eSDimitry Andricand
136290be798eSDimitry Andric.Xr ppp 8 .
136390be798eSDimitry Andric.It Va WITHOUT_PF
136490be798eSDimitry AndricSet to not build PF firewall package.
1365344e2bb9SEd MasteWhen set, it enforces these options:
136690be798eSDimitry Andric.Pp
136790be798eSDimitry Andric.Bl -item -compact
136890be798eSDimitry Andric.It
136990be798eSDimitry Andric.Va WITHOUT_AUTHPF
137090be798eSDimitry Andric.El
1371b3a27c81SEd Maste.It Va WITH_PIE
1372b3a27c81SEd MasteBuild dynamically linked binaries as
1373b3a27c81SEd MastePosition-Independent Executable (PIE).
137490be798eSDimitry Andric.It Va WITHOUT_PKGBOOTSTRAP
137590be798eSDimitry AndricSet to not build
137690be798eSDimitry Andric.Xr pkg 7
137790be798eSDimitry Andricbootstrap tool.
137890be798eSDimitry Andric.It Va WITHOUT_PMC
137990be798eSDimitry AndricSet to not build
138090be798eSDimitry Andric.Xr pmccontrol 8
138190be798eSDimitry Andricand related programs.
138290be798eSDimitry Andric.It Va WITHOUT_PORTSNAP
138390be798eSDimitry AndricSet to not build or install
138490be798eSDimitry Andric.Xr portsnap 8
138590be798eSDimitry Andricand related files.
138690be798eSDimitry Andric.It Va WITHOUT_PPP
138790be798eSDimitry AndricSet to not build
138890be798eSDimitry Andric.Xr ppp 8
138990be798eSDimitry Andricand related programs.
139090be798eSDimitry Andric.It Va WITHOUT_PROFILE
13914c033a73SEnji CooperSet to not build profiled libraries for use with
13924c033a73SEnji Cooper.Xr gprof 8 .
13930780f5c3SJohn Baldwin.Pp
13940780f5c3SJohn BaldwinThis is a default setting on
139573699177SEd Mastemips/mips64.
13964c033a73SEnji Cooper.It Va WITH_PROFILE
13974c033a73SEnji CooperSet to build profiled libraries for use with
13984c033a73SEnji Cooper.Xr gprof 8 .
13994c033a73SEnji Cooper.Pp
14004c033a73SEnji CooperThis is a default setting on
140173699177SEd Masteamd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
140290be798eSDimitry Andric.It Va WITHOUT_QUOTAS
140390be798eSDimitry AndricSet to not build
140423a6b49aSEdward Tomasz Napierala.Xr quota 1
140590be798eSDimitry Andricand related programs.
14060e0e9604SEnji Cooper.It Va WITHOUT_RADIUS_SUPPORT
14070e0e9604SEnji CooperSet to not build radius support into various applications, like
14080e0e9604SEnji Cooper.Xr pam_radius 8
14090e0e9604SEnji Cooperand
14100e0e9604SEnji Cooper.Xr ppp 8 .
141188342134SEnji Cooper.It Va WITH_RATELIMIT
141288342134SEnji CooperSet to build the system with rate limit support.
141388342134SEnji Cooper.Pp
141488342134SEnji CooperThis makes
141588342134SEnji Cooper.Dv SO_MAX_PACING_RATE
141688342134SEnji Coopereffective in
141788342134SEnji Cooper.Xr getsockopt 2 ,
141888342134SEnji Cooperand
141988342134SEnji Cooper.Ar txrlimit
142088342134SEnji Coopersupport in
142188342134SEnji Cooper.Xr ifconfig 8 ,
142288342134SEnji Cooperby proxy.
14230e0e9604SEnji Cooper.It Va WITHOUT_RBOOTD
14240e0e9604SEnji CooperSet to not build or install
14250e0e9604SEnji Cooper.Xr rbootd 8 .
142685d55309SEd Maste.It Va WITH_REPRODUCIBLE_BUILD
142785d55309SEd MasteSet to exclude build metadata (such as the build time, user, or host)
142885d55309SEd Mastefrom the kernel, boot loaders, and uname output, so that builds produce
142985d55309SEd Mastebit-for-bit identical output.
143090be798eSDimitry Andric.It Va WITHOUT_RESCUE
143190be798eSDimitry AndricSet to not build
143290be798eSDimitry Andric.Xr rescue 8 .
14338ccac680SEd Maste.It Va WITH_RETPOLINE
14348ccac680SEd MasteSet to build the base system with the retpoline speculative execution
14358ccac680SEd Mastevulnerability mitigation for CVE-2017-5715.
143690be798eSDimitry Andric.It Va WITHOUT_ROUTED
143790be798eSDimitry AndricSet to not build
143890be798eSDimitry Andric.Xr routed 8
143990be798eSDimitry Andricutility.
14404c033a73SEnji Cooper.It Va WITH_RPCBIND_WARMSTART_SUPPORT
14414c033a73SEnji CooperSet to build
14424c033a73SEnji Cooper.Xr rpcbind 8
14434c033a73SEnji Cooperwith warmstart support.
144490be798eSDimitry Andric.It Va WITHOUT_SENDMAIL
144590be798eSDimitry AndricSet to not build
144690be798eSDimitry Andric.Xr sendmail 8
144790be798eSDimitry Andricand related programs.
1448e8788097SKonstantin Belousov.It Va WITHOUT_SERVICESDB
1449e8788097SKonstantin BelousovSet to not install
1450e8788097SKonstantin Belousov.Pa /var/db/services.db .
145190be798eSDimitry Andric.It Va WITHOUT_SETUID_LOGIN
145290be798eSDimitry AndricSet this to disable the installation of
145390be798eSDimitry Andric.Xr login 1
145490be798eSDimitry Andricas a set-user-ID root program.
145590be798eSDimitry Andric.It Va WITHOUT_SHAREDOCS
145690be798eSDimitry AndricSet to not build the
145790be798eSDimitry Andric.Bx 4.4
145890be798eSDimitry Andriclegacy docs.
14596ab18ea6SDimitry Andric.It Va WITHOUT_SHARED_TOOLCHAIN
14606ab18ea6SDimitry AndricSet to build the toolchain binaries as statically linked executables.
146190be798eSDimitry AndricThe set includes
146290be798eSDimitry Andric.Xr cc 1 ,
146390be798eSDimitry Andric.Xr make 1
146490be798eSDimitry Andricand necessary utilities like assembler, linker and library archive manager.
146590be798eSDimitry Andric.It Va WITH_SORT_THREADS
146690be798eSDimitry AndricSet to enable threads in
146790be798eSDimitry Andric.Xr sort 1 .
146890be798eSDimitry Andric.It Va WITHOUT_SOURCELESS
146990be798eSDimitry AndricSet to not build kernel modules that include sourceless code (either microcode or native code for host CPU).
1470344e2bb9SEd MasteWhen set, it enforces these options:
147190be798eSDimitry Andric.Pp
147290be798eSDimitry Andric.Bl -item -compact
147390be798eSDimitry Andric.It
147490be798eSDimitry Andric.Va WITHOUT_SOURCELESS_HOST
147590be798eSDimitry Andric.It
147690be798eSDimitry Andric.Va WITHOUT_SOURCELESS_UCODE
147790be798eSDimitry Andric.El
147890be798eSDimitry Andric.It Va WITHOUT_SOURCELESS_HOST
147990be798eSDimitry AndricSet to not build kernel modules that include sourceless native code for host CPU.
148090be798eSDimitry Andric.It Va WITHOUT_SOURCELESS_UCODE
148190be798eSDimitry AndricSet to not build kernel modules that include sourceless microcode.
148290be798eSDimitry Andric.It Va WITHOUT_SSP
148390be798eSDimitry AndricSet to not build world with propolice stack smashing protection.
1484cc68b6e5SEd Maste.Pp
1485344e2bb9SEd MasteThis is a default setting on
148673699177SEd Mastemips/mips and mips/mips64.
14870cd582c8SEnji Cooper.It Va WITH_SSP
14880cd582c8SEnji CooperSet to build world with propolice stack smashing protection.
14890cd582c8SEnji Cooper.Pp
1490344e2bb9SEd MasteThis is a default setting on
1491429932baSEd Masteamd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
1492cc2520d2SSimon J. Gerraty.It Va WITH_STAGING
1493cc2520d2SSimon J. GerratyEnable staging of files to a stage tree.
1494cc2520d2SSimon J. GerratyThis can be best thought of as auto-install to
1495cc2520d2SSimon J. Gerraty.Va DESTDIR
1496cc2520d2SSimon J. Gerratywith some extra meta data to ensure dependencies can be tracked.
1497cc2520d2SSimon J. GerratyDepends on
149832b5dc9aSSimon J. Gerraty.Va WITH_DIRDEPS_BUILD .
1499344e2bb9SEd MasteWhen set, these options are also in effect:
1500cc2520d2SSimon J. Gerraty.Pp
1501cc2520d2SSimon J. Gerraty.Bl -inset -compact
1502cc2520d2SSimon J. Gerraty.It Va WITH_STAGING_MAN
1503cc2520d2SSimon J. Gerraty(unless
1504cc2520d2SSimon J. Gerraty.Va WITHOUT_STAGING_MAN
1505cc2520d2SSimon J. Gerratyis set explicitly)
1506cc2520d2SSimon J. Gerraty.It Va WITH_STAGING_PROG
1507cc2520d2SSimon J. Gerraty(unless
1508cc2520d2SSimon J. Gerraty.Va WITHOUT_STAGING_PROG
1509cc2520d2SSimon J. Gerratyis set explicitly)
1510cc2520d2SSimon J. Gerraty.El
15110a70ef02SBryan Drewery.Pp
1512ba852870SBryan DreweryThis must be set in the environment, make command line, or
15130a70ef02SBryan Drewery.Pa /etc/src-env.conf ,
15140a70ef02SBryan Drewerynot
15150a70ef02SBryan Drewery.Pa /etc/src.conf .
1516cc2520d2SSimon J. Gerraty.It Va WITH_STAGING_MAN
1517344e2bb9SEd MasteEnable staging of man pages to stage tree.
1518cc2520d2SSimon J. Gerraty.It Va WITH_STAGING_PROG
1519cc2520d2SSimon J. GerratyEnable staging of PROGs to stage tree.
1520cc2520d2SSimon J. Gerraty.It Va WITH_STALE_STAGED
1521cc2520d2SSimon J. GerratyCheck staged files are not stale.
1522de19b521SDimitry Andric.It Va WITHOUT_STATS
1523de19b521SDimitry AndricSet to neither build nor install
1524de19b521SDimitry Andric.Lb libstats
1525de19b521SDimitry Andricand dependent binaries.
152690be798eSDimitry Andric.It Va WITH_SVN
152790be798eSDimitry AndricSet to install
152890be798eSDimitry Andric.Xr svnlite 1
152990be798eSDimitry Andricas
153090be798eSDimitry Andric.Xr svn 1 .
153190be798eSDimitry Andric.It Va WITHOUT_SVNLITE
153290be798eSDimitry AndricSet to not build
153390be798eSDimitry Andric.Xr svnlite 1
153490be798eSDimitry Andricand related programs.
153590be798eSDimitry Andric.It Va WITHOUT_SYSCONS
153690be798eSDimitry AndricSet to not build
153790be798eSDimitry Andric.Xr syscons 4
153890be798eSDimitry Andricsupport files such as keyboard maps, fonts, and screen output maps.
1539cc2520d2SSimon J. Gerraty.It Va WITH_SYSROOT
1540cc2520d2SSimon J. GerratyEnable use of sysroot during build.
1541cc2520d2SSimon J. GerratyDepends on
154232b5dc9aSSimon J. Gerraty.Va WITH_DIRDEPS_BUILD .
15430a70ef02SBryan Drewery.Pp
1544ba852870SBryan DreweryThis must be set in the environment, make command line, or
15450a70ef02SBryan Drewery.Pa /etc/src-env.conf ,
15460a70ef02SBryan Drewerynot
15470a70ef02SBryan Drewery.Pa /etc/src.conf .
15488095b3c2SBryan Drewery.It Va WITHOUT_SYSTEM_COMPILER
15498095b3c2SBryan DrewerySet to not opportunistically skip building a cross-compiler during the
1550a9da9b86SBryan Drewerybootstrap phase of the build.
15518095b3c2SBryan DreweryNormally, if the currently installed compiler matches the planned bootstrap
15528095b3c2SBryan Drewerycompiler type and revision, then it will not be built.
1553a9da9b86SBryan DreweryThis does not prevent a compiler from being built for installation though,
1554a9da9b86SBryan Dreweryonly for building one for the build itself.
1555a9da9b86SBryan DreweryThe
1556a9da9b86SBryan Drewery.Va WITHOUT_CLANG
1557a5798ec8SEd Masteoption controls that.
1558be9309deSBryan Drewery.It Va WITHOUT_SYSTEM_LINKER
1559be9309deSBryan DrewerySet to not opportunistically skip building a cross-linker during the
1560be9309deSBryan Drewerybootstrap phase of the build.
1561be9309deSBryan DreweryNormally, if the currently installed linker matches the planned bootstrap
1562be9309deSBryan Drewerylinker type and revision, then it will not be built.
1563be9309deSBryan DreweryThis does not prevent a linker from being built for installation though,
1564be9309deSBryan Dreweryonly for building one for the build itself.
1565be9309deSBryan DreweryThe
1566be9309deSBryan Drewery.Va WITHOUT_LLD
15672ea16071SEd Masteoption controls that.
1568be9309deSBryan Drewery.Pp
1569be9309deSBryan DreweryThis option is only relevant when
1570be9309deSBryan Drewery.Va WITH_LLD_BOOTSTRAP
1571be9309deSBryan Dreweryis set.
157293da8366SEnji Cooper.It Va WITHOUT_TALK
157393da8366SEnji CooperSet to not build or install
157493da8366SEnji Cooper.Xr talk 1
157593da8366SEnji Cooperand
157693da8366SEnji Cooper.Xr talkd 8 .
15770e0e9604SEnji Cooper.It Va WITHOUT_TCP_WRAPPERS
15780e0e9604SEnji CooperSet to not build or install
15790e0e9604SEnji Cooper.Xr tcpd 8 ,
15800e0e9604SEnji Cooperand related utilities.
158190be798eSDimitry Andric.It Va WITHOUT_TCSH
158290be798eSDimitry AndricSet to not build and install
158390be798eSDimitry Andric.Pa /bin/csh
158490be798eSDimitry Andric(which is
158590be798eSDimitry Andric.Xr tcsh 1 ) .
158690be798eSDimitry Andric.It Va WITHOUT_TELNET
158790be798eSDimitry AndricSet to not build
158823a6b49aSEdward Tomasz Napierala.Xr telnet 1
158990be798eSDimitry Andricand related programs.
159018c6fc4cSJulio Merino.It Va WITHOUT_TESTS
159118c6fc4cSJulio MerinoSet to not build nor install the
159290be798eSDimitry Andric.Fx
159390be798eSDimitry AndricTest Suite in
159490be798eSDimitry Andric.Pa /usr/tests/ .
159590be798eSDimitry AndricSee
159690be798eSDimitry Andric.Xr tests 7
159790be798eSDimitry Andricfor more details.
159818c6fc4cSJulio MerinoThis also disables the build of all test-related dependencies, including ATF.
1599344e2bb9SEd MasteWhen set, it enforces these options:
1600c5d09a87SGlen Barber.Pp
1601c5d09a87SGlen Barber.Bl -item -compact
1602c5d09a87SGlen Barber.It
160316f3fdf5SMark Johnston.Va WITHOUT_DTRACE_TESTS
1604bf64e879SBryan Drewery.El
1605bf64e879SBryan Drewery.Pp
1606bf64e879SBryan DreweryWhen set, these options are also in effect:
1607bf64e879SBryan Drewery.Pp
1608bf64e879SBryan Drewery.Bl -inset -compact
16097840b63aSEnji Cooper.It Va WITHOUT_GOOGLETEST
16107840b63aSEnji Cooper(unless
16117840b63aSEnji Cooper.Va WITH_GOOGLETEST
16127840b63aSEnji Cooperis set explicitly)
1613bf64e879SBryan Drewery.It Va WITHOUT_TESTS_SUPPORT
1614bf64e879SBryan Drewery(unless
1615bf64e879SBryan Drewery.Va WITH_TESTS_SUPPORT
1616bf64e879SBryan Dreweryis set explicitly)
1617c5d09a87SGlen Barber.El
1618c5d09a87SGlen Barber.It Va WITHOUT_TESTS_SUPPORT
1619c5d09a87SGlen BarberSet to disables the build of all test-related dependencies, including ATF.
16207840b63aSEnji CooperWhen set, it enforces these options:
16217840b63aSEnji Cooper.Pp
16227840b63aSEnji Cooper.Bl -item -compact
16237840b63aSEnji Cooper.It
16247840b63aSEnji Cooper.Va WITHOUT_GOOGLETEST
16257840b63aSEnji Cooper.El
162690be798eSDimitry Andric.It Va WITHOUT_TEXTPROC
162790be798eSDimitry AndricSet to not build
162890be798eSDimitry Andricprograms used for text processing.
16290e0e9604SEnji Cooper.It Va WITHOUT_TFTP
16300e0e9604SEnji CooperSet to not build or install
16310e0e9604SEnji Cooper.Xr tftp 1
16320e0e9604SEnji Cooperand
16330e0e9604SEnji Cooper.Xr tftpd 8 .
163490be798eSDimitry Andric.It Va WITHOUT_TOOLCHAIN
1635148bdd15SBrooks DavisSet to not install header or
163690be798eSDimitry Andricprograms used for program development,
163790be798eSDimitry Andriccompilers, debuggers etc.
1638344e2bb9SEd MasteWhen set, it enforces these options:
163990be798eSDimitry Andric.Pp
164090be798eSDimitry Andric.Bl -item -compact
164190be798eSDimitry Andric.It
164290be798eSDimitry Andric.Va WITHOUT_CLANG
164390be798eSDimitry Andric.It
164490be798eSDimitry Andric.Va WITHOUT_CLANG_EXTRAS
164590be798eSDimitry Andric.It
164619267656SConrad Meyer.Va WITHOUT_CLANG_FORMAT
164719267656SConrad Meyer.It
164890be798eSDimitry Andric.Va WITHOUT_CLANG_FULL
164990be798eSDimitry Andric.It
165090be798eSDimitry Andric.Va WITHOUT_GDB
1651c5d09a87SGlen Barber.It
1652c5d09a87SGlen Barber.Va WITHOUT_INCLUDES
16533d02549fSBryan Drewery.It
16546c2b7edaSEd Maste.Va WITHOUT_LLD
16556c2b7edaSEd Maste.It
16563d02549fSBryan Drewery.Va WITHOUT_LLDB
16575b9c3654SEd Maste.It
16585b9c3654SEd Maste.Va WITHOUT_LLVM_COV
165990be798eSDimitry Andric.El
166090be798eSDimitry Andric.It Va WITHOUT_UNBOUND
166190be798eSDimitry AndricSet to not build
166290be798eSDimitry Andric.Xr unbound 8
166390be798eSDimitry Andricand related programs.
1664efb949a6SBryan Drewery.It Va WITHOUT_UNIFIED_OBJDIR
1665efb949a6SBryan DrewerySet to use the historical object directory format for
1666efb949a6SBryan Drewery.Xr build 7
1667efb949a6SBryan Drewerytargets.
1668efb949a6SBryan DreweryFor native-builds and builds done directly in sub-directories the format of
1669efb949a6SBryan Drewery.Pa ${MAKEOBJDIRPREFIX}/${.CURDIR}
1670efb949a6SBryan Dreweryis used,
1671efb949a6SBryan Drewerywhile for cross-builds
1672efb949a6SBryan Drewery.Pa ${MAKEOBJDIRPREFIX}/${TARGET}.${TARGET_ARCH}/${.CURDIR}
1673efb949a6SBryan Dreweryis used.
1674efb949a6SBryan Drewery.Pp
1675efb949a6SBryan DreweryThis option is transitional and will be removed before the 12.0 release,
1676efb949a6SBryan Dreweryat which time
1677efb949a6SBryan Drewery.va WITH_UNIFIED_OBJDIR
1678efb949a6SBryan Drewerywill be enabled permanently.
1679efb949a6SBryan Drewery.Pp
1680efb949a6SBryan DreweryThis must be set in the environment, make command line, or
1681efb949a6SBryan Drewery.Pa /etc/src-env.conf ,
1682efb949a6SBryan Drewerynot
1683efb949a6SBryan Drewery.Pa /etc/src.conf .
168490be798eSDimitry Andric.It Va WITHOUT_USB
168590be798eSDimitry AndricSet to not build USB-related programs and libraries.
1686c5d09a87SGlen Barber.It Va WITHOUT_USB_GADGET_EXAMPLES
1687d1040cedSWarren BlockSet to not build USB gadget kernel modules.
168890be798eSDimitry Andric.It Va WITHOUT_UTMPX
168990be798eSDimitry AndricSet to not build user accounting tools such as
169090be798eSDimitry Andric.Xr last 1 ,
169190be798eSDimitry Andric.Xr users 1 ,
169290be798eSDimitry Andric.Xr who 1 ,
169390be798eSDimitry Andric.Xr ac 8 ,
169490be798eSDimitry Andric.Xr lastlogin 8
169590be798eSDimitry Andricand
169690be798eSDimitry Andric.Xr utx 8 .
1697bfdf8aa9SJohn Baldwin.It Va WITH_VERIEXEC
1698bfdf8aa9SJohn BaldwinEnable building
1699bfdf8aa9SJohn Baldwin.Xr veriexec 8
1700bfdf8aa9SJohn Baldwinwhich loads the contents of verified manifests into the kernel
1701bfdf8aa9SJohn Baldwinfor use by
1702bfdf8aa9SJohn Baldwin.Xr mac_veriexec 4
1703bfdf8aa9SJohn Baldwin.Pp
1704de19b521SDimitry AndricDepends on
1705de19b521SDimitry Andric.Va WITH_BEARSSL .
170690be798eSDimitry Andric.It Va WITHOUT_VI
170790be798eSDimitry AndricSet to not build and install vi, view, ex and related programs.
170890be798eSDimitry Andric.It Va WITHOUT_VT
170990be798eSDimitry AndricSet to not build
171090be798eSDimitry Andric.Xr vt 4
171190be798eSDimitry Andricsupport files (fonts and keymaps).
171290be798eSDimitry Andric.It Va WITHOUT_WARNS
171390be798eSDimitry AndricSet this to not add warning flags to the compiler invocations.
171490be798eSDimitry AndricUseful as a temporary workaround when code enters the tree
171590be798eSDimitry Andricwhich triggers warnings in environments that differ from the
1716559f9bfcSJens Schweikhardtoriginal developer.
171790be798eSDimitry Andric.It Va WITHOUT_WIRELESS
171890be798eSDimitry AndricSet to not build programs used for 802.11 wireless networks; especially
171990be798eSDimitry Andric.Xr wpa_supplicant 8
172090be798eSDimitry Andricand
172190be798eSDimitry Andric.Xr hostapd 8 .
1722bf64e879SBryan DreweryWhen set, these options are also in effect:
172390be798eSDimitry Andric.Pp
1724bf64e879SBryan Drewery.Bl -inset -compact
1725bf64e879SBryan Drewery.It Va WITHOUT_WIRELESS_SUPPORT
1726bf64e879SBryan Drewery(unless
1727bf64e879SBryan Drewery.Va WITH_WIRELESS_SUPPORT
1728bf64e879SBryan Dreweryis set explicitly)
172990be798eSDimitry Andric.El
173090be798eSDimitry Andric.It Va WITHOUT_WIRELESS_SUPPORT
173190be798eSDimitry AndricSet to build libraries, programs, and kernel modules without
173290be798eSDimitry Andric802.11 wireless support.
173390be798eSDimitry Andric.It Va WITHOUT_WPA_SUPPLICANT_EAPOL
173490be798eSDimitry AndricBuild
173590be798eSDimitry Andric.Xr wpa_supplicant 8
173690be798eSDimitry Andricwithout support for the IEEE 802.1X protocol and without
173790be798eSDimitry Andricsupport for EAP-PEAP, EAP-TLS, EAP-LEAP, and EAP-TTLS
173890be798eSDimitry Andricprotocols (usable only via 802.1X).
173990be798eSDimitry Andric.It Va WITHOUT_ZFS
17401f7d1483SEd MasteSet to not build ZFS file system kernel module, libraries, and user commands.
174190be798eSDimitry Andric.It Va WITHOUT_ZONEINFO
174290be798eSDimitry AndricSet to not build the timezone database.
17435c021049SEnji CooperWhen set, it enforces these options:
17445c021049SEnji Cooper.Pp
17455c021049SEnji Cooper.Bl -item -compact
17465c021049SEnji Cooper.It
17475c021049SEnji Cooper.Va WITHOUT_ZONEINFO_LEAPSECONDS_SUPPORT
17485c021049SEnji Cooper.El
17495c021049SEnji Cooper.It Va WITH_ZONEINFO_LEAPSECONDS_SUPPORT
17505c021049SEnji CooperSet to build leapsecond information in to the timezone database.
175190be798eSDimitry Andric.El
175290be798eSDimitry Andric.Sh FILES
175390be798eSDimitry Andric.Bl -tag -compact -width Pa
175490be798eSDimitry Andric.It Pa /etc/src.conf
17550a70ef02SBryan Drewery.It Pa /etc/src-env.conf
175690be798eSDimitry Andric.It Pa /usr/share/mk/bsd.own.mk
175790be798eSDimitry Andric.El
175890be798eSDimitry Andric.Sh SEE ALSO
175990be798eSDimitry Andric.Xr make 1 ,
176090be798eSDimitry Andric.Xr make.conf 5 ,
176190be798eSDimitry Andric.Xr build 7 ,
176290be798eSDimitry Andric.Xr ports 7
176390be798eSDimitry Andric.Sh HISTORY
176490be798eSDimitry AndricThe
176590be798eSDimitry Andric.Nm
176690be798eSDimitry Andricfile appeared in
176790be798eSDimitry Andric.Fx 7.0 .
176890be798eSDimitry Andric.Sh AUTHORS
176988342134SEnji CooperThis manual page was autogenerated by
1770a121d3a8SEnji Cooper.An tools/build/options/makeman .
1771