xref: /freebsd/share/man/man5/src.conf.5 (revision f83a16e0ecd95c058fe53bf958347b2b47a04755)
1b1a0e564SEitan Adler.\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman.
2fa07cb9cSRuslan Ermilov.\" $FreeBSD$
3*f83a16e0SEd Maste.Dd September 7, 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
12fa07cb9cSRuslan Ermilovfile contains settings that will apply to every build involving the
13fa07cb9cSRuslan Ermilov.Fx
14fa07cb9cSRuslan Ermilovsource tree; see
15fa07cb9cSRuslan Ermilov.Xr build 7 .
16fa07cb9cSRuslan Ermilov.Pp
17fa07cb9cSRuslan ErmilovThe
18fa07cb9cSRuslan Ermilov.Nm
19fa07cb9cSRuslan Ermilovfile uses the standard makefile syntax.
20fa07cb9cSRuslan ErmilovHowever,
21fa07cb9cSRuslan Ermilov.Nm
22fa07cb9cSRuslan Ermilovshould not specify any dependencies to
23fa07cb9cSRuslan Ermilov.Xr make 1 .
24fa07cb9cSRuslan ErmilovInstead,
25fa07cb9cSRuslan Ermilov.Nm
26fa07cb9cSRuslan Ermilovis to set
27fa07cb9cSRuslan Ermilov.Xr make 1
28fa07cb9cSRuslan Ermilovvariables that control the aspects of how the system builds.
29fa07cb9cSRuslan Ermilov.Pp
30fa07cb9cSRuslan ErmilovThe default location of
31fa07cb9cSRuslan Ermilov.Nm
32fa07cb9cSRuslan Ermilovis
33fa07cb9cSRuslan Ermilov.Pa /etc/src.conf ,
34fa07cb9cSRuslan Ermilovthough an alternative location can be specified in the
35fa07cb9cSRuslan Ermilov.Xr make 1
36fa07cb9cSRuslan Ermilovvariable
37fa07cb9cSRuslan Ermilov.Va SRCCONF .
38fa07cb9cSRuslan ErmilovOverriding the location of
39fa07cb9cSRuslan Ermilov.Nm
40fa07cb9cSRuslan Ermilovmay be necessary if the system-wide settings are not suitable
41fa07cb9cSRuslan Ermilovfor a particular build.
42fa07cb9cSRuslan ErmilovFor instance, setting
43fa07cb9cSRuslan Ermilov.Va SRCCONF
44fa07cb9cSRuslan Ermilovto
45fa07cb9cSRuslan Ermilov.Pa /dev/null
46fa07cb9cSRuslan Ermiloveffectively resets all build controls to their defaults.
47fa07cb9cSRuslan Ermilov.Pp
48fa07cb9cSRuslan ErmilovThe only purpose of
49fa07cb9cSRuslan Ermilov.Nm
50fa07cb9cSRuslan Ermilovis to control the compilation of the
51fa07cb9cSRuslan Ermilov.Fx
5216f2e711SYaroslav Tykhiysource code, which is usually located in
53fa07cb9cSRuslan Ermilov.Pa /usr/src .
54fa07cb9cSRuslan ErmilovAs a rule, the system administrator creates
55fa07cb9cSRuslan Ermilov.Nm
56fa07cb9cSRuslan Ermilovwhen the values of certain control variables need to be changed
57fa07cb9cSRuslan Ermilovfrom their defaults.
58fa07cb9cSRuslan Ermilov.Pp
59fa07cb9cSRuslan ErmilovIn addition, control variables can be specified
60fa07cb9cSRuslan Ermilovfor a particular build via the
61fa07cb9cSRuslan Ermilov.Fl D
62fa07cb9cSRuslan Ermilovoption of
63fa07cb9cSRuslan Ermilov.Xr make 1
6472735687SMike Makonnenor in its environment; see
65fa07cb9cSRuslan Ermilov.Xr environ 7 .
66fa07cb9cSRuslan Ermilov.Pp
670a70ef02SBryan DreweryThe environment of
680a70ef02SBryan Drewery.Xr make 1
690a70ef02SBryan Dreweryfor the build can be controlled via the
700a70ef02SBryan Drewery.Va SRC_ENV_CONF
710a70ef02SBryan Dreweryvariable, which defaults to
720a70ef02SBryan Drewery.Pa /etc/src-env.conf .
730a70ef02SBryan DrewerySome examples that may only be set in this file are
7432b5dc9aSSimon J. Gerraty.Va WITH_DIRDEPS_BUILD ,
750a70ef02SBryan Dreweryand
76efb949a6SBryan Drewery.Va WITH_META_MODE ,
77efb949a6SBryan Dreweryand
787df4050dSBryan Drewery.Va MAKEOBJDIRPREFIX
79efb949a6SBryan Dreweryas they are environment-only variables.
800a70ef02SBryan Drewery.Pp
8116f2e711SYaroslav TykhiyThe values of variables are ignored regardless of their setting;
8216f2e711SYaroslav Tykhiyeven if they would be set to
83fa07cb9cSRuslan Ermilov.Dq Li FALSE
84fa07cb9cSRuslan Ermilovor
8516f2e711SYaroslav Tykhiy.Dq Li NO .
86344e2bb9SEd MasteThe presence of an option causes
87344e2bb9SEd Masteit to be honored by
8816f2e711SYaroslav Tykhiy.Xr make 1 .
89fa07cb9cSRuslan Ermilov.Pp
90344e2bb9SEd MasteThis list provides a name and short description for variables
91fa07cb9cSRuslan Ermilovthat can be used for source builds.
92fa07cb9cSRuslan Ermilov.Bl -tag -width indent
93aaa6d7ebSSam Leffler.It Va WITHOUT_ACCT
94aaa6d7ebSSam LefflerSet to not build process accounting tools such as
950ea27d02SEd Schouten.Xr accton 8
96aaa6d7ebSSam Lefflerand
970ea27d02SEd Schouten.Xr sa 8 .
98fa07cb9cSRuslan Ermilov.It Va WITHOUT_ACPI
99fa07cb9cSRuslan ErmilovSet to not build
100fa07cb9cSRuslan Ermilov.Xr acpiconf 8 ,
101fa07cb9cSRuslan Ermilov.Xr acpidump 8
102fa07cb9cSRuslan Ermilovand related programs.
103aaa6d7ebSSam Leffler.It Va WITHOUT_APM
104aaa6d7ebSSam LefflerSet to not build
105aaa6d7ebSSam Leffler.Xr apm 8 ,
106aaa6d7ebSSam Leffler.Xr apmd 8
107aaa6d7ebSSam Lefflerand related programs.
108e567b213SRuslan Ermilov.It Va WITHOUT_ASSERT_DEBUG
109e567b213SRuslan ErmilovSet to compile programs and libraries without the
110e567b213SRuslan Ermilov.Xr assert 3
111e567b213SRuslan Ermilovchecks.
112aaa6d7ebSSam Leffler.It Va WITHOUT_AT
113aaa6d7ebSSam LefflerSet to not build
114aaa6d7ebSSam Leffler.Xr at 1
115aaa6d7ebSSam Lefflerand related utilities.
116fa07cb9cSRuslan Ermilov.It Va WITHOUT_ATM
117fa07cb9cSRuslan ErmilovSet to not build
118fa07cb9cSRuslan Ermilovprograms and libraries related to ATM networking.
119fa07cb9cSRuslan Ermilov.It Va WITHOUT_AUDIT
120fa07cb9cSRuslan ErmilovSet to not build audit support into system programs.
121fa07cb9cSRuslan Ermilov.It Va WITHOUT_AUTHPF
122fa07cb9cSRuslan ErmilovSet to not build
123fa07cb9cSRuslan Ermilov.Xr authpf 8 .
12461940879SEnji Cooper.It Va WITHOUT_AUTOFS
12561940879SEnji CooperSet to not build
1264b9f77e4SEdward Tomasz Napierala.Xr autofs 5
12761940879SEnji Cooperrelated programs, libraries, and kernel modules.
128906a1c6cSBryan Drewery.It Va WITHOUT_AUTO_OBJ
129906a1c6cSBryan DreweryDisable automatic creation of objdirs.
130906a1c6cSBryan DreweryThis is enabled by default if the wanted OBJDIR is writable by the current user.
1310a70ef02SBryan Drewery.Pp
132ba852870SBryan DreweryThis must be set in the environment, make command line, or
1330a70ef02SBryan Drewery.Pa /etc/src-env.conf ,
1340a70ef02SBryan Drewerynot
1350a70ef02SBryan Drewery.Pa /etc/src.conf .
136bfdf8aa9SJohn Baldwin.It Va WITH_BEARSSL
137bfdf8aa9SJohn BaldwinBuild the BearSSL library.
138bfdf8aa9SJohn Baldwin.Pp
139bfdf8aa9SJohn BaldwinBearSSL is a tiny SSL library suitable for embedded environments.
140bfdf8aa9SJohn BaldwinFor details see
141bfdf8aa9SJohn Baldwin.Lk http://www.BearSSL.org/
142bfdf8aa9SJohn Baldwin.Pp
143bfdf8aa9SJohn BaldwinThis library is currently only used to perform
144bfdf8aa9SJohn Baldwinsignature verification and related operations
145bfdf8aa9SJohn Baldwinfor Verified Exec and
146bfdf8aa9SJohn Baldwin.Xr loader 8 .
147bfdf8aa9SJohn BaldwinWhen set, these options are also in effect:
148bfdf8aa9SJohn Baldwin.Pp
149bfdf8aa9SJohn Baldwin.Bl -inset -compact
150bfdf8aa9SJohn Baldwin.It Va WITH_LOADER_EFI_SECUREBOOT
151bfdf8aa9SJohn Baldwin(unless
152bfdf8aa9SJohn Baldwin.Va WITHOUT_LOADER_EFI_SECUREBOOT
153bfdf8aa9SJohn Baldwinis set explicitly)
154bfdf8aa9SJohn Baldwin.It Va WITH_LOADER_VERIEXEC
155bfdf8aa9SJohn Baldwin(unless
156bfdf8aa9SJohn Baldwin.Va WITHOUT_LOADER_VERIEXEC
157bfdf8aa9SJohn Baldwinis set explicitly)
158f87a2082SEd Maste.It Va WITH_LOADER_VERIEXEC_VECTX
159f87a2082SEd Maste(unless
160f87a2082SEd Maste.Va WITHOUT_LOADER_VERIEXEC_VECTX
161f87a2082SEd Masteis set explicitly)
162bfdf8aa9SJohn Baldwin.It Va WITH_VERIEXEC
163bfdf8aa9SJohn Baldwin(unless
164bfdf8aa9SJohn Baldwin.Va WITHOUT_VERIEXEC
165bfdf8aa9SJohn Baldwinis set explicitly)
166bfdf8aa9SJohn Baldwin.El
16761940879SEnji Cooper.It Va WITHOUT_BHYVE
16861940879SEnji CooperSet to not build or install
16961940879SEnji Cooper.Xr bhyve 8 ,
17061940879SEnji Cooperassociated utilities, and examples.
17161940879SEnji Cooper.Pp
17261940879SEnji CooperThis option only affects amd64/amd64.
173483d953aSJohn Baldwin.It Va WITH_BHYVE_SNAPSHOT
174483d953aSJohn BaldwinSet to include support for save and restore (snapshots) in
175483d953aSJohn Baldwin.Xr bhyve 8
176483d953aSJohn Baldwinand
177483d953aSJohn Baldwin.Xr bhyvectl 8 .
178483d953aSJohn Baldwin.Pp
179483d953aSJohn BaldwinThis option only affects amd64/amd64.
1801f3b049dSEd Maste.It Va WITH_BIND_NOW
1811f3b049dSEd MasteBuild all binaries with the
1821f3b049dSEd Maste.Dv DF_BIND_NOW
1831f3b049dSEd Masteflag set to indicate that the run-time loader should perform all relocation
1841f3b049dSEd Masteprocessing at process startup rather than on demand.
1850341a043SBryan Drewery.It Va WITHOUT_BLACKLIST
1864650b8aeSEnji CooperSet this if you do not want to build
1874650b8aeSEnji Cooper.Xr blacklistd 8
1884650b8aeSEnji Cooperand
1894650b8aeSEnji Cooper.Xr blacklistctl 8 .
190bf64e879SBryan DreweryWhen set, these options are also in effect:
1910341a043SBryan Drewery.Pp
192bf64e879SBryan Drewery.Bl -inset -compact
193bf64e879SBryan Drewery.It Va WITHOUT_BLACKLIST_SUPPORT
194bf64e879SBryan Drewery(unless
195bf64e879SBryan Drewery.Va WITH_BLACKLIST_SUPPORT
196bf64e879SBryan Dreweryis set explicitly)
1970341a043SBryan Drewery.El
1980341a043SBryan Drewery.It Va WITHOUT_BLACKLIST_SUPPORT
1994650b8aeSEnji CooperSet to build some programs without
2004650b8aeSEnji Cooper.Xr libblacklist 3
2014650b8aeSEnji Coopersupport, like
2020341a043SBryan Drewery.Xr fingerd 8 ,
2030341a043SBryan Drewery.Xr ftpd 8 ,
2040341a043SBryan Dreweryand
2050341a043SBryan Drewery.Xr sshd 8 .
20690be798eSDimitry Andric.It Va WITHOUT_BLUETOOTH
20790be798eSDimitry AndricSet to not build Bluetooth related kernel modules, programs and libraries.
20890be798eSDimitry Andric.It Va WITHOUT_BOOT
20990be798eSDimitry AndricSet to not build the boot blocks and loader.
2100e0e9604SEnji Cooper.It Va WITHOUT_BOOTPARAMD
2110e0e9604SEnji CooperSet to not build or install
2120e0e9604SEnji Cooper.Xr bootparamd 8 .
2130e0e9604SEnji Cooper.It Va WITHOUT_BOOTPD
2140e0e9604SEnji CooperSet to not build or install
2150e0e9604SEnji Cooper.Xr bootpd 8 .
21693da8366SEnji Cooper.It Va WITHOUT_BSDINSTALL
21793da8366SEnji CooperSet to not build
21893da8366SEnji Cooper.Xr bsdinstall 8 ,
21993da8366SEnji Cooper.Xr sade 8 ,
22093da8366SEnji Cooperand related programs.
22190be798eSDimitry Andric.It Va WITHOUT_BSD_CPIO
22290be798eSDimitry AndricSet to not build the BSD licensed version of cpio based on
22390be798eSDimitry Andric.Xr libarchive 3 .
22490be798eSDimitry Andric.It Va WITH_BSD_GREP
22590be798eSDimitry AndricInstall BSD-licensed grep as '[ef]grep' instead of GNU grep.
22690be798eSDimitry Andric.It Va WITHOUT_BSNMP
22790be798eSDimitry AndricSet to not build or install
22890be798eSDimitry Andric.Xr bsnmpd 1
22990be798eSDimitry Andricand related libraries and data files.
23090be798eSDimitry Andric.It Va WITHOUT_BZIP2
23190be798eSDimitry AndricSet to not build contributed bzip2 software as a part of the base system.
23290be798eSDimitry Andric.Bf -symbolic
23390be798eSDimitry AndricThe option has no effect yet.
23490be798eSDimitry Andric.Ef
235bf64e879SBryan DreweryWhen set, these options are also in effect:
23690be798eSDimitry Andric.Pp
237bf64e879SBryan Drewery.Bl -inset -compact
238bf64e879SBryan Drewery.It Va WITHOUT_BZIP2_SUPPORT
239bf64e879SBryan Drewery(unless
240bf64e879SBryan Drewery.Va WITH_BZIP2_SUPPORT
241bf64e879SBryan Dreweryis set explicitly)
24290be798eSDimitry Andric.El
24390be798eSDimitry Andric.It Va WITHOUT_BZIP2_SUPPORT
24490be798eSDimitry AndricSet to build some programs without optional bzip2 support.
245fd1efedcSConrad Meyer.It Va WITHOUT_CALENDAR
246fd1efedcSConrad MeyerSet to not build
247fd1efedcSConrad Meyer.Xr calendar 1 .
24890be798eSDimitry Andric.It Va WITHOUT_CAPSICUM
24990be798eSDimitry AndricSet to not build Capsicum support into system programs.
250344e2bb9SEd MasteWhen set, it enforces these options:
251aced6942SBaptiste Daroussin.Pp
252aced6942SBaptiste Daroussin.Bl -item -compact
253aced6942SBaptiste Daroussin.It
254aced6942SBaptiste Daroussin.Va WITHOUT_CASPER
255aced6942SBaptiste Daroussin.El
256de19b521SDimitry Andric.It Va WITHOUT_CAROOT
257de19b521SDimitry AndricSet to not add the trusted certificates from the Mozilla NSS bundle to
258de19b521SDimitry Andricbase.
25990be798eSDimitry Andric.It Va WITHOUT_CASPER
26090be798eSDimitry AndricSet to not build Casper program and related libraries.
2611c01e4f8SBryan Drewery.It Va WITH_CCACHE_BUILD
2621c01e4f8SBryan DrewerySet to use
2631c01e4f8SBryan Drewery.Xr ccache 1
2641c01e4f8SBryan Dreweryfor the build.
2651c01e4f8SBryan DreweryNo configuration is required except to install the
2661c01e4f8SBryan Drewery.Sy devel/ccache
2671c01e4f8SBryan Drewerypackage.
268344e2bb9SEd MasteWhen using with
269344e2bb9SEd Maste.Xr distcc 1 ,
270344e2bb9SEd Masteset
2711c01e4f8SBryan Drewery.Sy CCACHE_PREFIX=/usr/local/bin/distcc .
2721c01e4f8SBryan DreweryThe default cache directory of
2731c01e4f8SBryan Drewery.Pa $HOME/.ccache
2741c01e4f8SBryan Drewerywill be used, which can be overridden by setting
2751c01e4f8SBryan Drewery.Sy CCACHE_DIR .
2761c01e4f8SBryan DreweryThe
2771c01e4f8SBryan Drewery.Sy CCACHE_COMPILERCHECK
2781c01e4f8SBryan Dreweryoption defaults to
2791c01e4f8SBryan Drewery.Sy content
2801c01e4f8SBryan Drewerywhen using the in-tree bootstrap compiler,
2811c01e4f8SBryan Dreweryand
2821c01e4f8SBryan Drewery.Sy mtime
2831c01e4f8SBryan Drewerywhen using an external compiler.
2841c01e4f8SBryan DreweryThe
2851c01e4f8SBryan Drewery.Sy CCACHE_CPP2
2861c01e4f8SBryan Dreweryoption is used for Clang but not GCC.
2871c01e4f8SBryan Drewery.Pp
2881c01e4f8SBryan DrewerySharing a cache between multiple work directories requires using a layout
2891c01e4f8SBryan Drewerysimilar to
2901c01e4f8SBryan Drewery.Pa /some/prefix/src
2911c01e4f8SBryan Drewery.Pa /some/prefix/obj
2921c01e4f8SBryan Dreweryand an environment such as:
2931c01e4f8SBryan Drewery.Bd -literal -offset indent
2941c01e4f8SBryan DreweryCCACHE_BASEDIR='${SRCTOP:H}' MAKEOBJDIRPREFIX='${SRCTOP:H}/obj'
2951c01e4f8SBryan Drewery.Ed
2961c01e4f8SBryan Drewery.Pp
2971c01e4f8SBryan DrewerySee
2981c01e4f8SBryan Drewery.Xr ccache 1
2991c01e4f8SBryan Dreweryfor more configuration options.
30093da8366SEnji Cooper.It Va WITHOUT_CCD
30193da8366SEnji CooperSet to not build
30293da8366SEnji Cooper.Xr geom_ccd 4
30393da8366SEnji Cooperand related utilities.
30490be798eSDimitry Andric.It Va WITHOUT_CDDL
30590be798eSDimitry AndricSet to not build code licensed under Sun's CDDL.
306344e2bb9SEd MasteWhen set, it enforces these options:
30790be798eSDimitry Andric.Pp
30890be798eSDimitry Andric.Bl -item -compact
30990be798eSDimitry Andric.It
31090be798eSDimitry Andric.Va WITHOUT_CTF
31190be798eSDimitry Andric.It
3121f7d1483SEd Maste.Va WITHOUT_LOADER_ZFS
3131f7d1483SEd Maste.It
31490be798eSDimitry Andric.Va WITHOUT_ZFS
31590be798eSDimitry Andric.El
31690be798eSDimitry Andric.It Va WITHOUT_CLANG
31790be798eSDimitry AndricSet to not build the Clang C/C++ compiler during the regular phase of the build.
318344e2bb9SEd MasteWhen set, it enforces these options:
31990be798eSDimitry Andric.Pp
32090be798eSDimitry Andric.Bl -item -compact
32190be798eSDimitry Andric.It
32290be798eSDimitry Andric.Va WITHOUT_CLANG_EXTRAS
32390be798eSDimitry Andric.It
32419267656SConrad Meyer.Va WITHOUT_CLANG_FORMAT
32519267656SConrad Meyer.It
32690be798eSDimitry Andric.Va WITHOUT_CLANG_FULL
3275b9c3654SEd Maste.It
3285b9c3654SEd Maste.Va WITHOUT_LLVM_COV
32990be798eSDimitry Andric.El
33090be798eSDimitry Andric.It Va WITHOUT_CLANG_BOOTSTRAP
331344e2bb9SEd MasteSet to not build the Clang C/C++ compiler during the bootstrap phase of
332344e2bb9SEd Mastethe build.
333344e2bb9SEd MasteTo be able to build the system, either gcc or clang bootstrap must be
334344e2bb9SEd Masteenabled unless an alternate compiler is provided via XCC.
33590be798eSDimitry Andric.It Va WITH_CLANG_EXTRAS
336b3a27c81SEd MasteSet to build additional clang and llvm tools, such as bugpoint and
337b3a27c81SEd Masteclang-format.
33819267656SConrad Meyer.It Va WITH_CLANG_FORMAT
33919267656SConrad MeyerSet to build clang-format.
34090be798eSDimitry Andric.It Va WITHOUT_CLANG_FULL
34190be798eSDimitry AndricSet to avoid building the ARCMigrate, Rewriter and StaticAnalyzer components of
34290be798eSDimitry Andricthe Clang C/C++ compiler.
34390be798eSDimitry Andric.It Va WITHOUT_CLANG_IS_CC
3448683408cSEd MasteDo not install links to the Clang C/C++ compiler as
34590be798eSDimitry Andric.Pa /usr/bin/cc ,
34690be798eSDimitry Andric.Pa /usr/bin/c++
34790be798eSDimitry Andricand
34890be798eSDimitry Andric.Pa /usr/bin/cpp .
349*f83a16e0SEd Maste.It Va WITHOUT_CLEAN
350*f83a16e0SEd MasteDo not clean before building world and/or kernel.
35190be798eSDimitry Andric.It Va WITHOUT_CPP
35290be798eSDimitry AndricSet to not build
35390be798eSDimitry Andric.Xr cpp 1 .
35490be798eSDimitry Andric.It Va WITHOUT_CROSS_COMPILER
35590be798eSDimitry AndricSet to not build any cross compiler in the cross-tools stage of buildworld.
356344e2bb9SEd MasteWhen compiling a different version of
35790be798eSDimitry Andric.Fx
358344e2bb9SEd Mastethan what is installed on the system, provide an alternate
35990be798eSDimitry Andriccompiler with XCC to ensure success.
360344e2bb9SEd MasteWhen compiling with an identical version of
36190be798eSDimitry Andric.Fx
36290be798eSDimitry Andricto the host, this option may be safely used.
36390be798eSDimitry AndricThis option may also be safe when the host version of
36490be798eSDimitry Andric.Fx
36590be798eSDimitry Andricis close to the sources being built, but all bets are off if there have
36690be798eSDimitry Andricbeen any changes to the toolchain between the versions.
367344e2bb9SEd MasteWhen set, it enforces these options:
36890be798eSDimitry Andric.Pp
36990be798eSDimitry Andric.Bl -item -compact
37090be798eSDimitry Andric.It
37190be798eSDimitry Andric.Va WITHOUT_CLANG_BOOTSTRAP
37290be798eSDimitry Andric.It
373f972b8a4SBryan Drewery.Va WITHOUT_ELFTOOLCHAIN_BOOTSTRAP
374f972b8a4SBryan Drewery.It
37528f52545SEd Maste.Va WITHOUT_LLD_BOOTSTRAP
37690be798eSDimitry Andric.El
37790be798eSDimitry Andric.It Va WITHOUT_CRYPT
37890be798eSDimitry AndricSet to not build any crypto code.
379344e2bb9SEd MasteWhen set, it enforces these options:
38090be798eSDimitry Andric.Pp
38190be798eSDimitry Andric.Bl -item -compact
38290be798eSDimitry Andric.It
3839f4e04c1SEd Maste.Va WITHOUT_DMAGENT
3849f4e04c1SEd Maste.It
38590be798eSDimitry Andric.Va WITHOUT_KERBEROS
38690be798eSDimitry Andric.It
387fb27d7aeSEd Maste.Va WITHOUT_KERBEROS_SUPPORT
388fb27d7aeSEd Maste.It
389da39b3adSEd Maste.Va WITHOUT_LDNS
390da39b3adSEd Maste.It
391da39b3adSEd Maste.Va WITHOUT_LDNS_UTILS
392da39b3adSEd Maste.It
39390be798eSDimitry Andric.Va WITHOUT_OPENSSH
39490be798eSDimitry Andric.It
39590be798eSDimitry Andric.Va WITHOUT_OPENSSL
396da39b3adSEd Maste.It
397116f7fccSEd Maste.Va WITHOUT_PKGBOOTSTRAP
398116f7fccSEd Maste.It
399116f7fccSEd Maste.Va WITHOUT_SVN
400116f7fccSEd Maste.It
401116f7fccSEd Maste.Va WITHOUT_SVNLITE
402116f7fccSEd Maste.It
403da39b3adSEd Maste.Va WITHOUT_UNBOUND
404116f7fccSEd Maste.It
405116f7fccSEd Maste.Va WITHOUT_WIRELESS
40690be798eSDimitry Andric.El
40790be798eSDimitry Andric.Pp
408344e2bb9SEd MasteWhen set, these options are also in effect:
40990be798eSDimitry Andric.Pp
41090be798eSDimitry Andric.Bl -inset -compact
41190be798eSDimitry Andric.It Va WITHOUT_GSSAPI
41290be798eSDimitry Andric(unless
41390be798eSDimitry Andric.Va WITH_GSSAPI
41490be798eSDimitry Andricis set explicitly)
41590be798eSDimitry Andric.El
41690be798eSDimitry Andric.It Va WITH_CTF
41790be798eSDimitry AndricSet to compile with CTF (Compact C Type Format) data.
41890be798eSDimitry AndricCTF data encapsulates a reduced form of debugging information
41990be798eSDimitry Andricsimilar to DWARF and the venerable stabs and is required for DTrace.
42054d8c5d5SBryan Drewery.It Va WITHOUT_CUSE
42154d8c5d5SBryan DrewerySet to not build CUSE-related programs and libraries.
4229cf76983SNavdeep Parhar.It Va WITHOUT_CXGBETOOL
4239cf76983SNavdeep ParharSet to not build
4249cf76983SNavdeep Parhar.Xr cxgbetool 8
4259cf76983SNavdeep Parhar.Pp
4269cf76983SNavdeep ParharThis is a default setting on
42773699177SEd Mastearm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
4289cf76983SNavdeep Parhar.It Va WITH_CXGBETOOL
4299cf76983SNavdeep ParharSet to build
4309cf76983SNavdeep Parhar.Xr cxgbetool 8
4319cf76983SNavdeep Parhar.Pp
4329cf76983SNavdeep ParharThis is a default setting on
433429932baSEd Masteamd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
43490be798eSDimitry Andric.It Va WITHOUT_CXX
43590be798eSDimitry AndricSet to not build
4364a62dc3aSBryan Drewery.Xr c++ 1
43790be798eSDimitry Andricand related libraries.
43890be798eSDimitry AndricIt will also prevent building of
43990be798eSDimitry Andric.Xr gperf 1
44090be798eSDimitry Andricand
44190be798eSDimitry Andric.Xr devd 8 .
442344e2bb9SEd MasteWhen set, it enforces these options:
44390be798eSDimitry Andric.Pp
44490be798eSDimitry Andric.Bl -item -compact
44590be798eSDimitry Andric.It
44690be798eSDimitry Andric.Va WITHOUT_CLANG
44790be798eSDimitry Andric.It
44890be798eSDimitry Andric.Va WITHOUT_CLANG_EXTRAS
44990be798eSDimitry Andric.It
45019267656SConrad Meyer.Va WITHOUT_CLANG_FORMAT
45119267656SConrad Meyer.It
45290be798eSDimitry Andric.Va WITHOUT_CLANG_FULL
45390be798eSDimitry Andric.It
454051ea717SEd Maste.Va WITHOUT_DTRACE_TESTS
455051ea717SEd Maste.It
456770379b9SEd Maste.Va WITHOUT_GOOGLETEST
457770379b9SEd Maste.It
4585b9c3654SEd Maste.Va WITHOUT_LLVM_COV
4595b9c3654SEd Maste.It
460051ea717SEd Maste.Va WITHOUT_TESTS
46190be798eSDimitry Andric.El
4624a5e4462SEd Maste.It Va WITHOUT_DEBUG_FILES
4634a5e4462SEd MasteSet to avoid building or installing standalone debug files for each
4644a5e4462SEd Masteexecutable binary and shared library.
465cc68b6e5SEd Maste.It Va WITHOUT_DIALOG
466344e2bb9SEd MasteSet to not build
467344e2bb9SEd Maste.Xr dialog 1 ,
468344e2bb9SEd Maste.Xr dialog 3 ,
469344e2bb9SEd Maste.Xr dpv 1 ,
470344e2bb9SEd Masteand
471344e2bb9SEd Maste.Xr dpv 3 .
472344e2bb9SEd MasteWhen set, it enforces these options:
473cc68b6e5SEd Maste.Pp
474cc68b6e5SEd Maste.Bl -item -compact
475cc68b6e5SEd Maste.It
476cc68b6e5SEd Maste.Va WITHOUT_BSDINSTALL
477cc68b6e5SEd Maste.El
47890be798eSDimitry Andric.It Va WITHOUT_DICT
47990be798eSDimitry AndricSet to not build the Webster dictionary files.
48032b5dc9aSSimon J. Gerraty.It Va WITH_DIRDEPS_BUILD
481be894451SBryan DreweryThis is an experimental build system.
48232b5dc9aSSimon J. GerratyFor details see
48332b5dc9aSSimon J. Gerratyhttp://www.crufty.net/sjg/docs/freebsd-meta-mode.htm.
484be894451SBryan DreweryBuild commands can be seen from the top-level with:
485be894451SBryan Drewery.Dl make show-valid-targets
48632b5dc9aSSimon J. GerratyThe build is driven by dirdeps.mk using
48732b5dc9aSSimon J. Gerraty.Va DIRDEPS
48832b5dc9aSSimon J. Gerratystored in
48932b5dc9aSSimon J. GerratyMakefile.depend files found in each directory.
49032b5dc9aSSimon J. Gerraty.Pp
49132b5dc9aSSimon J. GerratyThe build can be started from anywhere, and behaves the same.
49232b5dc9aSSimon J. GerratyThe initial instance of
49332b5dc9aSSimon J. Gerraty.Xr make 1
49432b5dc9aSSimon J. Gerratyrecursively reads
49532b5dc9aSSimon J. Gerraty.Va DIRDEPS
496344e2bb9SEd Mastefrom
497344e2bb9SEd Maste.Pa Makefile.depend ,
49832b5dc9aSSimon J. Gerratycomputing a graph of tree dependencies from the current origin.
49932b5dc9aSSimon J. GerratySetting
50032b5dc9aSSimon J. Gerraty.Va NO_DIRDEPS
501344e2bb9SEd Masteskips checking dirdep dependencies and will only build in the current
5027f76a95cSBryan Dreweryand child directories.
5037f76a95cSBryan Drewery.Va NO_DIRDEPS_BELOW
504344e2bb9SEd Masteskips building any dirdeps and only build the current directory.
50532b5dc9aSSimon J. Gerraty.Pp
506be894451SBryan DreweryThis also utilizes the
507be894451SBryan Drewery.Va WITH_META_MODE
508be894451SBryan Drewerylogic for incremental builds.
50932b5dc9aSSimon J. Gerraty.Pp
510344e2bb9SEd MasteThe build hides commands executed unless
51132b5dc9aSSimon J. Gerraty.Va NO_SILENT
51232b5dc9aSSimon J. Gerratyis defined.
51332b5dc9aSSimon J. Gerraty.Pp
514be894451SBryan DreweryNote that there is currently no mass install feature for this.
515be894451SBryan Drewery.Pp
516344e2bb9SEd MasteWhen set, it enforces these options:
51732b5dc9aSSimon J. Gerraty.Pp
51832b5dc9aSSimon J. Gerraty.Bl -item -compact
51932b5dc9aSSimon J. Gerraty.It
52032b5dc9aSSimon J. Gerraty.Va WITH_INSTALL_AS_USER
52132b5dc9aSSimon J. Gerraty.El
52232b5dc9aSSimon J. Gerraty.Pp
523344e2bb9SEd MasteWhen set, these options are also in effect:
52432b5dc9aSSimon J. Gerraty.Pp
52532b5dc9aSSimon J. Gerraty.Bl -inset -compact
52626b79d5bSHajimu UMEMOTO.It Va WITH_META_MODE
52726b79d5bSHajimu UMEMOTO(unless
52826b79d5bSHajimu UMEMOTO.Va WITHOUT_META_MODE
52926b79d5bSHajimu UMEMOTOis set explicitly)
53032b5dc9aSSimon J. Gerraty.It Va WITH_STAGING
53132b5dc9aSSimon J. Gerraty(unless
53232b5dc9aSSimon J. Gerraty.Va WITHOUT_STAGING
53332b5dc9aSSimon J. Gerratyis set explicitly)
53432b5dc9aSSimon J. Gerraty.It Va WITH_STAGING_MAN
53532b5dc9aSSimon J. Gerraty(unless
53632b5dc9aSSimon J. Gerraty.Va WITHOUT_STAGING_MAN
53732b5dc9aSSimon J. Gerratyis set explicitly)
53832b5dc9aSSimon J. Gerraty.It Va WITH_STAGING_PROG
53932b5dc9aSSimon J. Gerraty(unless
54032b5dc9aSSimon J. Gerraty.Va WITHOUT_STAGING_PROG
54132b5dc9aSSimon J. Gerratyis set explicitly)
54232b5dc9aSSimon J. Gerraty.It Va WITH_SYSROOT
54332b5dc9aSSimon J. Gerraty(unless
54432b5dc9aSSimon J. Gerraty.Va WITHOUT_SYSROOT
54532b5dc9aSSimon J. Gerratyis set explicitly)
54632b5dc9aSSimon J. Gerraty.El
54732b5dc9aSSimon J. Gerraty.Pp
54832b5dc9aSSimon J. GerratyThis must be set in the environment, make command line, or
54932b5dc9aSSimon J. Gerraty.Pa /etc/src-env.conf ,
55032b5dc9aSSimon J. Gerratynot
55132b5dc9aSSimon J. Gerraty.Pa /etc/src.conf .
552cc2520d2SSimon J. Gerraty.It Va WITH_DIRDEPS_CACHE
553cc2520d2SSimon J. GerratyCache result of dirdeps.mk which can save significant time
554cc2520d2SSimon J. Gerratyfor subsequent builds.
555cc2520d2SSimon J. GerratyDepends on
55632b5dc9aSSimon J. Gerraty.Va WITH_DIRDEPS_BUILD .
5570a70ef02SBryan Drewery.Pp
558ba852870SBryan DreweryThis must be set in the environment, make command line, or
5590a70ef02SBryan Drewery.Pa /etc/src-env.conf ,
5600a70ef02SBryan Drewerynot
5610a70ef02SBryan Drewery.Pa /etc/src.conf .
56290be798eSDimitry Andric.It Va WITHOUT_DMAGENT
563344e2bb9SEd MasteSet to not build dma Mail Transport Agent.
56490be798eSDimitry Andric.It Va WITHOUT_DOCCOMPRESS
565344e2bb9SEd MasteSet to not install compressed system documentation.
56690be798eSDimitry AndricOnly the uncompressed version will be installed.
56716f3fdf5SMark Johnston.It Va WITH_DTRACE_TESTS
56816f3fdf5SMark JohnstonSet to build and install the DTrace test suite in
56916f3fdf5SMark Johnston.Pa /usr/tests/cddl/usr.sbin/dtrace .
57016f3fdf5SMark JohnstonThis test suite is considered experimental on architectures other than
57116f3fdf5SMark Johnstonamd64/amd64 and running it may cause system instability.
57290be798eSDimitry Andric.It Va WITHOUT_DYNAMICROOT
57390be798eSDimitry AndricSet this if you do not want to link
57490be798eSDimitry Andric.Pa /bin
57590be798eSDimitry Andricand
57690be798eSDimitry Andric.Pa /sbin
57790be798eSDimitry Andricdynamically.
57893da8366SEnji Cooper.It Va WITHOUT_EE
57993da8366SEnji CooperSet to not build and install
58093da8366SEnji Cooper.Xr edit 1 ,
58193da8366SEnji Cooper.Xr ee 1 ,
58293da8366SEnji Cooperand related programs.
5830cd582c8SEnji Cooper.It Va WITHOUT_EFI
5840cd582c8SEnji CooperSet not to build
5850cd582c8SEnji Cooper.Xr efivar 3
5860cd582c8SEnji Cooperand
5870cd582c8SEnji Cooper.Xr efivar 8 .
5880cd582c8SEnji Cooper.Pp
589344e2bb9SEd MasteThis is a default setting on
590d3112319SMitchell Hornemips/mips, mips/mips64, powerpc/powerpc and powerpc/powerpc64.
5910cd582c8SEnji Cooper.It Va WITH_EFI
5920cd582c8SEnji CooperSet to build
5930cd582c8SEnji Cooper.Xr efivar 3
5940cd582c8SEnji Cooperand
5950cd582c8SEnji Cooper.Xr efivar 8 .
5960cd582c8SEnji Cooper.Pp
597344e2bb9SEd MasteThis is a default setting on
598d3112319SMitchell Horneamd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, riscv/riscv64 and riscv/riscv64sf.
5995977355fSBryan Drewery.It Va WITHOUT_ELFTOOLCHAIN_BOOTSTRAP
6005977355fSBryan DrewerySet to not build ELF Tool Chain tools
6015977355fSBryan Drewery(addr2line, nm, size, strings and strip)
6025977355fSBryan Dreweryas part of the bootstrap process.
6035977355fSBryan Drewery.Bf -symbolic
6045977355fSBryan DreweryAn alternate bootstrap tool chain must be provided.
6055977355fSBryan Drewery.Ef
60690be798eSDimitry Andric.It Va WITHOUT_EXAMPLES
60790be798eSDimitry AndricSet to avoid installing examples to
60890be798eSDimitry Andric.Pa /usr/share/examples/ .
60943f75d57SBjoern A. Zeeb.It Va WITH_EXPERIMENTAL
61043f75d57SBjoern A. ZeebSet to include experimental features in the build.
611d5a2667bSJonathan T. Looney.It Va WITH_EXTRA_TCP_STACKS
612d5a2667bSJonathan T. LooneySet to build extra TCP stack modules.
61390be798eSDimitry Andric.It Va WITHOUT_FDT
61490be798eSDimitry AndricSet to not build Flattened Device Tree support as part of the base system.
61590be798eSDimitry AndricThis includes the device tree compiler (dtc) and libfdt support library.
6160e0e9604SEnji Cooper.It Va WITHOUT_FILE
6170e0e9604SEnji CooperSet to not build
6180e0e9604SEnji Cooper.Xr file 1
6190e0e9604SEnji Cooperand related programs.
620770379b9SEd MasteWhen set, it enforces these options:
621770379b9SEd Maste.Pp
622770379b9SEd Maste.Bl -item -compact
623770379b9SEd Maste.It
624770379b9SEd Maste.Va WITHOUT_SVNLITE
625770379b9SEd Maste.El
6260e0e9604SEnji Cooper.It Va WITHOUT_FINGER
6270e0e9604SEnji CooperSet to not build or install
6280e0e9604SEnji Cooper.Xr finger 1
6290e0e9604SEnji Cooperand
6300e0e9604SEnji Cooper.Xr fingerd 8 .
63190be798eSDimitry Andric.It Va WITHOUT_FLOPPY
63290be798eSDimitry AndricSet to not build or install programs
63390be798eSDimitry Andricfor operating floppy disk driver.
63490be798eSDimitry Andric.It Va WITHOUT_FMTREE
63590be798eSDimitry AndricSet to not build and install
63690be798eSDimitry Andric.Pa /usr/sbin/fmtree .
637a0f6423bSEd Maste.It Va WITHOUT_FORMAT_EXTENSIONS
638a0f6423bSEd MasteSet to not enable
639a0f6423bSEd Maste.Fl fformat-extensions
640a0f6423bSEd Mastewhen compiling the kernel.
641a0f6423bSEd MasteAlso disables all format checking.
64290be798eSDimitry Andric.It Va WITHOUT_FORTH
64390be798eSDimitry AndricSet to build bootloaders without Forth support.
64490be798eSDimitry Andric.It Va WITHOUT_FP_LIBC
64590be798eSDimitry AndricSet to build
64690be798eSDimitry Andric.Nm libc
64790be798eSDimitry Andricwithout floating-point support.
64890be798eSDimitry Andric.It Va WITHOUT_FREEBSD_UPDATE
64990be798eSDimitry AndricSet to not build
65090be798eSDimitry Andric.Xr freebsd-update 8 .
6510e0e9604SEnji Cooper.It Va WITHOUT_FTP
6520e0e9604SEnji CooperSet to not build or install
6530e0e9604SEnji Cooper.Xr ftp 1
6540e0e9604SEnji Cooperand
6550e0e9604SEnji Cooper.Xr ftpd 8 .
65690be798eSDimitry Andric.It Va WITHOUT_GAMES
65790be798eSDimitry AndricSet to not build games.
65890be798eSDimitry Andric.It Va WITHOUT_GDB
65990be798eSDimitry AndricSet to not build
66090be798eSDimitry Andric.Xr gdb 1 .
6615be09b10SEd Maste.Pp
662344e2bb9SEd MasteThis is a default setting on
6634cee74dfSEd Mastearm64/aarch64, riscv/riscv64 and riscv/riscv64sf.
6645977355fSBryan Drewery.It Va WITH_GDB
6655977355fSBryan DrewerySet to build
6665977355fSBryan Drewery.Xr gdb 1 .
6675977355fSBryan Drewery.Pp
668344e2bb9SEd MasteThis is a default setting on
66973699177SEd Masteamd64/amd64, arm/armv6, arm/armv7, i386/i386, mips/mips, mips/mips64, powerpc/powerpc and powerpc/powerpc64.
67036e8c7bbSEd Maste.It Va WITHOUT_GNU_DIFF
67136e8c7bbSEd MasteSet to not build GNU
67236e8c7bbSEd Maste.Xr diff3 1 .
67336e8c7bbSEd Maste.It Va WITHOUT_GNU_GREP
67436e8c7bbSEd MasteSet to not build GNU
67536e8c7bbSEd Maste.Xr grep 1 .
676e9e768f7SEd Maste.It Va WITH_GNU_GREP_COMPAT
677e9e768f7SEd MasteSet this option to include GNU extensions in
678e9e768f7SEd Maste.Xr bsdgrep 1
679e9e768f7SEd Masteby linking against libgnuregex.
6807840b63aSEnji Cooper.It Va WITHOUT_GOOGLETEST
6817840b63aSEnji CooperSet to neither build nor install
6827840b63aSEnji Cooper.Lb libgmock ,
6837840b63aSEnji Cooper.Lb libgtest ,
6847840b63aSEnji Cooperand dependent tests.
68545181e6dSEd Maste.Pp
68645181e6dSEd MasteThis is a default setting on
68773699177SEd Mastemips/mips and mips/mips64.
68845181e6dSEd Maste.It Va WITH_GOOGLETEST
68945181e6dSEd MasteSet to build and install
69045181e6dSEd Maste.Lb libgmock ,
69145181e6dSEd Maste.Lb libgtest ,
69245181e6dSEd Masteand dependent tests.
69345181e6dSEd Maste.Pp
69445181e6dSEd MasteThis is a default setting on
69545181e6dSEd Masteamd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
69690be798eSDimitry Andric.It Va WITHOUT_GPIO
69790be798eSDimitry AndricSet to not build
69890be798eSDimitry Andric.Xr gpioctl 8
69990be798eSDimitry Andricas part of the base system.
70090be798eSDimitry Andric.It Va WITHOUT_GSSAPI
70190be798eSDimitry AndricSet to not build libgssapi.
70261940879SEnji Cooper.It Va WITHOUT_HAST
70361940879SEnji CooperSet to not build
70461940879SEnji Cooper.Xr hastd 8
70561940879SEnji Cooperand related utilities.
70690be798eSDimitry Andric.It Va WITH_HESIOD
70790be798eSDimitry AndricSet to build Hesiod support.
70890be798eSDimitry Andric.It Va WITHOUT_HTML
70990be798eSDimitry AndricSet to not build HTML docs.
7102c4b4abcSXin LI.It Va WITHOUT_HYPERV
7112c4b4abcSXin LISet to not build or install HyperV utilities.
7120543ade3SBrooks Davis.Pp
7130543ade3SBrooks DavisThis is a default setting on
71473699177SEd Mastearm/armv6, arm/armv7, arm64/aarch64, mips/mips, mips/mips64, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
7150543ade3SBrooks Davis.It Va WITH_HYPERV
7160543ade3SBrooks DavisSet to build or install HyperV utilities.
7170543ade3SBrooks Davis.Pp
7180543ade3SBrooks DavisThis is a default setting on
7190543ade3SBrooks Davisamd64/amd64 and i386/i386.
72090be798eSDimitry Andric.It Va WITHOUT_ICONV
72190be798eSDimitry AndricSet to not build iconv as part of libc.
722c5d09a87SGlen Barber.It Va WITHOUT_INCLUDES
723c5d09a87SGlen BarberSet to not install header files.
724c5d09a87SGlen BarberThis option used to be spelled
725c5d09a87SGlen Barber.Va NO_INCS .
726c5d09a87SGlen Barber.Bf -symbolic
727c5d09a87SGlen BarberThe option does not work for build targets.
728c5d09a87SGlen Barber.Ef
72990be798eSDimitry Andric.It Va WITHOUT_INET
73090be798eSDimitry AndricSet to not build programs and libraries related to IPv4 networking.
731344e2bb9SEd MasteWhen set, it enforces these options:
73290be798eSDimitry Andric.Pp
73390be798eSDimitry Andric.Bl -item -compact
73490be798eSDimitry Andric.It
73590be798eSDimitry Andric.Va WITHOUT_INET_SUPPORT
73690be798eSDimitry Andric.El
73790be798eSDimitry Andric.It Va WITHOUT_INET6
73890be798eSDimitry AndricSet to not build
73990be798eSDimitry Andricprograms and libraries related to IPv6 networking.
740344e2bb9SEd MasteWhen set, it enforces these options:
74190be798eSDimitry Andric.Pp
74290be798eSDimitry Andric.Bl -item -compact
74390be798eSDimitry Andric.It
74490be798eSDimitry Andric.Va WITHOUT_INET6_SUPPORT
74590be798eSDimitry Andric.El
74690be798eSDimitry Andric.It Va WITHOUT_INET6_SUPPORT
74790be798eSDimitry AndricSet to build libraries, programs, and kernel modules without IPv6 support.
7480e0e9604SEnji Cooper.It Va WITHOUT_INETD
7490e0e9604SEnji CooperSet to not build
7500e0e9604SEnji Cooper.Xr inetd 8 .
75190be798eSDimitry Andric.It Va WITHOUT_INET_SUPPORT
75290be798eSDimitry AndricSet to build libraries, programs, and kernel modules without IPv4 support.
75390be798eSDimitry Andric.It Va WITHOUT_INSTALLLIB
754344e2bb9SEd MasteSet this to not install optional libraries.
755344e2bb9SEd MasteFor example, when creating a
75690be798eSDimitry Andric.Xr nanobsd 8
75790be798eSDimitry Andricimage.
758f79bedf5SBryan Drewery.Bf -symbolic
759f79bedf5SBryan DreweryThe option does not work for build targets.
760f79bedf5SBryan Drewery.Ef
76190be798eSDimitry Andric.It Va WITH_INSTALL_AS_USER
76290be798eSDimitry AndricSet to make install targets succeed for non-root users by installing
76390be798eSDimitry Andricfiles with owner and group attributes set to that of the user running
76490be798eSDimitry Andricthe
76590be798eSDimitry Andric.Xr make 1
76690be798eSDimitry Andriccommand.
767344e2bb9SEd MasteThe user still must set the
76890be798eSDimitry Andric.Va DESTDIR
76990be798eSDimitry Andricvariable to point to a directory where the user has write permissions.
77090be798eSDimitry Andric.It Va WITHOUT_IPFILTER
77190be798eSDimitry AndricSet to not build IP Filter package.
77290be798eSDimitry Andric.It Va WITHOUT_IPFW
77390be798eSDimitry AndricSet to not build IPFW tools.
77488342134SEnji Cooper.It Va WITHOUT_IPSEC_SUPPORT
77588342134SEnji CooperSet to not build the kernel with
77688342134SEnji Cooper.Xr ipsec 4
77788342134SEnji Coopersupport.
77888342134SEnji CooperThis option is needed for
77988342134SEnji Cooper.Xr ipsec 4
78088342134SEnji Cooperand
78188342134SEnji Cooper.Xr tcpmd5 4 .
78293da8366SEnji Cooper.It Va WITHOUT_ISCSI
78393da8366SEnji CooperSet to not build
78426d6bbfaSSevan Janiyan.Xr iscsid 8
78593da8366SEnji Cooperand related utilities.
78690be798eSDimitry Andric.It Va WITHOUT_JAIL
78790be798eSDimitry AndricSet to not build tools for the support of jails; e.g.,
78890be798eSDimitry Andric.Xr jail 8 .
78990be798eSDimitry Andric.It Va WITHOUT_KDUMP
79090be798eSDimitry AndricSet to not build
79190be798eSDimitry Andric.Xr kdump 1
79290be798eSDimitry Andricand
79390be798eSDimitry Andric.Xr truss 1 .
79490be798eSDimitry Andric.It Va WITHOUT_KERBEROS
795344e2bb9SEd MasteSet this to not build Kerberos 5 (KTH Heimdal).
796344e2bb9SEd MasteWhen set, these options are also in effect:
79790be798eSDimitry Andric.Pp
79890be798eSDimitry Andric.Bl -inset -compact
79990be798eSDimitry Andric.It Va WITHOUT_GSSAPI
80090be798eSDimitry Andric(unless
80190be798eSDimitry Andric.Va WITH_GSSAPI
80290be798eSDimitry Andricis set explicitly)
803bf64e879SBryan Drewery.It Va WITHOUT_KERBEROS_SUPPORT
804bf64e879SBryan Drewery(unless
805bf64e879SBryan Drewery.Va WITH_KERBEROS_SUPPORT
806bf64e879SBryan Dreweryis set explicitly)
80790be798eSDimitry Andric.El
80890be798eSDimitry Andric.It Va WITHOUT_KERBEROS_SUPPORT
80990be798eSDimitry AndricSet to build some programs without Kerberos support, like
81090be798eSDimitry Andric.Xr ssh 1 ,
81190be798eSDimitry Andric.Xr telnet 1 ,
81290be798eSDimitry Andric.Xr sshd 8 ,
81390be798eSDimitry Andricand
81490be798eSDimitry Andric.Xr telnetd 8 .
8156f7527f0SEd Maste.It Va WITH_KERNEL_RETPOLINE
8166f7527f0SEd MasteSet to enable the "retpoline" mitigation for CVE-2017-5715 in the kernel
8176f7527f0SEd Mastebuild.
818a0f6423bSEd Maste.It Va WITHOUT_KERNEL_SYMBOLS
819a0f6423bSEd MasteSet to not install kernel symbol files.
820a0f6423bSEd Maste.Bf -symbolic
821a0f6423bSEd MasteThis option is recommended for those people who have small root partitions.
822a0f6423bSEd Maste.Ef
82390be798eSDimitry Andric.It Va WITHOUT_KVM
82490be798eSDimitry AndricSet to not build the
82590be798eSDimitry Andric.Nm libkvm
82690be798eSDimitry Andriclibrary as a part of the base system.
82790be798eSDimitry Andric.Bf -symbolic
82890be798eSDimitry AndricThe option has no effect yet.
82990be798eSDimitry Andric.Ef
830bf64e879SBryan DreweryWhen set, these options are also in effect:
83190be798eSDimitry Andric.Pp
832bf64e879SBryan Drewery.Bl -inset -compact
833bf64e879SBryan Drewery.It Va WITHOUT_KVM_SUPPORT
834bf64e879SBryan Drewery(unless
835bf64e879SBryan Drewery.Va WITH_KVM_SUPPORT
836bf64e879SBryan Dreweryis set explicitly)
83790be798eSDimitry Andric.El
83890be798eSDimitry Andric.It Va WITHOUT_KVM_SUPPORT
83990be798eSDimitry AndricSet to build some programs without optional
84090be798eSDimitry Andric.Nm libkvm
84190be798eSDimitry Andricsupport.
84290be798eSDimitry Andric.It Va WITHOUT_LDNS
84390be798eSDimitry AndricSetting this variable will prevent the LDNS library from being built.
844344e2bb9SEd MasteWhen set, it enforces these options:
84590be798eSDimitry Andric.Pp
84690be798eSDimitry Andric.Bl -item -compact
84790be798eSDimitry Andric.It
84890be798eSDimitry Andric.Va WITHOUT_LDNS_UTILS
84990be798eSDimitry Andric.It
85090be798eSDimitry Andric.Va WITHOUT_UNBOUND
85190be798eSDimitry Andric.El
85290be798eSDimitry Andric.It Va WITHOUT_LDNS_UTILS
85390be798eSDimitry AndricSetting this variable will prevent building the LDNS utilities
85490be798eSDimitry Andric.Xr drill 1
85590be798eSDimitry Andricand
85690be798eSDimitry Andric.Xr host 1 .
85790be798eSDimitry Andric.It Va WITHOUT_LEGACY_CONSOLE
85890be798eSDimitry AndricSet to not build programs that support a legacy PC console; e.g.,
85923a6b49aSEdward Tomasz Napierala.Xr kbdcontrol 1
86090be798eSDimitry Andricand
86123a6b49aSEdward Tomasz Napierala.Xr vidcontrol 1 .
86290be798eSDimitry Andric.It Va WITHOUT_LIB32
863c5d09a87SGlen BarberOn 64-bit platforms, set to not build 32-bit library set and a
86490be798eSDimitry Andric.Nm ld-elf32.so.1
86590be798eSDimitry Andricruntime linker.
866f3cdc622SEd Maste.Pp
867f3cdc622SEd MasteThis is a default setting on
86873699177SEd Mastearm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
86990be798eSDimitry Andric.It Va WITHOUT_LIBCPLUSPLUS
87090be798eSDimitry AndricSet to avoid building libcxxrt and libc++.
87190be798eSDimitry Andric.It Va WITHOUT_LIBPTHREAD
87290be798eSDimitry AndricSet to not build the
87390be798eSDimitry Andric.Nm libpthread
87490be798eSDimitry Andricproviding library,
87590be798eSDimitry Andric.Nm libthr .
876344e2bb9SEd MasteWhen set, it enforces these options:
87790be798eSDimitry Andric.Pp
87890be798eSDimitry Andric.Bl -item -compact
87990be798eSDimitry Andric.It
88090be798eSDimitry Andric.Va WITHOUT_LIBTHR
88190be798eSDimitry Andric.El
8828a7c8ae4SBryan Drewery.It Va WITH_LIBSOFT
8838a7c8ae4SBryan DreweryOn armv6 only, set to enable soft float ABI compatibility libraries.
8848a7c8ae4SBryan DreweryThis option is for transitioning to the new hard float ABI.
88590be798eSDimitry Andric.It Va WITHOUT_LIBTHR
88690be798eSDimitry AndricSet to not build the
88790be798eSDimitry Andric.Nm libthr
88890be798eSDimitry Andric(1:1 threading)
88990be798eSDimitry Andriclibrary.
89036e8c7bbSEd Maste.It Va WITHOUT_LLD
89136e8c7bbSEd MasteSet to not build LLVM's lld linker.
8921500eb21SEd Maste.It Va WITHOUT_LLDB
8931500eb21SEd MasteSet to not build the LLDB debugger.
8941500eb21SEd Maste.Pp
895344e2bb9SEd MasteThis is a default setting on
89673699177SEd Mastearm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
89790be798eSDimitry Andric.It Va WITH_LLDB
89890be798eSDimitry AndricSet to build the LLDB debugger.
8991500eb21SEd Maste.Pp
900344e2bb9SEd MasteThis is a default setting on
901e5259506SEnji Cooperamd64/amd64, arm64/aarch64 and i386/i386.
9026c2b7edaSEd Maste.It Va WITHOUT_LLD_BOOTSTRAP
9036c2b7edaSEd MasteSet to not build the LLD linker during the bootstrap phase of
9046c2b7edaSEd Mastethe build.
9056c2b7edaSEd MasteTo be able to build the system, either Binutils or LLD bootstrap must be
9066c2b7edaSEd Masteenabled unless an alternate linker is provided via XLD.
907661cf9b6SYoshihiro Takahashi.It Va WITHOUT_LLD_IS_LD
90836e8c7bbSEd MasteSet to use GNU binutils ld as the system linker, instead of LLVM's LLD.
909a870eaa4SKyle Evans.It Va WITHOUT_LLVM_ASSERTIONS
910a870eaa4SKyle EvansSet to disable debugging assertions in LLVM.
9115b9c3654SEd Maste.It Va WITHOUT_LLVM_COV
9125b9c3654SEd MasteSet to not build the
9135b9c3654SEd Maste.Xr llvm-cov 1
9145b9c3654SEd Mastetool.
915cbafd263SDimitry Andric.It Va WITHOUT_LLVM_TARGET_AARCH64
916cbafd263SDimitry AndricSet to not build LLVM target support for AArch64.
917bf64e879SBryan DreweryThe
918bf64e879SBryan Drewery.Va LLVM_TARGET_ALL
919bf64e879SBryan Dreweryoption should be used rather than this in most cases.
920bf64e879SBryan Drewery.It Va WITHOUT_LLVM_TARGET_ALL
921bf64e879SBryan DrewerySet to only build the required LLVM target support.
922bf64e879SBryan DreweryThis option is preferred to specific target support options.
923bf64e879SBryan DreweryWhen set, these options are also in effect:
924bf64e879SBryan Drewery.Pp
925bf64e879SBryan Drewery.Bl -inset -compact
926bf64e879SBryan Drewery.It Va WITHOUT_LLVM_TARGET_AARCH64
927bf64e879SBryan Drewery(unless
928bf64e879SBryan Drewery.Va WITH_LLVM_TARGET_AARCH64
929bf64e879SBryan Dreweryis set explicitly)
930bf64e879SBryan Drewery.It Va WITHOUT_LLVM_TARGET_ARM
931bf64e879SBryan Drewery(unless
932bf64e879SBryan Drewery.Va WITH_LLVM_TARGET_ARM
933bf64e879SBryan Dreweryis set explicitly)
934bf64e879SBryan Drewery.It Va WITHOUT_LLVM_TARGET_MIPS
935bf64e879SBryan Drewery(unless
936bf64e879SBryan Drewery.Va WITH_LLVM_TARGET_MIPS
937bf64e879SBryan Dreweryis set explicitly)
938bf64e879SBryan Drewery.It Va WITHOUT_LLVM_TARGET_POWERPC
939bf64e879SBryan Drewery(unless
940bf64e879SBryan Drewery.Va WITH_LLVM_TARGET_POWERPC
941bf64e879SBryan Dreweryis set explicitly)
942f3cdc622SEd Maste.It Va WITHOUT_LLVM_TARGET_RISCV
943f3cdc622SEd Maste(unless
944f3cdc622SEd Maste.Va WITH_LLVM_TARGET_RISCV
945f3cdc622SEd Masteis set explicitly)
946bf64e879SBryan Drewery.El
947cbafd263SDimitry Andric.It Va WITHOUT_LLVM_TARGET_ARM
948cbafd263SDimitry AndricSet to not build LLVM target support for ARM.
949bf64e879SBryan DreweryThe
950bf64e879SBryan Drewery.Va LLVM_TARGET_ALL
951bf64e879SBryan Dreweryoption should be used rather than this in most cases.
95289edb881SDimitry Andric.It Va WITH_LLVM_TARGET_BPF
95389edb881SDimitry AndricSet to build LLVM target support for BPF.
95489edb881SDimitry AndricThe
95589edb881SDimitry Andric.Va LLVM_TARGET_ALL
95689edb881SDimitry Andricoption should be used rather than this in most cases.
957cbafd263SDimitry Andric.It Va WITHOUT_LLVM_TARGET_MIPS
958cbafd263SDimitry AndricSet to not build LLVM target support for MIPS.
959bf64e879SBryan DreweryThe
960bf64e879SBryan Drewery.Va LLVM_TARGET_ALL
961bf64e879SBryan Dreweryoption should be used rather than this in most cases.
962cbafd263SDimitry Andric.It Va WITHOUT_LLVM_TARGET_POWERPC
963cbafd263SDimitry AndricSet to not build LLVM target support for PowerPC.
964bf64e879SBryan DreweryThe
965bf64e879SBryan Drewery.Va LLVM_TARGET_ALL
966bf64e879SBryan Dreweryoption should be used rather than this in most cases.
967f3cdc622SEd Maste.It Va WITHOUT_LLVM_TARGET_RISCV
968f3cdc622SEd MasteSet to not build LLVM target support for RISC-V.
969f3cdc622SEd MasteThe
970f3cdc622SEd Maste.Va LLVM_TARGET_ALL
971f3cdc622SEd Masteoption should be used rather than this in most cases.
972cbafd263SDimitry Andric.It Va WITHOUT_LLVM_TARGET_X86
973cbafd263SDimitry AndricSet to not build LLVM target support for X86.
974bf64e879SBryan DreweryThe
975bf64e879SBryan Drewery.Va LLVM_TARGET_ALL
976bf64e879SBryan Dreweryoption should be used rather than this in most cases.
977bfdf8aa9SJohn Baldwin.It Va WITH_LOADER_EFI_SECUREBOOT
978bfdf8aa9SJohn BaldwinEnable building
979bfdf8aa9SJohn Baldwin.Xr loader 8
980bfdf8aa9SJohn Baldwinwith support for verification based on certificates obtained from UEFI.
981bfdf8aa9SJohn Baldwin.Pp
982782df3edSEd Maste.It Va WITH_LOADER_FIREWIRE
983e8788097SKonstantin BelousovEnable firewire support in /boot/loader on x86. This option is a nop
984e8788097SKonstantin Belousovon all other platforms.
9858edab9cdSWarner Losh.It Va WITH_LOADER_FORCE_LE
9868edab9cdSWarner LoshSet to force the powerpc boot loader to launch the kernel in little
9878edab9cdSWarner Loshendian mode.
988782df3edSEd Maste.It Va WITHOUT_LOADER_GELI
989782df3edSEd MasteDisable inclusion of GELI crypto support in the boot chain binaries.
99030323356SWarner Losh.Pp
99130323356SWarner LoshThis is a default setting on
992429932baSEd Mastepowerpc/powerpc and powerpc/powerpc64.
9938edab9cdSWarner Losh.It Va WITH_LOADER_GELI
9948edab9cdSWarner LoshSet to build GELI bootloader support.
9958edab9cdSWarner Losh.Pp
9968edab9cdSWarner LoshThis is a default setting on
99773699177SEd Masteamd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, mips/mips64, riscv/riscv64 and riscv/riscv64sf.
9988edab9cdSWarner Losh.It Va WITHOUT_LOADER_LUA
9998edab9cdSWarner LoshSet to not build LUA bindings for the boot loader.
10008edab9cdSWarner Losh.Pp
10018edab9cdSWarner LoshThis is a default setting on
1002429932baSEd Mastepowerpc/powerpc and powerpc/powerpc64.
10036f7527f0SEd Maste.It Va WITH_LOADER_LUA
10046f7527f0SEd MasteSet to build LUA bindings for the boot loader.
100530323356SWarner Losh.Pp
100630323356SWarner LoshThis is a default setting on
100773699177SEd Masteamd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, mips/mips64, riscv/riscv64 and riscv/riscv64sf.
1008b8f3641fSKyle Evans.It Va WITHOUT_LOADER_OFW
1009b8f3641fSKyle EvansDisable building of openfirmware bootloader components.
1010b8f3641fSKyle Evans.Pp
1011b8f3641fSKyle EvansThis 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.
1013b8f3641fSKyle Evans.It Va WITH_LOADER_OFW
1014b8f3641fSKyle EvansSet to build openfirmware bootloader components.
1015b8f3641fSKyle Evans.Pp
1016b8f3641fSKyle EvansThis is a default setting on
1017429932baSEd Mastepowerpc/powerpc and powerpc/powerpc64.
1018b8f3641fSKyle Evans.It Va WITHOUT_LOADER_UBOOT
1019b8f3641fSKyle EvansDisable building of ubldr.
1020b8f3641fSKyle Evans.Pp
1021b8f3641fSKyle EvansThis is a default setting on
1022429932baSEd Masteamd64/amd64, arm64/aarch64, i386/i386, riscv/riscv64 and riscv/riscv64sf.
1023b8f3641fSKyle Evans.It Va WITH_LOADER_UBOOT
1024b8f3641fSKyle EvansSet to build ubldr.
1025b8f3641fSKyle Evans.Pp
1026b8f3641fSKyle EvansThis is a default setting on
102773699177SEd Mastearm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc and powerpc/powerpc64.
10281f7d1483SEd Maste.It Va WITH_LOADER_VERBOSE
10291f7d1483SEd MasteSet to build with extra verbose debugging in the loader.
10301f7d1483SEd MasteMay explode already nearly too large loader over the limit.
10311f7d1483SEd MasteUse with care.
10321f7d1483SEd Maste
1033bfdf8aa9SJohn Baldwin.It Va WITH_LOADER_VERIEXEC
1034bfdf8aa9SJohn BaldwinEnable building
1035bfdf8aa9SJohn Baldwin.Xr loader 8
1036de19b521SDimitry Andricwith support for verification similar to Verified Exec.
1037bfdf8aa9SJohn Baldwin.Pp
1038de19b521SDimitry AndricDepends on
1039de19b521SDimitry Andric.Va WITH_BEARSSL .
1040bfdf8aa9SJohn BaldwinWhen set, these options are also in effect:
1041bfdf8aa9SJohn Baldwin.Pp
1042bfdf8aa9SJohn Baldwin.Bl -inset -compact
1043bfdf8aa9SJohn Baldwin.It Va WITH_LOADER_EFI_SECUREBOOT
1044bfdf8aa9SJohn Baldwin(unless
1045bfdf8aa9SJohn Baldwin.Va WITHOUT_LOADER_EFI_SECUREBOOT
1046bfdf8aa9SJohn Baldwinis set explicitly)
1047f87a2082SEd Maste.It Va WITH_LOADER_VERIEXEC_VECTX
1048f87a2082SEd Maste(unless
1049f87a2082SEd Maste.Va WITHOUT_LOADER_VERIEXEC_VECTX
1050f87a2082SEd Masteis set explicitly)
1051bfdf8aa9SJohn Baldwin.El
1052de19b521SDimitry Andric.It Va WITH_LOADER_VERIEXEC_PASS_MANIFEST
1053de19b521SDimitry AndricEnable building
1054de19b521SDimitry Andric.Xr loader 8
1055de19b521SDimitry Andricwith support to pass a verified manifest to the kernel.
1056de19b521SDimitry AndricThe kernel has to be built with a module to parse the manifest.
1057de19b521SDimitry Andric.Pp
1058de19b521SDimitry AndricDepends on
1059de19b521SDimitry Andric.Va WITH_LOADER_VERIEXEC .
10601f7d1483SEd Maste.It Va WITHOUT_LOADER_ZFS
10611f7d1483SEd MasteSet to not build ZFS file system boot loader support.
106290be798eSDimitry Andric.It Va WITHOUT_LOCALES
106390be798eSDimitry AndricSet to not build localization files; see
106490be798eSDimitry Andric.Xr locale 1 .
106590be798eSDimitry Andric.It Va WITHOUT_LOCATE
106690be798eSDimitry AndricSet to not build
106790be798eSDimitry Andric.Xr locate 1
106890be798eSDimitry Andricand related programs.
106990be798eSDimitry Andric.It Va WITHOUT_LPR
107090be798eSDimitry AndricSet to not build
107190be798eSDimitry Andric.Xr lpr 1
107290be798eSDimitry Andricand related programs.
107390be798eSDimitry Andric.It Va WITHOUT_LS_COLORS
107490be798eSDimitry AndricSet to build
107590be798eSDimitry Andric.Xr ls 1
107690be798eSDimitry Andricwithout support for colors to distinguish file types.
107790be798eSDimitry Andric.It Va WITHOUT_LZMA_SUPPORT
107890be798eSDimitry AndricSet to build some programs without optional lzma compression support.
107990be798eSDimitry Andric.It Va WITHOUT_MAIL
108090be798eSDimitry AndricSet to not build any mail support (MUA or MTA).
1081344e2bb9SEd MasteWhen set, it enforces these options:
108290be798eSDimitry Andric.Pp
108390be798eSDimitry Andric.Bl -item -compact
108490be798eSDimitry Andric.It
108590be798eSDimitry Andric.Va WITHOUT_DMAGENT
108690be798eSDimitry Andric.It
108790be798eSDimitry Andric.Va WITHOUT_MAILWRAPPER
108890be798eSDimitry Andric.It
108990be798eSDimitry Andric.Va WITHOUT_SENDMAIL
109090be798eSDimitry Andric.El
109190be798eSDimitry Andric.It Va WITHOUT_MAILWRAPPER
109290be798eSDimitry AndricSet to not build the
109390be798eSDimitry Andric.Xr mailwrapper 8
109490be798eSDimitry AndricMTA selector.
109590be798eSDimitry Andric.It Va WITHOUT_MAKE
109690be798eSDimitry AndricSet to not install
109790be798eSDimitry Andric.Xr make 1
109890be798eSDimitry Andricand related support files.
109974782f0eSEnji Cooper.It Va WITHOUT_MAKE_CHECK_USE_SANDBOX
110074782f0eSEnji CooperSet to not execute
110174782f0eSEnji Cooper.Dq Li "make check"
110274782f0eSEnji Cooperin limited sandbox mode.
110374782f0eSEnji CooperThis option should be paired with
110474782f0eSEnji Cooper.Va WITH_INSTALL_AS_USER
110574782f0eSEnji Cooperif executed as an unprivileged user.
110674782f0eSEnji CooperSee
110774782f0eSEnji Cooper.Xr tests 7
110874782f0eSEnji Cooperfor more details.
11097d4374f6SDimitry Andric.It Va WITH_MALLOC_PRODUCTION
11107d4374f6SDimitry AndricSet to disable assertions and statistics gathering in
11117d4374f6SDimitry Andric.Xr malloc 3 .
11127d4374f6SDimitry AndricIt also defaults the A and J runtime options to off.
111390be798eSDimitry Andric.It Va WITHOUT_MAN
111490be798eSDimitry AndricSet to not build manual pages.
1115344e2bb9SEd MasteWhen set, these options are also in effect:
111690be798eSDimitry Andric.Pp
111790be798eSDimitry Andric.Bl -inset -compact
111890be798eSDimitry Andric.It Va WITHOUT_MAN_UTILS
111990be798eSDimitry Andric(unless
112090be798eSDimitry Andric.Va WITH_MAN_UTILS
112190be798eSDimitry Andricis set explicitly)
112290be798eSDimitry Andric.El
112390be798eSDimitry Andric.It Va WITHOUT_MANCOMPRESS
112490be798eSDimitry AndricSet to not to install compressed man pages.
112590be798eSDimitry AndricOnly the uncompressed versions will be installed.
112690be798eSDimitry Andric.It Va WITHOUT_MAN_UTILS
112790be798eSDimitry AndricSet to not build utilities for manual pages,
112890be798eSDimitry Andric.Xr apropos 1 ,
112990be798eSDimitry Andric.Xr makewhatis 1 ,
113090be798eSDimitry Andric.Xr man 1 ,
113190be798eSDimitry Andric.Xr whatis 1 ,
113290be798eSDimitry Andric.Xr manctl 8 ,
113390be798eSDimitry Andricand related support files.
1134cc2520d2SSimon J. Gerraty.It Va WITH_META_MODE
1135344e2bb9SEd MasteCreate
1136be894451SBryan Drewery.Xr make 1
1137be894451SBryan Drewerymeta files when building, which can provide a reliable incremental build when
1138be894451SBryan Dreweryusing
1139be894451SBryan Drewery.Xr filemon 4 .
1140344e2bb9SEd MasteThe meta file is created in OBJDIR as
1141be894451SBryan Drewery.Pa target.meta .
1142344e2bb9SEd MasteThese meta files track the command that was executed, its output, and the
1143344e2bb9SEd Mastecurrent directory.
11442710e62cSBryan DreweryThe
11457f76a95cSBryan Drewery.Xr filemon 4
11462710e62cSBryan Drewerymodule is required unless
11472710e62cSBryan Drewery.Va NO_FILEMON
11482710e62cSBryan Dreweryis defined.
1149344e2bb9SEd MasteWhen the module is loaded, any files used by the commands executed are
1150344e2bb9SEd Mastetracked as dependencies for the target in its meta file.
1151344e2bb9SEd MasteThe target is considered out-of-date and rebuilt if any of these
1152344e2bb9SEd Masteconditions are true compared to the last build:
1153be894451SBryan Drewery.Bl -bullet -compact
1154be894451SBryan Drewery.It
1155be894451SBryan DreweryThe command to execute changes.
1156be894451SBryan Drewery.It
1157be894451SBryan DreweryThe current working directory changes.
1158be894451SBryan Drewery.It
1159a4a2269eSBryan DreweryThe target's meta file is missing.
1160a4a2269eSBryan Drewery.It
1161a4a2269eSBryan DreweryThe target's meta file is missing filemon data when filemon is loaded
1162a4a2269eSBryan Dreweryand a previous run did not have it loaded.
1163be894451SBryan Drewery.It
1164be894451SBryan Drewery[requires
1165be894451SBryan Drewery.Xr filemon 4 ]
1166be894451SBryan DreweryFiles read, executed or linked to are newer than the target.
1167be894451SBryan Drewery.It
1168be894451SBryan Drewery[requires
1169be894451SBryan Drewery.Xr filemon 4 ]
1170be894451SBryan DreweryFiles read, written, executed or linked are missing.
1171be894451SBryan Drewery.El
11727f76a95cSBryan DreweryThe meta files can also be useful for debugging.
11737f76a95cSBryan Drewery.Pp
1174344e2bb9SEd MasteThe build hides commands that are executed unless
11757f76a95cSBryan Drewery.Va NO_SILENT
11767f76a95cSBryan Dreweryis defined.
1177344e2bb9SEd MasteErrors cause
11782710e62cSBryan Drewery.Xr make 1
11792710e62cSBryan Dreweryto show some of its environment for further debugging.
11800a70ef02SBryan Drewery.Pp
1181be894451SBryan DreweryThe build operates as it normally would otherwise.
1182be894451SBryan DreweryThis option originally invoked a different build system but that was renamed
1183be894451SBryan Dreweryto
1184be894451SBryan Drewery.Va WITH_DIRDEPS_BUILD .
1185be894451SBryan Drewery.Pp
1186ba852870SBryan DreweryThis must be set in the environment, make command line, or
11870a70ef02SBryan Drewery.Pa /etc/src-env.conf ,
11880a70ef02SBryan Drewerynot
11890a70ef02SBryan Drewery.Pa /etc/src.conf .
1190912aad0fSKyle Evans.It Va WITHOUT_MLX5TOOL
1191912aad0fSKyle EvansSet to not build
1192912aad0fSKyle Evans.Xr mlx5tool 8
1193912aad0fSKyle Evans.Pp
1194912aad0fSKyle EvansThis is a default setting on
119573699177SEd Mastearm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
1196912aad0fSKyle Evans.It Va WITH_MLX5TOOL
1197912aad0fSKyle EvansSet to build
1198912aad0fSKyle Evans.Xr mlx5tool 8
1199912aad0fSKyle Evans.Pp
1200912aad0fSKyle EvansThis is a default setting on
1201429932baSEd Masteamd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
120290be798eSDimitry Andric.It Va WITHOUT_NDIS
120390be798eSDimitry AndricSet to not build programs and libraries
120490be798eSDimitry Andricrelated to NDIS emulation support.
120590be798eSDimitry Andric.It Va WITHOUT_NETCAT
120690be798eSDimitry AndricSet to not build
120790be798eSDimitry Andric.Xr nc 1
120890be798eSDimitry Andricutility.
120990be798eSDimitry Andric.It Va WITHOUT_NETGRAPH
121090be798eSDimitry AndricSet to not build applications to support
121190be798eSDimitry Andric.Xr netgraph 4 .
1212344e2bb9SEd MasteWhen set, it enforces these options:
121390be798eSDimitry Andric.Pp
121490be798eSDimitry Andric.Bl -item -compact
121590be798eSDimitry Andric.It
121690be798eSDimitry Andric.Va WITHOUT_ATM
121790be798eSDimitry Andric.It
121890be798eSDimitry Andric.Va WITHOUT_BLUETOOTH
1219bf64e879SBryan Drewery.El
1220bf64e879SBryan Drewery.Pp
1221bf64e879SBryan DreweryWhen set, these options are also in effect:
1222bf64e879SBryan Drewery.Pp
1223bf64e879SBryan Drewery.Bl -inset -compact
1224bf64e879SBryan Drewery.It Va WITHOUT_NETGRAPH_SUPPORT
1225bf64e879SBryan Drewery(unless
1226bf64e879SBryan Drewery.Va WITH_NETGRAPH_SUPPORT
1227bf64e879SBryan Dreweryis set explicitly)
122890be798eSDimitry Andric.El
122990be798eSDimitry Andric.It Va WITHOUT_NETGRAPH_SUPPORT
123090be798eSDimitry AndricSet to build libraries, programs, and kernel modules without netgraph support.
123190be798eSDimitry Andric.It Va WITHOUT_NIS
123290be798eSDimitry AndricSet to not build
123390be798eSDimitry Andric.Xr NIS 8
123490be798eSDimitry Andricsupport and related programs.
123590be798eSDimitry AndricIf set, you might need to adopt your
123690be798eSDimitry Andric.Xr nsswitch.conf 5
123790be798eSDimitry Andricand remove
123890be798eSDimitry Andric.Sq nis
123990be798eSDimitry Andricentries.
124090be798eSDimitry Andric.It Va WITHOUT_NLS
124190be798eSDimitry AndricSet to not build NLS catalogs.
124257a87b06SEnji CooperWhen set, it enforces these options:
124357a87b06SEnji Cooper.Pp
124457a87b06SEnji Cooper.Bl -item -compact
124557a87b06SEnji Cooper.It
124657a87b06SEnji Cooper.Va WITHOUT_NLS_CATALOGS
124757a87b06SEnji Cooper.El
124890be798eSDimitry Andric.It Va WITHOUT_NLS_CATALOGS
124990be798eSDimitry AndricSet to not build NLS catalog support for
125090be798eSDimitry Andric.Xr csh 1 .
125190be798eSDimitry Andric.It Va WITHOUT_NS_CACHING
125290be798eSDimitry AndricSet to disable name caching in the
125390be798eSDimitry Andric.Pa nsswitch
125490be798eSDimitry Andricsubsystem.
125590be798eSDimitry AndricThe generic caching daemon,
125690be798eSDimitry Andric.Xr nscd 8 ,
125790be798eSDimitry Andricwill not be built either if this option is set.
125890be798eSDimitry Andric.It Va WITHOUT_NTP
125990be798eSDimitry AndricSet to not build
126090be798eSDimitry Andric.Xr ntpd 8
126190be798eSDimitry Andricand related programs.
12628edab9cdSWarner Losh.It Va WITHOUT_NVME
12638edab9cdSWarner LoshSet to not build nvme related tools and kernel modules.
12648edab9cdSWarner Losh.Pp
12658edab9cdSWarner LoshThis is a default setting on
126673699177SEd Mastearm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
12678edab9cdSWarner Losh.It Va WITH_NVME
12688edab9cdSWarner LoshSet to build nvme related tools and kernel modules.
12698edab9cdSWarner Losh
12708edab9cdSWarner Losh.Pp
12718edab9cdSWarner LoshThis is a default setting on
1272f8783225SEd Masteamd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
127390be798eSDimitry Andric.It Va WITH_OFED
127490be798eSDimitry AndricSet to build the
127590be798eSDimitry Andric.Dq "OpenFabrics Enterprise Distribution"
127690be798eSDimitry AndricInfiniband software stack.
12774a3caf80SKonstantin Belousov.It Va WITH_OFED_EXTRA
12784a3caf80SKonstantin BelousovSet to build the non-essential components of the
12794a3caf80SKonstantin Belousov.Dq "OpenFabrics Enterprise Distribution"
12804a3caf80SKonstantin BelousovInfiniband software stack, mostly examples.
128190be798eSDimitry Andric.It Va WITH_OPENLDAP
128290be798eSDimitry AndricEnable building openldap support for kerberos.
1283b0840a28SDimitry Andric.It Va WITHOUT_OPENMP
1284b0840a28SDimitry AndricSet to not build LLVM's OpenMP runtime.
1285b0840a28SDimitry Andric.Pp
1286b0840a28SDimitry AndricThis is a default setting on
12877d4374f6SDimitry Andricarm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
1288b0840a28SDimitry Andric.It Va WITH_OPENMP
1289b0840a28SDimitry AndricSet to build LLVM's OpenMP runtime.
1290b0840a28SDimitry Andric.Pp
1291b0840a28SDimitry AndricThis is a default setting on
12927d4374f6SDimitry Andricamd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
129390be798eSDimitry Andric.It Va WITHOUT_OPENSSH
129490be798eSDimitry AndricSet to not build OpenSSH.
129590be798eSDimitry Andric.It Va WITHOUT_OPENSSL
129690be798eSDimitry AndricSet to not build OpenSSL.
1297344e2bb9SEd MasteWhen set, it enforces these options:
129890be798eSDimitry Andric.Pp
129990be798eSDimitry Andric.Bl -item -compact
130090be798eSDimitry Andric.It
13019f4e04c1SEd Maste.Va WITHOUT_DMAGENT
13029f4e04c1SEd Maste.It
130390be798eSDimitry Andric.Va WITHOUT_KERBEROS
130490be798eSDimitry Andric.It
1305fb27d7aeSEd Maste.Va WITHOUT_KERBEROS_SUPPORT
1306fb27d7aeSEd Maste.It
1307da39b3adSEd Maste.Va WITHOUT_LDNS
1308da39b3adSEd Maste.It
1309da39b3adSEd Maste.Va WITHOUT_LDNS_UTILS
1310da39b3adSEd Maste.It
131190be798eSDimitry Andric.Va WITHOUT_OPENSSH
1312da39b3adSEd Maste.It
1313116f7fccSEd Maste.Va WITHOUT_PKGBOOTSTRAP
1314116f7fccSEd Maste.It
1315116f7fccSEd Maste.Va WITHOUT_SVN
1316116f7fccSEd Maste.It
1317116f7fccSEd Maste.Va WITHOUT_SVNLITE
1318116f7fccSEd Maste.It
1319da39b3adSEd Maste.Va WITHOUT_UNBOUND
1320116f7fccSEd Maste.It
1321116f7fccSEd Maste.Va WITHOUT_WIRELESS
132290be798eSDimitry Andric.El
132390be798eSDimitry Andric.Pp
1324344e2bb9SEd MasteWhen set, these options are also in effect:
132590be798eSDimitry Andric.Pp
132690be798eSDimitry Andric.Bl -inset -compact
132790be798eSDimitry Andric.It Va WITHOUT_GSSAPI
132890be798eSDimitry Andric(unless
132990be798eSDimitry Andric.Va WITH_GSSAPI
133090be798eSDimitry Andricis set explicitly)
133190be798eSDimitry Andric.El
133290be798eSDimitry Andric.It Va WITHOUT_PAM
133390be798eSDimitry AndricSet to not build PAM library and modules.
133490be798eSDimitry Andric.Bf -symbolic
133590be798eSDimitry AndricThis option is deprecated and does nothing.
133690be798eSDimitry Andric.Ef
1337bf64e879SBryan DreweryWhen set, these options are also in effect:
133890be798eSDimitry Andric.Pp
1339bf64e879SBryan Drewery.Bl -inset -compact
1340bf64e879SBryan Drewery.It Va WITHOUT_PAM_SUPPORT
1341bf64e879SBryan Drewery(unless
1342bf64e879SBryan Drewery.Va WITH_PAM_SUPPORT
1343bf64e879SBryan Dreweryis set explicitly)
134490be798eSDimitry Andric.El
134590be798eSDimitry Andric.It Va WITHOUT_PAM_SUPPORT
134690be798eSDimitry AndricSet to build some programs without PAM support, particularly
134790be798eSDimitry Andric.Xr ftpd 8
134890be798eSDimitry Andricand
134990be798eSDimitry Andric.Xr ppp 8 .
135090be798eSDimitry Andric.It Va WITHOUT_PF
135190be798eSDimitry AndricSet to not build PF firewall package.
1352344e2bb9SEd MasteWhen set, it enforces these options:
135390be798eSDimitry Andric.Pp
135490be798eSDimitry Andric.Bl -item -compact
135590be798eSDimitry Andric.It
135690be798eSDimitry Andric.Va WITHOUT_AUTHPF
135790be798eSDimitry Andric.El
1358b3a27c81SEd Maste.It Va WITH_PIE
1359b3a27c81SEd MasteBuild dynamically linked binaries as
1360b3a27c81SEd MastePosition-Independent Executable (PIE).
136190be798eSDimitry Andric.It Va WITHOUT_PKGBOOTSTRAP
136290be798eSDimitry AndricSet to not build
136390be798eSDimitry Andric.Xr pkg 7
136490be798eSDimitry Andricbootstrap tool.
136590be798eSDimitry Andric.It Va WITHOUT_PMC
136690be798eSDimitry AndricSet to not build
136790be798eSDimitry Andric.Xr pmccontrol 8
136890be798eSDimitry Andricand related programs.
136990be798eSDimitry Andric.It Va WITHOUT_PORTSNAP
137090be798eSDimitry AndricSet to not build or install
137190be798eSDimitry Andric.Xr portsnap 8
137290be798eSDimitry Andricand related files.
137345b8de2dSEd MasteWhen set, it enforces these options:
137445b8de2dSEd Maste.Pp
137545b8de2dSEd Maste.Bl -item -compact
137645b8de2dSEd Maste.It
137745b8de2dSEd Maste.Va WITHOUT_FREEBSD_UPDATE
137845b8de2dSEd Maste.El
137990be798eSDimitry Andric.It Va WITHOUT_PPP
138090be798eSDimitry AndricSet to not build
138190be798eSDimitry Andric.Xr ppp 8
138290be798eSDimitry Andricand related programs.
138390be798eSDimitry Andric.It Va WITHOUT_PROFILE
13844c033a73SEnji CooperSet to not build profiled libraries for use with
13854c033a73SEnji Cooper.Xr gprof 8 .
13860780f5c3SJohn Baldwin.Pp
13870780f5c3SJohn BaldwinThis is a default setting on
138873699177SEd Mastemips/mips64.
13894c033a73SEnji Cooper.It Va WITH_PROFILE
13904c033a73SEnji CooperSet to build profiled libraries for use with
13914c033a73SEnji Cooper.Xr gprof 8 .
13924c033a73SEnji Cooper.Pp
13934c033a73SEnji CooperThis is a default setting on
139473699177SEd Masteamd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, mips/mips, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
139590be798eSDimitry Andric.It Va WITHOUT_QUOTAS
139690be798eSDimitry AndricSet to not build
139723a6b49aSEdward Tomasz Napierala.Xr quota 1
139890be798eSDimitry Andricand related programs.
13990e0e9604SEnji Cooper.It Va WITHOUT_RADIUS_SUPPORT
14000e0e9604SEnji CooperSet to not build radius support into various applications, like
14010e0e9604SEnji Cooper.Xr pam_radius 8
14020e0e9604SEnji Cooperand
14030e0e9604SEnji Cooper.Xr ppp 8 .
140488342134SEnji Cooper.It Va WITH_RATELIMIT
140588342134SEnji CooperSet to build the system with rate limit support.
140688342134SEnji Cooper.Pp
140788342134SEnji CooperThis makes
140888342134SEnji Cooper.Dv SO_MAX_PACING_RATE
140988342134SEnji Coopereffective in
141088342134SEnji Cooper.Xr getsockopt 2 ,
141188342134SEnji Cooperand
141288342134SEnji Cooper.Ar txrlimit
141388342134SEnji Coopersupport in
141488342134SEnji Cooper.Xr ifconfig 8 ,
141588342134SEnji Cooperby proxy.
14160e0e9604SEnji Cooper.It Va WITHOUT_RBOOTD
14170e0e9604SEnji CooperSet to not build or install
14180e0e9604SEnji Cooper.Xr rbootd 8 .
141985d55309SEd Maste.It Va WITH_REPRODUCIBLE_BUILD
142085d55309SEd MasteSet to exclude build metadata (such as the build time, user, or host)
142185d55309SEd Mastefrom the kernel, boot loaders, and uname output, so that builds produce
142285d55309SEd Mastebit-for-bit identical output.
142390be798eSDimitry Andric.It Va WITHOUT_RESCUE
142490be798eSDimitry AndricSet to not build
142590be798eSDimitry Andric.Xr rescue 8 .
14268ccac680SEd Maste.It Va WITH_RETPOLINE
14278ccac680SEd MasteSet to build the base system with the retpoline speculative execution
14288ccac680SEd Mastevulnerability mitigation for CVE-2017-5715.
142990be798eSDimitry Andric.It Va WITHOUT_ROUTED
143090be798eSDimitry AndricSet to not build
143190be798eSDimitry Andric.Xr routed 8
143290be798eSDimitry Andricutility.
14334c033a73SEnji Cooper.It Va WITH_RPCBIND_WARMSTART_SUPPORT
14344c033a73SEnji CooperSet to build
14354c033a73SEnji Cooper.Xr rpcbind 8
14364c033a73SEnji Cooperwith warmstart support.
143790be798eSDimitry Andric.It Va WITHOUT_SENDMAIL
143890be798eSDimitry AndricSet to not build
143990be798eSDimitry Andric.Xr sendmail 8
144090be798eSDimitry Andricand related programs.
1441e8788097SKonstantin Belousov.It Va WITHOUT_SERVICESDB
1442e8788097SKonstantin BelousovSet to not install
1443e8788097SKonstantin Belousov.Pa /var/db/services.db .
144490be798eSDimitry Andric.It Va WITHOUT_SETUID_LOGIN
144590be798eSDimitry AndricSet this to disable the installation of
144690be798eSDimitry Andric.Xr login 1
144790be798eSDimitry Andricas a set-user-ID root program.
144890be798eSDimitry Andric.It Va WITHOUT_SHAREDOCS
144990be798eSDimitry AndricSet to not build the
145090be798eSDimitry Andric.Bx 4.4
145190be798eSDimitry Andriclegacy docs.
14526ab18ea6SDimitry Andric.It Va WITHOUT_SHARED_TOOLCHAIN
14536ab18ea6SDimitry AndricSet to build the toolchain binaries as statically linked executables.
145490be798eSDimitry AndricThe set includes
145590be798eSDimitry Andric.Xr cc 1 ,
145690be798eSDimitry Andric.Xr make 1
145790be798eSDimitry Andricand necessary utilities like assembler, linker and library archive manager.
145890be798eSDimitry Andric.It Va WITH_SORT_THREADS
145990be798eSDimitry AndricSet to enable threads in
146090be798eSDimitry Andric.Xr sort 1 .
146190be798eSDimitry Andric.It Va WITHOUT_SOURCELESS
146290be798eSDimitry AndricSet to not build kernel modules that include sourceless code (either microcode or native code for host CPU).
1463344e2bb9SEd MasteWhen set, it enforces these options:
146490be798eSDimitry Andric.Pp
146590be798eSDimitry Andric.Bl -item -compact
146690be798eSDimitry Andric.It
146790be798eSDimitry Andric.Va WITHOUT_SOURCELESS_HOST
146890be798eSDimitry Andric.It
146990be798eSDimitry Andric.Va WITHOUT_SOURCELESS_UCODE
147090be798eSDimitry Andric.El
147190be798eSDimitry Andric.It Va WITHOUT_SOURCELESS_HOST
147290be798eSDimitry AndricSet to not build kernel modules that include sourceless native code for host CPU.
147390be798eSDimitry Andric.It Va WITHOUT_SOURCELESS_UCODE
147490be798eSDimitry AndricSet to not build kernel modules that include sourceless microcode.
147590be798eSDimitry Andric.It Va WITHOUT_SSP
147690be798eSDimitry AndricSet to not build world with propolice stack smashing protection.
1477cc68b6e5SEd Maste.Pp
1478344e2bb9SEd MasteThis is a default setting on
147973699177SEd Mastemips/mips and mips/mips64.
14800cd582c8SEnji Cooper.It Va WITH_SSP
14810cd582c8SEnji CooperSet to build world with propolice stack smashing protection.
14820cd582c8SEnji Cooper.Pp
1483344e2bb9SEd MasteThis is a default setting on
1484429932baSEd Masteamd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf.
1485cc2520d2SSimon J. Gerraty.It Va WITH_STAGING
1486cc2520d2SSimon J. GerratyEnable staging of files to a stage tree.
1487cc2520d2SSimon J. GerratyThis can be best thought of as auto-install to
1488cc2520d2SSimon J. Gerraty.Va DESTDIR
1489cc2520d2SSimon J. Gerratywith some extra meta data to ensure dependencies can be tracked.
1490cc2520d2SSimon J. GerratyDepends on
149132b5dc9aSSimon J. Gerraty.Va WITH_DIRDEPS_BUILD .
1492344e2bb9SEd MasteWhen set, these options are also in effect:
1493cc2520d2SSimon J. Gerraty.Pp
1494cc2520d2SSimon J. Gerraty.Bl -inset -compact
1495cc2520d2SSimon J. Gerraty.It Va WITH_STAGING_MAN
1496cc2520d2SSimon J. Gerraty(unless
1497cc2520d2SSimon J. Gerraty.Va WITHOUT_STAGING_MAN
1498cc2520d2SSimon J. Gerratyis set explicitly)
1499cc2520d2SSimon J. Gerraty.It Va WITH_STAGING_PROG
1500cc2520d2SSimon J. Gerraty(unless
1501cc2520d2SSimon J. Gerraty.Va WITHOUT_STAGING_PROG
1502cc2520d2SSimon J. Gerratyis set explicitly)
1503cc2520d2SSimon J. Gerraty.El
15040a70ef02SBryan Drewery.Pp
1505ba852870SBryan DreweryThis must be set in the environment, make command line, or
15060a70ef02SBryan Drewery.Pa /etc/src-env.conf ,
15070a70ef02SBryan Drewerynot
15080a70ef02SBryan Drewery.Pa /etc/src.conf .
1509cc2520d2SSimon J. Gerraty.It Va WITH_STAGING_MAN
1510344e2bb9SEd MasteEnable staging of man pages to stage tree.
1511cc2520d2SSimon J. Gerraty.It Va WITH_STAGING_PROG
1512cc2520d2SSimon J. GerratyEnable staging of PROGs to stage tree.
1513cc2520d2SSimon J. Gerraty.It Va WITH_STALE_STAGED
1514cc2520d2SSimon J. GerratyCheck staged files are not stale.
1515de19b521SDimitry Andric.It Va WITHOUT_STATS
1516de19b521SDimitry AndricSet to neither build nor install
1517de19b521SDimitry Andric.Lb libstats
1518de19b521SDimitry Andricand dependent binaries.
151990be798eSDimitry Andric.It Va WITH_SVN
152090be798eSDimitry AndricSet to install
152190be798eSDimitry Andric.Xr svnlite 1
152290be798eSDimitry Andricas
152390be798eSDimitry Andric.Xr svn 1 .
152490be798eSDimitry Andric.It Va WITHOUT_SVNLITE
152590be798eSDimitry AndricSet to not build
152690be798eSDimitry Andric.Xr svnlite 1
152790be798eSDimitry Andricand related programs.
152890be798eSDimitry Andric.It Va WITHOUT_SYSCONS
152990be798eSDimitry AndricSet to not build
153090be798eSDimitry Andric.Xr syscons 4
153190be798eSDimitry Andricsupport files such as keyboard maps, fonts, and screen output maps.
1532cc2520d2SSimon J. Gerraty.It Va WITH_SYSROOT
1533cc2520d2SSimon J. GerratyEnable use of sysroot during build.
1534cc2520d2SSimon J. GerratyDepends on
153532b5dc9aSSimon J. Gerraty.Va WITH_DIRDEPS_BUILD .
15360a70ef02SBryan Drewery.Pp
1537ba852870SBryan DreweryThis must be set in the environment, make command line, or
15380a70ef02SBryan Drewery.Pa /etc/src-env.conf ,
15390a70ef02SBryan Drewerynot
15400a70ef02SBryan Drewery.Pa /etc/src.conf .
15418095b3c2SBryan Drewery.It Va WITHOUT_SYSTEM_COMPILER
15428095b3c2SBryan DrewerySet to not opportunistically skip building a cross-compiler during the
1543a9da9b86SBryan Drewerybootstrap phase of the build.
15448095b3c2SBryan DreweryNormally, if the currently installed compiler matches the planned bootstrap
15458095b3c2SBryan Drewerycompiler type and revision, then it will not be built.
1546a9da9b86SBryan DreweryThis does not prevent a compiler from being built for installation though,
1547a9da9b86SBryan Dreweryonly for building one for the build itself.
1548a9da9b86SBryan DreweryThe
1549a9da9b86SBryan Drewery.Va WITHOUT_CLANG
1550a5798ec8SEd Masteoption controls that.
1551be9309deSBryan Drewery.It Va WITHOUT_SYSTEM_LINKER
1552be9309deSBryan DrewerySet to not opportunistically skip building a cross-linker during the
1553be9309deSBryan Drewerybootstrap phase of the build.
1554be9309deSBryan DreweryNormally, if the currently installed linker matches the planned bootstrap
1555be9309deSBryan Drewerylinker type and revision, then it will not be built.
1556be9309deSBryan DreweryThis does not prevent a linker from being built for installation though,
1557be9309deSBryan Dreweryonly for building one for the build itself.
1558be9309deSBryan DreweryThe
1559be9309deSBryan Drewery.Va WITHOUT_LLD
15602ea16071SEd Masteoption controls that.
1561be9309deSBryan Drewery.Pp
1562be9309deSBryan DreweryThis option is only relevant when
1563be9309deSBryan Drewery.Va WITH_LLD_BOOTSTRAP
1564be9309deSBryan Dreweryis set.
156593da8366SEnji Cooper.It Va WITHOUT_TALK
156693da8366SEnji CooperSet to not build or install
156793da8366SEnji Cooper.Xr talk 1
156893da8366SEnji Cooperand
156993da8366SEnji Cooper.Xr talkd 8 .
15700e0e9604SEnji Cooper.It Va WITHOUT_TCP_WRAPPERS
15710e0e9604SEnji CooperSet to not build or install
15720e0e9604SEnji Cooper.Xr tcpd 8 ,
15730e0e9604SEnji Cooperand related utilities.
157490be798eSDimitry Andric.It Va WITHOUT_TCSH
157590be798eSDimitry AndricSet to not build and install
157690be798eSDimitry Andric.Pa /bin/csh
157790be798eSDimitry Andric(which is
157890be798eSDimitry Andric.Xr tcsh 1 ) .
157990be798eSDimitry Andric.It Va WITHOUT_TELNET
158090be798eSDimitry AndricSet to not build
158123a6b49aSEdward Tomasz Napierala.Xr telnet 1
158290be798eSDimitry Andricand related programs.
158318c6fc4cSJulio Merino.It Va WITHOUT_TESTS
158418c6fc4cSJulio MerinoSet to not build nor install the
158590be798eSDimitry Andric.Fx
158690be798eSDimitry AndricTest Suite in
158790be798eSDimitry Andric.Pa /usr/tests/ .
158890be798eSDimitry AndricSee
158990be798eSDimitry Andric.Xr tests 7
159090be798eSDimitry Andricfor more details.
159118c6fc4cSJulio MerinoThis also disables the build of all test-related dependencies, including ATF.
1592344e2bb9SEd MasteWhen set, it enforces these options:
1593c5d09a87SGlen Barber.Pp
1594c5d09a87SGlen Barber.Bl -item -compact
1595c5d09a87SGlen Barber.It
159616f3fdf5SMark Johnston.Va WITHOUT_DTRACE_TESTS
1597bf64e879SBryan Drewery.El
1598bf64e879SBryan Drewery.Pp
1599bf64e879SBryan DreweryWhen set, these options are also in effect:
1600bf64e879SBryan Drewery.Pp
1601bf64e879SBryan Drewery.Bl -inset -compact
16027840b63aSEnji Cooper.It Va WITHOUT_GOOGLETEST
16037840b63aSEnji Cooper(unless
16047840b63aSEnji Cooper.Va WITH_GOOGLETEST
16057840b63aSEnji Cooperis set explicitly)
1606bf64e879SBryan Drewery.It Va WITHOUT_TESTS_SUPPORT
1607bf64e879SBryan Drewery(unless
1608bf64e879SBryan Drewery.Va WITH_TESTS_SUPPORT
1609bf64e879SBryan Dreweryis set explicitly)
1610c5d09a87SGlen Barber.El
1611c5d09a87SGlen Barber.It Va WITHOUT_TESTS_SUPPORT
1612c5d09a87SGlen BarberSet to disables the build of all test-related dependencies, including ATF.
16137840b63aSEnji CooperWhen set, it enforces these options:
16147840b63aSEnji Cooper.Pp
16157840b63aSEnji Cooper.Bl -item -compact
16167840b63aSEnji Cooper.It
16177840b63aSEnji Cooper.Va WITHOUT_GOOGLETEST
16187840b63aSEnji Cooper.El
161990be798eSDimitry Andric.It Va WITHOUT_TEXTPROC
162090be798eSDimitry AndricSet to not build
162190be798eSDimitry Andricprograms used for text processing.
16220e0e9604SEnji Cooper.It Va WITHOUT_TFTP
16230e0e9604SEnji CooperSet to not build or install
16240e0e9604SEnji Cooper.Xr tftp 1
16250e0e9604SEnji Cooperand
16260e0e9604SEnji Cooper.Xr tftpd 8 .
162790be798eSDimitry Andric.It Va WITHOUT_TOOLCHAIN
1628148bdd15SBrooks DavisSet to not install header or
162990be798eSDimitry Andricprograms used for program development,
163090be798eSDimitry Andriccompilers, debuggers etc.
1631344e2bb9SEd MasteWhen set, it enforces these options:
163290be798eSDimitry Andric.Pp
163390be798eSDimitry Andric.Bl -item -compact
163490be798eSDimitry Andric.It
163590be798eSDimitry Andric.Va WITHOUT_CLANG
163690be798eSDimitry Andric.It
163790be798eSDimitry Andric.Va WITHOUT_CLANG_EXTRAS
163890be798eSDimitry Andric.It
163919267656SConrad Meyer.Va WITHOUT_CLANG_FORMAT
164019267656SConrad Meyer.It
164190be798eSDimitry Andric.Va WITHOUT_CLANG_FULL
164290be798eSDimitry Andric.It
164390be798eSDimitry Andric.Va WITHOUT_GDB
1644c5d09a87SGlen Barber.It
1645c5d09a87SGlen Barber.Va WITHOUT_INCLUDES
16463d02549fSBryan Drewery.It
16476c2b7edaSEd Maste.Va WITHOUT_LLD
16486c2b7edaSEd Maste.It
16493d02549fSBryan Drewery.Va WITHOUT_LLDB
16505b9c3654SEd Maste.It
16515b9c3654SEd Maste.Va WITHOUT_LLVM_COV
165290be798eSDimitry Andric.El
165390be798eSDimitry Andric.It Va WITHOUT_UNBOUND
165490be798eSDimitry AndricSet to not build
165590be798eSDimitry Andric.Xr unbound 8
165690be798eSDimitry Andricand related programs.
1657efb949a6SBryan Drewery.It Va WITHOUT_UNIFIED_OBJDIR
1658efb949a6SBryan DrewerySet to use the historical object directory format for
1659efb949a6SBryan Drewery.Xr build 7
1660efb949a6SBryan Drewerytargets.
1661efb949a6SBryan DreweryFor native-builds and builds done directly in sub-directories the format of
1662efb949a6SBryan Drewery.Pa ${MAKEOBJDIRPREFIX}/${.CURDIR}
1663efb949a6SBryan Dreweryis used,
1664efb949a6SBryan Drewerywhile for cross-builds
1665efb949a6SBryan Drewery.Pa ${MAKEOBJDIRPREFIX}/${TARGET}.${TARGET_ARCH}/${.CURDIR}
1666efb949a6SBryan Dreweryis used.
1667efb949a6SBryan Drewery.Pp
1668efb949a6SBryan DreweryThis option is transitional and will be removed before the 12.0 release,
1669efb949a6SBryan Dreweryat which time
1670efb949a6SBryan Drewery.va WITH_UNIFIED_OBJDIR
1671efb949a6SBryan Drewerywill be enabled permanently.
1672efb949a6SBryan Drewery.Pp
1673efb949a6SBryan DreweryThis must be set in the environment, make command line, or
1674efb949a6SBryan Drewery.Pa /etc/src-env.conf ,
1675efb949a6SBryan Drewerynot
1676efb949a6SBryan Drewery.Pa /etc/src.conf .
167790be798eSDimitry Andric.It Va WITHOUT_USB
167890be798eSDimitry AndricSet to not build USB-related programs and libraries.
1679c5d09a87SGlen Barber.It Va WITHOUT_USB_GADGET_EXAMPLES
1680d1040cedSWarren BlockSet to not build USB gadget kernel modules.
168190be798eSDimitry Andric.It Va WITHOUT_UTMPX
168290be798eSDimitry AndricSet to not build user accounting tools such as
168390be798eSDimitry Andric.Xr last 1 ,
168490be798eSDimitry Andric.Xr users 1 ,
168590be798eSDimitry Andric.Xr who 1 ,
168690be798eSDimitry Andric.Xr ac 8 ,
168790be798eSDimitry Andric.Xr lastlogin 8
168890be798eSDimitry Andricand
168990be798eSDimitry Andric.Xr utx 8 .
1690bfdf8aa9SJohn Baldwin.It Va WITH_VERIEXEC
1691bfdf8aa9SJohn BaldwinEnable building
1692bfdf8aa9SJohn Baldwin.Xr veriexec 8
1693bfdf8aa9SJohn Baldwinwhich loads the contents of verified manifests into the kernel
1694bfdf8aa9SJohn Baldwinfor use by
1695bfdf8aa9SJohn Baldwin.Xr mac_veriexec 4
1696bfdf8aa9SJohn Baldwin.Pp
1697de19b521SDimitry AndricDepends on
1698de19b521SDimitry Andric.Va WITH_BEARSSL .
169990be798eSDimitry Andric.It Va WITHOUT_VI
170090be798eSDimitry AndricSet to not build and install vi, view, ex and related programs.
170190be798eSDimitry Andric.It Va WITHOUT_VT
170290be798eSDimitry AndricSet to not build
170390be798eSDimitry Andric.Xr vt 4
170490be798eSDimitry Andricsupport files (fonts and keymaps).
170590be798eSDimitry Andric.It Va WITHOUT_WARNS
170690be798eSDimitry AndricSet this to not add warning flags to the compiler invocations.
170790be798eSDimitry AndricUseful as a temporary workaround when code enters the tree
170890be798eSDimitry Andricwhich triggers warnings in environments that differ from the
1709559f9bfcSJens Schweikhardtoriginal developer.
171090be798eSDimitry Andric.It Va WITHOUT_WIRELESS
171190be798eSDimitry AndricSet to not build programs used for 802.11 wireless networks; especially
171290be798eSDimitry Andric.Xr wpa_supplicant 8
171390be798eSDimitry Andricand
171490be798eSDimitry Andric.Xr hostapd 8 .
1715bf64e879SBryan DreweryWhen set, these options are also in effect:
171690be798eSDimitry Andric.Pp
1717bf64e879SBryan Drewery.Bl -inset -compact
1718bf64e879SBryan Drewery.It Va WITHOUT_WIRELESS_SUPPORT
1719bf64e879SBryan Drewery(unless
1720bf64e879SBryan Drewery.Va WITH_WIRELESS_SUPPORT
1721bf64e879SBryan Dreweryis set explicitly)
172290be798eSDimitry Andric.El
172390be798eSDimitry Andric.It Va WITHOUT_WIRELESS_SUPPORT
172490be798eSDimitry AndricSet to build libraries, programs, and kernel modules without
172590be798eSDimitry Andric802.11 wireless support.
172690be798eSDimitry Andric.It Va WITHOUT_WPA_SUPPLICANT_EAPOL
172790be798eSDimitry AndricBuild
172890be798eSDimitry Andric.Xr wpa_supplicant 8
172990be798eSDimitry Andricwithout support for the IEEE 802.1X protocol and without
173090be798eSDimitry Andricsupport for EAP-PEAP, EAP-TLS, EAP-LEAP, and EAP-TTLS
173190be798eSDimitry Andricprotocols (usable only via 802.1X).
173290be798eSDimitry Andric.It Va WITHOUT_ZFS
17331f7d1483SEd MasteSet to not build ZFS file system kernel module, libraries, and user commands.
173490be798eSDimitry Andric.It Va WITHOUT_ZONEINFO
173590be798eSDimitry AndricSet to not build the timezone database.
17365c021049SEnji CooperWhen set, it enforces these options:
17375c021049SEnji Cooper.Pp
17385c021049SEnji Cooper.Bl -item -compact
17395c021049SEnji Cooper.It
17405c021049SEnji Cooper.Va WITHOUT_ZONEINFO_LEAPSECONDS_SUPPORT
17415c021049SEnji Cooper.El
17425c021049SEnji Cooper.It Va WITH_ZONEINFO_LEAPSECONDS_SUPPORT
17435c021049SEnji CooperSet to build leapsecond information in to the timezone database.
174490be798eSDimitry Andric.El
174590be798eSDimitry Andric.Sh FILES
174690be798eSDimitry Andric.Bl -tag -compact -width Pa
174790be798eSDimitry Andric.It Pa /etc/src.conf
17480a70ef02SBryan Drewery.It Pa /etc/src-env.conf
174990be798eSDimitry Andric.It Pa /usr/share/mk/bsd.own.mk
175090be798eSDimitry Andric.El
175190be798eSDimitry Andric.Sh SEE ALSO
175290be798eSDimitry Andric.Xr make 1 ,
175390be798eSDimitry Andric.Xr make.conf 5 ,
175490be798eSDimitry Andric.Xr build 7 ,
175590be798eSDimitry Andric.Xr ports 7
175690be798eSDimitry Andric.Sh HISTORY
175790be798eSDimitry AndricThe
175890be798eSDimitry Andric.Nm
175990be798eSDimitry Andricfile appeared in
176090be798eSDimitry Andric.Fx 7.0 .
176190be798eSDimitry Andric.Sh AUTHORS
176288342134SEnji CooperThis manual page was autogenerated by
1763a121d3a8SEnji Cooper.An tools/build/options/makeman .
1764