]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/conf/kern.opts.mk
MFV r266988:
[FreeBSD/FreeBSD.git] / sys / conf / kern.opts.mk
1 # $FreeBSD$
2
3 # Options set in the build system that affect the kernel somehow.
4
5 #
6 # Define MK_* variables (which are either "yes" or "no") for users
7 # to set via WITH_*/WITHOUT_* in /etc/src.conf and override in the
8 # make(1) environment.
9 # These should be tested with `== "no"' or `!= "no"' in makefiles.
10 # The NO_* variables should only be set by makefiles for variables
11 # that haven't been converted over.
12 #
13
14 # These options are used by the kernel build process (kern.mk and kmod.mk)
15 # They have to be listed here so we can build modules outside of the
16 # src tree.
17
18 __DEFAULT_YES_OPTIONS = \
19     ARM_EABI \
20     FORMAT_EXTENSIONS \
21     KERNEL_SYMBOLS
22
23 # expanded inline from bsd.mkopt.mk:
24
25 .for var in ${__DEFAULT_YES_OPTIONS}
26 .if !defined(MK_${var})
27 .if defined(WITHOUT_${var})                     # WITHOUT always wins
28 MK_${var}:=     no
29 .else
30 MK_${var}:=     yes
31 .endif
32 .endif
33 .endfor
34 .undef __DEFAULT_YES_OPTIONS