2014-05-06 04:21:48 +00:00
|
|
|
#
|
2022-01-02 07:30:37 +00:00
|
|
|
# Option file for FreeBSD /usr/src builds, at least the userland and boot loader
|
|
|
|
# portions of the tree. These options generally chose what parts of the tree to
|
|
|
|
# include or omit and are FreeBSD source tree specific.
|
2014-05-06 04:21:48 +00:00
|
|
|
#
|
|
|
|
# Users define WITH_FOO and WITHOUT_FOO on the command line or in /etc/src.conf
|
|
|
|
# and /etc/make.conf files. These translate in the build system to MK_FOO={yes,no}
|
|
|
|
# with sensible (usually) defaults.
|
|
|
|
#
|
|
|
|
# Makefiles must include bsd.opts.mk after defining specific MK_FOO options that
|
|
|
|
# are applicable for that Makefile (typically there are none, but sometimes there
|
|
|
|
# are exceptions). Recursive makes usually add MK_FOO=no for options that they wish
|
|
|
|
# to omit from that make.
|
|
|
|
#
|
2014-12-12 18:54:31 +00:00
|
|
|
# Makefiles must include bsd.mkopt.mk before they test the value of any MK_FOO
|
2014-05-06 04:21:48 +00:00
|
|
|
# variable.
|
|
|
|
#
|
2014-05-06 04:22:01 +00:00
|
|
|
# Makefiles may also assume that this file is included by src.opts.mk should it
|
2014-05-06 04:21:48 +00:00
|
|
|
# need variables defined there prior to the end of the Makefile where
|
|
|
|
# bsd.{subdir,lib.bin}.mk is traditionally included.
|
|
|
|
#
|
|
|
|
# The old-style YES_FOO and NO_FOO are being phased out. No new instances of them
|
|
|
|
# should be added. Old instances should be removed since they were just to
|
|
|
|
# bridge the gap between FreeBSD 4 and FreeBSD 5.
|
|
|
|
#
|
|
|
|
# Makefiles should never test WITH_FOO or WITHOUT_FOO directly (although an
|
|
|
|
# exception is made for _WITHOUT_SRCONF which turns off this mechanism
|
2014-05-09 21:11:27 +00:00
|
|
|
# completely inside bsd.*.mk files).
|
2014-05-06 04:21:48 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
.if !target(__<src.opts.mk>__)
|
|
|
|
__<src.opts.mk>__:
|
|
|
|
|
2014-05-09 04:49:48 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2014-05-06 04:21:48 +00:00
|
|
|
#
|
|
|
|
# Define MK_* variables (which are either "yes" or "no") for users
|
|
|
|
# to set via WITH_*/WITHOUT_* in /etc/src.conf and override in the
|
|
|
|
# make(1) environment.
|
|
|
|
# These should be tested with `== "no"' or `!= "no"' in makefiles.
|
|
|
|
# The NO_* variables should only be set by makefiles for variables
|
|
|
|
# that haven't been converted over.
|
|
|
|
#
|
|
|
|
|
2018-02-27 17:36:01 +00:00
|
|
|
# These options are used by the src builds. Those listed in
|
|
|
|
# __DEFAULT_YES_OPTIONS default to 'yes' and will build unless turned
|
|
|
|
# off. __DEFAULT_NO_OPTIONS will default to 'no' and won't build
|
|
|
|
# unless turned on. Any options listed in 'BROKEN_OPTIONS' will be
|
|
|
|
# hard-wired to 'no'. "Broken" here means not working or
|
|
|
|
# not-appropriate and/or not supported. It doesn't imply something is
|
|
|
|
# wrong with the code. There's not a single good word for this, so
|
|
|
|
# BROKEN was selected as the least imperfect one considered at the
|
|
|
|
# time. Options are added to BROKEN_OPTIONS list on a per-arch basis.
|
|
|
|
# At this time, there's no provision for mutually incompatible options.
|
2023-06-17 20:08:37 +00:00
|
|
|
# Options listed in 'REQUIRED_OPTIONS' will be hard-wired to 'yes'; this
|
|
|
|
# is intended as a transitional measure while options are in the process
|
|
|
|
# of being removed.
|
2014-05-06 04:21:48 +00:00
|
|
|
|
|
|
|
__DEFAULT_YES_OPTIONS = \
|
|
|
|
ACCT \
|
|
|
|
ACPI \
|
|
|
|
APM \
|
|
|
|
AT \
|
|
|
|
AUDIT \
|
|
|
|
AUTHPF \
|
2015-01-26 07:15:49 +00:00
|
|
|
AUTOFS \
|
2015-01-26 06:44:48 +00:00
|
|
|
BHYVE \
|
2016-06-02 19:06:04 +00:00
|
|
|
BLACKLIST \
|
2014-05-06 04:21:48 +00:00
|
|
|
BLUETOOTH \
|
|
|
|
BOOT \
|
2015-02-04 10:19:32 +00:00
|
|
|
BOOTPARAMD \
|
|
|
|
BOOTPD \
|
2014-05-06 04:21:48 +00:00
|
|
|
BSD_CPIO \
|
2015-01-25 04:43:13 +00:00
|
|
|
BSDINSTALL \
|
2014-05-06 04:21:48 +00:00
|
|
|
BSNMP \
|
|
|
|
BZIP2 \
|
|
|
|
CALENDAR \
|
2019-10-02 01:05:29 +00:00
|
|
|
CAROOT \
|
2015-01-25 04:52:48 +00:00
|
|
|
CCD \
|
2014-05-06 04:21:48 +00:00
|
|
|
CDDL \
|
2020-02-29 13:15:01 +00:00
|
|
|
CLANG \
|
2020-03-23 10:36:32 +00:00
|
|
|
CLANG_BOOTSTRAP \
|
2020-09-08 00:44:35 +00:00
|
|
|
CLEAN \
|
2014-05-06 04:21:48 +00:00
|
|
|
CPP \
|
|
|
|
CROSS_COMPILER \
|
|
|
|
CRYPT \
|
2014-06-13 08:53:49 +00:00
|
|
|
CUSE \
|
2018-10-21 06:52:10 +00:00
|
|
|
CXGBETOOL \
|
2016-09-27 18:08:38 +00:00
|
|
|
DIALOG \
|
2014-05-06 04:21:48 +00:00
|
|
|
DICT \
|
|
|
|
DMAGENT \
|
2022-07-06 13:03:48 +00:00
|
|
|
DTRACE \
|
2014-05-06 04:21:48 +00:00
|
|
|
DYNAMICROOT \
|
2015-01-25 00:03:44 +00:00
|
|
|
EE \
|
2016-10-11 22:30:41 +00:00
|
|
|
EFI \
|
2015-08-17 10:48:55 +00:00
|
|
|
ELFTOOLCHAIN_BOOTSTRAP \
|
2014-05-06 04:21:48 +00:00
|
|
|
EXAMPLES \
|
2015-02-04 10:24:40 +00:00
|
|
|
FILE \
|
2015-02-04 10:19:32 +00:00
|
|
|
FINGER \
|
2014-05-06 04:21:48 +00:00
|
|
|
FLOPPY \
|
|
|
|
FORTH \
|
|
|
|
FP_LIBC \
|
|
|
|
FREEBSD_UPDATE \
|
2015-02-04 10:19:32 +00:00
|
|
|
FTP \
|
2014-05-06 04:21:48 +00:00
|
|
|
GAMES \
|
Import new 2-clause BSD licenced implementation of the bc and dc commands
These implementations of the bc and dc programs offer a number of advantages
compared to the current implementations in the FreeBSD base system:
- They do not depend on external large number functions (i.e. no dependency
on OpenSSL or any other large number library)
- They implements all features found in GNU bc/dc (with the exception of
the forking of sub-processes, which the author of this version considers
as a security issue).
- They are significantly faster than the current code in base (more than
2 orders of magnitude in some of my tests, e.g. for 12345^100000).
- They should be fully compatible with all features and the behavior of the
current implementations in FreeBSD (not formally verified).
- They support POSIX message catalogs and come with localized messages in
Chinese, Dutch, English, French, German, Japanese, Polish, Portugueze,
and Russian.
- They offer very detailed man-pages that provide far more information than
the current ones.
The upstream sources contain a large number of tests, which are not
imported with this commit. They could be integrated into our test
framework at a latter time.
Installation of this version is controlled by the option "MK_GH_BC=yes".
This option will be set to yes by default in 13-CURRENT, but will be off
by default in 12-STABLE.
Approved by: imp
Obtained from: https://git.yzena.com/gavin/bc
MFC after: 4 weeks
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D19982
2020-06-27 12:02:01 +00:00
|
|
|
GH_BC \
|
2016-10-20 14:48:57 +00:00
|
|
|
GNU_DIFF \
|
2020-01-06 18:25:58 +00:00
|
|
|
GOOGLETEST \
|
2014-05-06 04:21:48 +00:00
|
|
|
GPIO \
|
2015-01-26 06:27:07 +00:00
|
|
|
HAST \
|
2014-05-06 04:21:48 +00:00
|
|
|
HTML \
|
2018-10-21 06:52:10 +00:00
|
|
|
HYPERV \
|
2014-05-06 04:21:48 +00:00
|
|
|
ICONV \
|
|
|
|
INET \
|
|
|
|
INET6 \
|
2015-02-04 10:19:32 +00:00
|
|
|
INETD \
|
2014-05-06 04:21:48 +00:00
|
|
|
IPFILTER \
|
|
|
|
IPFW \
|
2015-01-25 04:20:11 +00:00
|
|
|
ISCSI \
|
2014-05-06 04:21:48 +00:00
|
|
|
JAIL \
|
|
|
|
KDUMP \
|
|
|
|
KVM \
|
|
|
|
LDNS \
|
|
|
|
LDNS_UTILS \
|
|
|
|
LEGACY_CONSOLE \
|
2020-02-29 13:15:01 +00:00
|
|
|
LLD \
|
2020-03-27 01:00:03 +00:00
|
|
|
LLD_BOOTSTRAP \
|
|
|
|
LLD_IS_LD \
|
2020-04-06 01:27:17 +00:00
|
|
|
LLVM_ASSERTIONS \
|
2018-02-10 00:22:35 +00:00
|
|
|
LLVM_COV \
|
2020-11-04 11:23:19 +00:00
|
|
|
LLVM_CXXFILT \
|
2018-04-06 19:49:57 +00:00
|
|
|
LOADER_GELI \
|
2021-12-30 23:06:28 +00:00
|
|
|
LOADER_KBOOT \
|
2018-08-14 18:44:41 +00:00
|
|
|
LOADER_LUA \
|
2018-04-06 19:49:57 +00:00
|
|
|
LOADER_OFW \
|
|
|
|
LOADER_UBOOT \
|
2014-05-06 04:21:48 +00:00
|
|
|
LOCALES \
|
|
|
|
LOCATE \
|
|
|
|
LPR \
|
|
|
|
LS_COLORS \
|
2022-08-08 15:16:00 +00:00
|
|
|
MACHDEP_OPTIMIZATIONS \
|
2014-05-06 04:21:48 +00:00
|
|
|
MAIL \
|
|
|
|
MAILWRAPPER \
|
|
|
|
MAKE \
|
2018-10-21 06:52:10 +00:00
|
|
|
MLX5TOOL \
|
2014-05-06 04:21:48 +00:00
|
|
|
NETCAT \
|
|
|
|
NETGRAPH \
|
genl: add new command to list genetlink(4)
This commands list genetlink protocols and its operations and
capabilities
Name: nlctrl
ID: 0x10, Version: 00, header size: 2, max attributes: 10
supported operations:
- ID: 0x3, Capabilities: 0xe (can modify; can get/dump;
has policy)
multicast groups:
- ID: 0x30, Name: notify
Name: carp
ID: 0x11, Version: 00, header size: 2, max attributes: 2
supported operations:
- ID: 0x1, Capabilities: 0xe (can modify; can get/dump;
has policy)
- ID: 0x2, Capabilities: 0xb (requires admin permission;
can modify; has policy)
Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D40330
2023-05-30 11:31:04 +00:00
|
|
|
NETLINK \
|
2023-04-27 14:38:08 +00:00
|
|
|
NETLINK_SUPPORT \
|
2014-05-06 04:21:48 +00:00
|
|
|
NLS_CATALOGS \
|
|
|
|
NS_CACHING \
|
|
|
|
NTP \
|
2018-10-21 06:52:10 +00:00
|
|
|
NVME \
|
2018-07-20 23:53:20 +00:00
|
|
|
OFED \
|
2014-05-06 04:21:48 +00:00
|
|
|
OPENSSL \
|
|
|
|
PAM \
|
|
|
|
PF \
|
|
|
|
PKGBOOTSTRAP \
|
|
|
|
PMC \
|
|
|
|
PPP \
|
2023-07-07 00:30:02 +00:00
|
|
|
PTHREADS_ASSERTIONS \
|
2014-05-06 04:21:48 +00:00
|
|
|
QUOTAS \
|
2015-02-04 06:53:45 +00:00
|
|
|
RADIUS_SUPPORT \
|
2015-02-04 10:19:32 +00:00
|
|
|
RBOOTD \
|
2014-05-06 04:21:48 +00:00
|
|
|
RESCUE \
|
|
|
|
ROUTED \
|
|
|
|
SENDMAIL \
|
2018-07-04 17:18:35 +00:00
|
|
|
SERVICESDB \
|
2014-05-06 04:21:48 +00:00
|
|
|
SETUID_LOGIN \
|
|
|
|
SHAREDOCS \
|
|
|
|
SOURCELESS \
|
|
|
|
SOURCELESS_HOST \
|
|
|
|
SOURCELESS_UCODE \
|
2019-10-07 19:05:05 +00:00
|
|
|
STATS \
|
2014-05-06 04:21:48 +00:00
|
|
|
SYSCONS \
|
2016-06-24 19:55:59 +00:00
|
|
|
SYSTEM_COMPILER \
|
2018-06-20 16:10:14 +00:00
|
|
|
SYSTEM_LINKER \
|
2015-01-25 04:37:44 +00:00
|
|
|
TALK \
|
2015-02-04 10:19:32 +00:00
|
|
|
TCP_WRAPPERS \
|
2014-05-06 04:21:48 +00:00
|
|
|
TCSH \
|
|
|
|
TELNET \
|
|
|
|
TEXTPROC \
|
2015-02-04 10:19:32 +00:00
|
|
|
TFTP \
|
2014-05-06 04:21:48 +00:00
|
|
|
UNBOUND \
|
|
|
|
USB \
|
|
|
|
UTMPX \
|
|
|
|
VI \
|
2014-06-30 00:20:12 +00:00
|
|
|
VT \
|
2014-05-06 04:21:48 +00:00
|
|
|
WIRELESS \
|
|
|
|
WPA_SUPPLICANT_EAPOL \
|
|
|
|
ZFS \
|
2019-01-05 22:45:20 +00:00
|
|
|
LOADER_ZFS \
|
2014-05-06 04:21:48 +00:00
|
|
|
ZONEINFO
|
|
|
|
|
|
|
|
__DEFAULT_NO_OPTIONS = \
|
2019-02-26 06:11:01 +00:00
|
|
|
BEARSSL \
|
Initial support for bhyve save and restore.
Save and restore (also known as suspend and resume) permits a snapshot
to be taken of a guest's state that can later be resumed. In the
current implementation, bhyve(8) creates a UNIX domain socket that is
used by bhyvectl(8) to send a request to save a snapshot (and
optionally exit after the snapshot has been taken). A snapshot
currently consists of two files: the first holds a copy of guest RAM,
and the second file holds other guest state such as vCPU register
values and device model state.
To resume a guest, bhyve(8) must be started with a matching pair of
command line arguments to instantiate the same set of device models as
well as a pointer to the saved snapshot.
While the current implementation is useful for several uses cases, it
has a few limitations. The file format for saving the guest state is
tied to the ABI of internal bhyve structures and is not
self-describing (in that it does not communicate the set of device
models present in the system). In addition, the state saved for some
device models closely matches the internal data structures which might
prove a challenge for compatibility of snapshot files across a range
of bhyve versions. The file format also does not currently support
versioning of individual chunks of state. As a result, the current
file format is not a fixed binary format and future revisions to save
and restore will break binary compatiblity of snapshot files. The
goal is to move to a more flexible format that adds versioning,
etc. and at that point to commit to providing a reasonable level of
compatibility. As a result, the current implementation is not enabled
by default. It can be enabled via the WITH_BHYVE_SNAPSHOT=yes option
for userland builds, and the kernel option BHYVE_SHAPSHOT.
Submitted by: Mihai Tiganus, Flavius Anton, Darius Mihai
Submitted by: Elena Mihailescu, Mihai Carabas, Sergiu Weisz
Relnotes: yes
Sponsored by: University Politehnica of Bucharest
Sponsored by: Matthew Grooms (student scholarships)
Sponsored by: iXsystems
Differential Revision: https://reviews.freebsd.org/D19495
2020-05-05 00:02:04 +00:00
|
|
|
BHYVE_SNAPSHOT \
|
2014-05-06 04:21:48 +00:00
|
|
|
CLANG_EXTRAS \
|
2020-06-24 17:03:42 +00:00
|
|
|
CLANG_FORMAT \
|
2021-09-12 03:07:26 +00:00
|
|
|
DETECT_TZ_CHANGES \
|
2023-03-15 00:06:53 +00:00
|
|
|
DISK_IMAGE_TOOLS_BOOTSTRAP \
|
2023-08-02 00:10:46 +00:00
|
|
|
DTRACE_ASAN \
|
2015-08-02 00:37:33 +00:00
|
|
|
DTRACE_TESTS \
|
2018-10-30 15:46:30 +00:00
|
|
|
EXPERIMENTAL \
|
2014-05-06 04:21:48 +00:00
|
|
|
HESIOD \
|
2019-01-07 05:49:27 +00:00
|
|
|
LOADER_VERBOSE \
|
2019-04-03 03:57:37 +00:00
|
|
|
LOADER_VERIEXEC_PASS_MANIFEST \
|
2021-09-06 08:49:49 +00:00
|
|
|
LLVM_BINUTILS \
|
2020-09-05 23:30:17 +00:00
|
|
|
MALLOC_PRODUCTION \
|
2018-07-20 23:52:11 +00:00
|
|
|
OFED_EXTRA \
|
2014-05-06 04:21:48 +00:00
|
|
|
OPENLDAP \
|
2019-08-03 01:06:17 +00:00
|
|
|
REPRODUCIBLE_BUILD \
|
2017-04-19 20:45:46 +00:00
|
|
|
RPCBIND_WARMSTART_SUPPORT \
|
2014-05-06 04:21:48 +00:00
|
|
|
SORT_THREADS \
|
2017-07-06 04:19:33 +00:00
|
|
|
ZONEINFO_LEAPSECONDS_SUPPORT \
|
2016-05-21 01:32:23 +00:00
|
|
|
|
2023-06-17 20:08:37 +00:00
|
|
|
__REQUIRED_OPTIONS = \
|
2023-06-18 00:03:56 +00:00
|
|
|
CAPSICUM \
|
|
|
|
CASPER
|
2023-06-17 20:08:37 +00:00
|
|
|
|
2018-06-27 16:57:47 +00:00
|
|
|
# LEFT/RIGHT. Left options which default to "yes" unless their corresponding
|
|
|
|
# RIGHT option is disabled.
|
|
|
|
__DEFAULT_DEPENDENT_OPTIONS= \
|
|
|
|
CLANG_FULL/CLANG \
|
2021-09-06 08:31:24 +00:00
|
|
|
LLVM_TARGET_ALL/CLANG \
|
2019-02-26 06:11:01 +00:00
|
|
|
LOADER_VERIEXEC/BEARSSL \
|
2019-03-06 06:39:42 +00:00
|
|
|
LOADER_EFI_SECUREBOOT/LOADER_VERIEXEC \
|
2020-03-08 17:42:42 +00:00
|
|
|
LOADER_VERIEXEC_VECTX/LOADER_VERIEXEC \
|
2019-02-26 06:11:01 +00:00
|
|
|
VERIEXEC/BEARSSL \
|
2018-06-27 16:57:47 +00:00
|
|
|
|
|
|
|
# MK_*_SUPPORT options which default to "yes" unless their corresponding
|
|
|
|
# MK_* variable is set to "no".
|
|
|
|
#
|
|
|
|
.for var in \
|
|
|
|
BLACKLIST \
|
|
|
|
BZIP2 \
|
|
|
|
INET \
|
|
|
|
INET6 \
|
|
|
|
KERBEROS \
|
|
|
|
KVM \
|
|
|
|
NETGRAPH \
|
|
|
|
PAM \
|
|
|
|
TESTS \
|
|
|
|
WIRELESS
|
|
|
|
__DEFAULT_DEPENDENT_OPTIONS+= ${var}_SUPPORT/${var}
|
|
|
|
.endfor
|
2014-05-06 04:21:48 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Default behaviour of some options depends on the architecture. Unfortunately
|
|
|
|
# this means that we have to test TARGET_ARCH (the buildworld case) as well
|
|
|
|
# as MACHINE_ARCH (the non-buildworld case). Normally TARGET_ARCH is not
|
|
|
|
# used at all in bsd.*.mk, but we have to make an exception here if we want
|
|
|
|
# to allow defaults for some things like clang to vary by target architecture.
|
|
|
|
# Additional, per-target behavior should be rarely added only after much
|
|
|
|
# gnashing of teeth and grinding of gears.
|
|
|
|
#
|
|
|
|
.if defined(TARGET_ARCH)
|
|
|
|
__T=${TARGET_ARCH}
|
|
|
|
.else
|
|
|
|
__T=${MACHINE_ARCH}
|
|
|
|
.endif
|
Since clang 3.5.0 and later must be built by a compiler with C++11
support, make this explicit in src.opts.mk, by updating the default
settings.
The defaults become as follows:
* If the host compiler is not C++11 capable, use gcc and disable clang.
* On x86, enable clang, make it the default cc, and disable gcc.
* On little-endian ARM, enable clang, but not the full build, make it
the default cc, and disable gcc.
* On PowerPC, enable clang, but enable gcc and make that the default cc.
* On everything else, use gcc, and disable clang.
This can be amended later, if we get e.g. sparc64 or big-endian ARM
working with clang.
Reviewed by: imp, brooks
Differential Revision: https://reviews.freebsd.org/D1294
2014-12-10 22:33:57 +00:00
|
|
|
|
2018-06-27 16:57:51 +00:00
|
|
|
# All supported backends for LLVM_TARGET_XXX
|
|
|
|
__LLVM_TARGETS= \
|
|
|
|
aarch64 \
|
|
|
|
arm \
|
|
|
|
powerpc \
|
2019-11-12 21:26:50 +00:00
|
|
|
riscv \
|
2018-06-27 16:57:51 +00:00
|
|
|
x86
|
2023-03-29 22:06:15 +00:00
|
|
|
__LLVM_TARGET_FILT= C/(amd64|i386)/x86/:C/powerpc.*/powerpc/:C/armv[67]/arm/:C/riscv.*/riscv/
|
2018-06-27 21:36:57 +00:00
|
|
|
.for __llt in ${__LLVM_TARGETS}
|
2019-12-10 18:50:50 +00:00
|
|
|
# Default enable the given TARGET's LLVM_TARGET support
|
2020-03-21 00:01:06 +00:00
|
|
|
.if ${__T:${__LLVM_TARGET_FILT}} == ${__llt}
|
2019-12-10 18:50:50 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+= LLVM_TARGET_${__llt:${__LLVM_TARGET_FILT}:tu}
|
2018-06-27 21:36:57 +00:00
|
|
|
# aarch64 needs arm for -m32 support.
|
2020-03-21 00:01:06 +00:00
|
|
|
.elif ${__T} == "aarch64" && ${__llt:Marm*} != ""
|
2018-06-27 21:36:57 +00:00
|
|
|
__DEFAULT_DEPENDENT_OPTIONS+= LLVM_TARGET_ARM/LLVM_TARGET_AARCH64
|
2019-12-10 18:50:50 +00:00
|
|
|
# Default the rest of the LLVM_TARGETs to the value of MK_LLVM_TARGET_ALL.
|
2018-06-27 16:57:51 +00:00
|
|
|
.else
|
2018-06-27 21:36:57 +00:00
|
|
|
__DEFAULT_DEPENDENT_OPTIONS+= LLVM_TARGET_${__llt:${__LLVM_TARGET_FILT}:tu}/LLVM_TARGET_ALL
|
2018-06-27 16:57:51 +00:00
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
2021-12-10 18:31:07 +00:00
|
|
|
__DEFAULT_NO_OPTIONS+=LLVM_TARGET_BPF LLVM_TARGET_MIPS
|
2018-08-09 21:28:31 +00:00
|
|
|
|
Since clang 3.5.0 and later must be built by a compiler with C++11
support, make this explicit in src.opts.mk, by updating the default
settings.
The defaults become as follows:
* If the host compiler is not C++11 capable, use gcc and disable clang.
* On x86, enable clang, make it the default cc, and disable gcc.
* On little-endian ARM, enable clang, but not the full build, make it
the default cc, and disable gcc.
* On PowerPC, enable clang, but enable gcc and make that the default cc.
* On everything else, use gcc, and disable clang.
This can be amended later, if we get e.g. sparc64 or big-endian ARM
working with clang.
Reviewed by: imp, brooks
Differential Revision: https://reviews.freebsd.org/D1294
2014-12-10 22:33:57 +00:00
|
|
|
.include <bsd.compiler.mk>
|
2015-10-24 04:03:32 +00:00
|
|
|
|
2023-03-07 16:39:46 +00:00
|
|
|
.if ${__T} == "i386" || ${__T} == "amd64"
|
|
|
|
__DEFAULT_NO_OPTIONS += FDT
|
|
|
|
.else
|
|
|
|
__DEFAULT_YES_OPTIONS += FDT
|
|
|
|
.endif
|
|
|
|
|
2022-02-09 00:45:25 +00:00
|
|
|
.if ${__T:Marm*} == "" && ${__T:Mriscv64*} == ""
|
2017-01-26 02:22:23 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+=LLDB
|
2015-12-16 19:23:10 +00:00
|
|
|
.else
|
2017-01-26 02:22:23 +00:00
|
|
|
__DEFAULT_NO_OPTIONS+=LLDB
|
2015-12-16 19:23:10 +00:00
|
|
|
.endif
|
2023-07-25 23:59:52 +00:00
|
|
|
# LIB32 is not supported on all 64-bit architectures.
|
|
|
|
.if (${__T} == "amd64" || ${__T:Maarch64*} != "" || ${__T} == "powerpc64")
|
2019-11-07 22:58:10 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+=LIB32
|
|
|
|
.else
|
|
|
|
BROKEN_OPTIONS+=LIB32
|
|
|
|
.endif
|
2023-05-11 20:04:05 +00:00
|
|
|
# EFI doesn't exist on powerpc (well, officially) and doesn't work on i386
|
|
|
|
.if ${__T:Mpowerpc*} || ${__T} == "i386"
|
2018-03-01 19:50:55 +00:00
|
|
|
BROKEN_OPTIONS+=EFI
|
2016-10-11 22:30:41 +00:00
|
|
|
.endif
|
2020-02-26 18:49:20 +00:00
|
|
|
# OFW is only for powerpc, exclude others
|
|
|
|
.if ${__T:Mpowerpc*} == ""
|
2018-03-01 19:50:55 +00:00
|
|
|
BROKEN_OPTIONS+=LOADER_OFW
|
|
|
|
.endif
|
2023-02-03 15:40:38 +00:00
|
|
|
# KBOOT is only for powerpc64 (powerpc64le broken) amd64 and aarch64
|
|
|
|
.if ${__T} != "powerpc64" && ${__T} != "amd64" && ${__T} != "aarch64"
|
2021-12-30 23:06:28 +00:00
|
|
|
BROKEN_OPTIONS+=LOADER_KBOOT
|
|
|
|
.endif
|
2021-12-15 04:09:53 +00:00
|
|
|
# UBOOT is only for arm, and big-endian powerpc
|
|
|
|
.if (${__T:Marm*} == "" && ${__T:Mpowerpc*} == "") || ${__T} == "powerpc64le"
|
2018-03-01 19:50:55 +00:00
|
|
|
BROKEN_OPTIONS+=LOADER_UBOOT
|
|
|
|
.endif
|
2020-02-26 18:49:20 +00:00
|
|
|
# GELI and Lua in loader currently cause boot failures on powerpc.
|
2018-10-11 00:54:39 +00:00
|
|
|
# Further debugging is required -- probably they are just broken on big
|
|
|
|
# endian systems generically (they jump to null pointers or try to read
|
|
|
|
# crazy high addresses, which is typical of endianness problems).
|
2020-02-26 18:49:20 +00:00
|
|
|
.if ${__T:Mpowerpc*}
|
2018-08-22 15:29:54 +00:00
|
|
|
BROKEN_OPTIONS+=LOADER_GELI LOADER_LUA
|
|
|
|
.endif
|
2018-03-01 19:50:55 +00:00
|
|
|
|
powerpc64*: port mlx5, OFED, KTLS and krping
Summary:
This review ports mlx5 driver, kernel's OFED stack (userland is already enabled), KTLS and krping to powerpc64 and powerpc64le.
krping requires a small change since it uses assembly for amd64 / i386.
NOTE: On powerpc64le RDMA works fine in the userspace with libmlx5, but on powerpc64 it does not. The problem is that contrib/ofed/libmlx5/doorbell.h checks for SIZEOF_LONG but this macro exists on neither powerpc64* nor amd64. Thus, the file silently goes to the fallback function written for 32-bit architectures. It works fine on little-endian architectures, but causes a hard fail on big-endian. It's possible it may also cause some runtime issues on little-endian.
Thus, on powerpc64 I verified that RDMA works with krping.
Reviewers: #powerpc, hselasky
Subscribers: bdrewery, imp, emaste, jhibbits
Differential Revision: https://reviews.freebsd.org/D38786
2023-02-25 21:09:41 +00:00
|
|
|
# Kernel TLS is enabled by default on amd64, aarch64 and powerpc64*
|
|
|
|
.if ${__T} == "aarch64" || ${__T} == "amd64" || ${__T:Mpowerpc64*} != ""
|
2021-01-16 00:17:31 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+=OPENSSL_KTLS
|
|
|
|
.else
|
|
|
|
__DEFAULT_NO_OPTIONS+=OPENSSL_KTLS
|
|
|
|
.endif
|
|
|
|
|
2018-10-21 06:52:10 +00:00
|
|
|
.if ${__T} != "aarch64" && ${__T} != "amd64" && ${__T} != "i386" && \
|
2022-02-09 01:13:54 +00:00
|
|
|
${__T:Mpowerpc64*} == ""
|
2018-10-21 06:52:10 +00:00
|
|
|
BROKEN_OPTIONS+=CXGBETOOL
|
|
|
|
BROKEN_OPTIONS+=MLX5TOOL
|
2017-03-03 03:11:58 +00:00
|
|
|
.endif
|
|
|
|
|
2022-10-27 13:46:08 +00:00
|
|
|
.if ${__T} != "amd64" && ${__T} != "i386" && ${__T} != "aarch64"
|
2018-10-21 06:52:10 +00:00
|
|
|
BROKEN_OPTIONS+=HYPERV
|
2018-09-18 16:06:24 +00:00
|
|
|
.endif
|
|
|
|
|
2020-09-22 23:49:30 +00:00
|
|
|
# NVME is only aarch64, x86 and powerpc64*
|
2019-09-26 18:24:04 +00:00
|
|
|
.if ${__T} != "aarch64" && ${__T} != "amd64" && ${__T} != "i386" && \
|
2020-09-22 23:49:30 +00:00
|
|
|
${__T:Mpowerpc64*} == ""
|
2018-10-21 06:52:10 +00:00
|
|
|
BROKEN_OPTIONS+=NVME
|
2018-06-14 01:15:19 +00:00
|
|
|
.endif
|
|
|
|
|
2020-08-24 20:40:26 +00:00
|
|
|
.if ${__T} == "aarch64" || ${__T} == "amd64" || ${__T} == "i386" || \
|
2021-06-25 14:22:50 +00:00
|
|
|
${__T:Mpowerpc64*} != "" || ${__T:Mriscv64*} != ""
|
2019-03-16 15:45:15 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+=OPENMP
|
|
|
|
.else
|
|
|
|
__DEFAULT_NO_OPTIONS+=OPENMP
|
|
|
|
.endif
|
2018-12-03 09:40:37 +00:00
|
|
|
|
2023-03-10 15:45:05 +00:00
|
|
|
# Broken on 32-bit arm, kernel module compile errors
|
2023-03-08 23:07:11 +00:00
|
|
|
.if ${__T:Marm*} != ""
|
2023-03-07 16:39:46 +00:00
|
|
|
BROKEN_OPTIONS+= OFED
|
|
|
|
.endif
|
|
|
|
|
2023-04-24 17:20:17 +00:00
|
|
|
# MK_host_egacy is set by local.sys.mk so is valid here
|
|
|
|
.if ${MACHINE} == "host" && ${MK_host_egacy} == "yes"
|
|
|
|
# we cannot expect tests to work
|
|
|
|
BROKEN_OPTIONS+= TESTS
|
|
|
|
.endif
|
|
|
|
|
2023-04-17 17:44:37 +00:00
|
|
|
.-include <site.src.opts.mk>
|
|
|
|
|
2014-05-06 04:21:48 +00:00
|
|
|
.include <bsd.mkopt.mk>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Force some options off if their dependencies are off.
|
|
|
|
# Order is somewhat important.
|
|
|
|
#
|
2016-12-10 13:29:51 +00:00
|
|
|
.if ${MK_CAPSICUM} == "no"
|
|
|
|
MK_CASPER:= no
|
|
|
|
.endif
|
|
|
|
|
2014-05-06 04:21:48 +00:00
|
|
|
.if ${MK_SOURCELESS} == "no"
|
|
|
|
MK_SOURCELESS_HOST:= no
|
|
|
|
MK_SOURCELESS_UCODE:= no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_CDDL} == "no"
|
|
|
|
MK_CTF:= no
|
2022-07-06 13:03:48 +00:00
|
|
|
MK_DTRACE:= no
|
|
|
|
MK_LOADER_ZFS:= no
|
|
|
|
MK_ZFS:= no
|
2014-05-06 04:21:48 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_CRYPT} == "no"
|
|
|
|
MK_OPENSSL:= no
|
|
|
|
MK_OPENSSH:= no
|
|
|
|
MK_KERBEROS:= no
|
2020-01-10 22:00:39 +00:00
|
|
|
MK_KERBEROS_SUPPORT:= no
|
2014-05-06 04:21:48 +00:00
|
|
|
.endif
|
|
|
|
|
2016-09-27 18:08:38 +00:00
|
|
|
.if ${MK_DIALOG} == "no"
|
|
|
|
MK_BSDINSTALL:= no
|
|
|
|
.endif
|
|
|
|
|
2022-07-06 13:03:48 +00:00
|
|
|
.if ${MK_DTRACE} == "no"
|
|
|
|
MK_CTF:= no
|
|
|
|
.endif
|
|
|
|
|
2014-05-06 04:21:48 +00:00
|
|
|
.if ${MK_MAIL} == "no"
|
|
|
|
MK_MAILWRAPPER:= no
|
|
|
|
MK_SENDMAIL:= no
|
|
|
|
MK_DMAGENT:= no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_NETGRAPH} == "no"
|
|
|
|
MK_BLUETOOTH:= no
|
|
|
|
.endif
|
|
|
|
|
2017-08-02 21:38:15 +00:00
|
|
|
.if ${MK_NLS} == "no"
|
|
|
|
MK_NLS_CATALOGS:= no
|
|
|
|
.endif
|
|
|
|
|
2014-05-06 04:21:48 +00:00
|
|
|
.if ${MK_OPENSSL} == "no"
|
2020-01-17 17:53:13 +00:00
|
|
|
MK_DMAGENT:= no
|
2014-05-06 04:21:48 +00:00
|
|
|
MK_OPENSSH:= no
|
2021-10-28 21:07:34 +00:00
|
|
|
MK_OPENSSL_KTLS:= no
|
2014-05-06 04:21:48 +00:00
|
|
|
MK_KERBEROS:= no
|
2020-01-10 22:00:39 +00:00
|
|
|
MK_KERBEROS_SUPPORT:= no
|
2019-12-20 20:23:59 +00:00
|
|
|
MK_LDNS:= no
|
2020-04-30 18:11:56 +00:00
|
|
|
MK_PKGBOOTSTRAP:= no
|
2023-03-10 13:55:11 +00:00
|
|
|
MK_LOADER_ZFS:= no
|
2021-01-30 19:04:08 +00:00
|
|
|
MK_ZFS:= no
|
2019-12-20 20:23:59 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_LDNS} == "no"
|
|
|
|
MK_LDNS_UTILS:= no
|
|
|
|
MK_UNBOUND:= no
|
2014-05-06 04:21:48 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_PF} == "no"
|
|
|
|
MK_AUTHPF:= no
|
|
|
|
.endif
|
|
|
|
|
2018-07-20 23:52:11 +00:00
|
|
|
.if ${MK_OFED} == "no"
|
|
|
|
MK_OFED_EXTRA:= no
|
|
|
|
.endif
|
|
|
|
|
2015-08-02 00:37:33 +00:00
|
|
|
.if ${MK_TESTS} == "no"
|
|
|
|
MK_DTRACE_TESTS:= no
|
2019-02-20 00:12:24 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_TESTS_SUPPORT} == "no"
|
2019-02-19 22:40:32 +00:00
|
|
|
MK_GOOGLETEST:= no
|
2015-08-02 00:37:33 +00:00
|
|
|
.endif
|
|
|
|
|
2017-07-06 04:19:33 +00:00
|
|
|
.if ${MK_ZONEINFO} == "no"
|
|
|
|
MK_ZONEINFO_LEAPSECONDS_SUPPORT:= no
|
|
|
|
.endif
|
|
|
|
|
2014-05-06 04:21:48 +00:00
|
|
|
.if ${MK_CROSS_COMPILER} == "no"
|
|
|
|
MK_CLANG_BOOTSTRAP:= no
|
2015-08-17 10:48:55 +00:00
|
|
|
MK_ELFTOOLCHAIN_BOOTSTRAP:= no
|
2018-03-07 17:33:41 +00:00
|
|
|
MK_LLD_BOOTSTRAP:= no
|
2014-05-06 04:21:48 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_TOOLCHAIN} == "no"
|
|
|
|
MK_CLANG:= no
|
2017-04-10 18:21:30 +00:00
|
|
|
MK_LLD:= no
|
2016-03-25 22:36:29 +00:00
|
|
|
MK_LLDB:= no
|
2021-09-06 08:49:49 +00:00
|
|
|
MK_LLVM_BINUTILS:= no
|
2014-05-06 04:21:48 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_CLANG} == "no"
|
|
|
|
MK_CLANG_EXTRAS:= no
|
2020-06-24 17:03:42 +00:00
|
|
|
MK_CLANG_FORMAT:= no
|
2014-05-06 04:21:48 +00:00
|
|
|
MK_CLANG_FULL:= no
|
2018-02-10 00:22:35 +00:00
|
|
|
MK_LLVM_COV:= no
|
2014-05-06 04:21:48 +00:00
|
|
|
.endif
|
|
|
|
|
2021-09-06 09:24:33 +00:00
|
|
|
.if ${MK_ASAN} == "yes"
|
|
|
|
# In order to get sensible backtraces from ASAN we have to install
|
|
|
|
# llvm-symbolizer as /usr/bin/addr2line instead of the elftoolchain version.
|
|
|
|
MK_LLVM_BINUTILS:= yes
|
|
|
|
.endif
|
|
|
|
|
2021-09-06 08:49:49 +00:00
|
|
|
.if ${MK_LLVM_BINUTILS} == "yes"
|
|
|
|
# MK_LLVM_CXXFILT is a subset of MK_LLVM_BINUTILS and should therefore be
|
|
|
|
# enabled if MK_LLVM_BINUTILS is set.
|
|
|
|
MK_LLVM_CXXFILT:= yes
|
|
|
|
.endif
|
|
|
|
|
2019-04-03 03:57:37 +00:00
|
|
|
.if ${MK_LOADER_VERIEXEC} == "no"
|
|
|
|
MK_LOADER_VERIEXEC_PASS_MANIFEST := no
|
|
|
|
.endif
|
|
|
|
|
2017-01-02 19:55:18 +00:00
|
|
|
#
|
|
|
|
# MK_* options whose default value depends on another option.
|
|
|
|
#
|
|
|
|
.for vv in \
|
|
|
|
GSSAPI/KERBEROS \
|
|
|
|
MAN_UTILS/MAN
|
|
|
|
.if defined(WITH_${vv:H})
|
|
|
|
MK_${vv:H}:= yes
|
|
|
|
.elif defined(WITHOUT_${vv:H})
|
|
|
|
MK_${vv:H}:= no
|
|
|
|
.else
|
|
|
|
MK_${vv:H}:= ${MK_${vv:T}}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
2014-05-06 04:21:48 +00:00
|
|
|
#
|
|
|
|
# Set defaults for the MK_*_SUPPORT variables.
|
|
|
|
#
|
|
|
|
|
2014-10-21 20:00:49 +00:00
|
|
|
.endif # !target(__<src.opts.mk>__)
|