2014-08-06 22:17:26 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# The include file <src.libnames.mk> define library names suitable
|
|
|
|
# for INTERNALLIB and PRIVATELIB definition
|
|
|
|
|
|
|
|
.if !target(__<bsd.init.mk>__)
|
|
|
|
.error src.libnames.mk cannot be included directly.
|
|
|
|
.endif
|
|
|
|
|
2015-11-25 19:44:51 +00:00
|
|
|
.if !target(__<src.libnames.mk>__)
|
|
|
|
__<src.libnames.mk>__:
|
|
|
|
|
2014-11-24 21:31:08 +00:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
|
|
|
_PRIVATELIBS= \
|
|
|
|
atf_c \
|
|
|
|
atf_cxx \
|
2020-04-19 02:20:39 +00:00
|
|
|
auditd \
|
2014-11-24 21:31:08 +00:00
|
|
|
bsdstat \
|
zfsd(8), the ZFS fault management daemon
Add zfsd, which deals with hard drive faults in ZFS pools. It manages
hotspares and replements in drive slots that publish physical paths.
cddl/usr.sbin/zfsd
Add zfsd(8) and its unit tests
cddl/usr.sbin/Makefile
Add zfsd to the build
lib/libdevdctl
A C++ library that helps devd clients process events
lib/Makefile
share/mk/bsd.libnames.mk
share/mk/src.libnames.mk
Add libdevdctl to the build. It's a private library, unusable by
out-of-tree software.
etc/defaults/rc.conf
By default, set zfsd_enable to NO
etc/mtree/BSD.include.dist
Add a directory for libdevdctl's include files
etc/mtree/BSD.tests.dist
Add a directory for zfsd's unit tests
etc/mtree/BSD.var.dist
Add /var/db/zfsd/cases, where zfsd stores case files while it's shut
down.
etc/rc.d/Makefile
etc/rc.d/zfsd
Add zfsd's rc script
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
Fix the resource.fs.zfs.statechange message. It had a number of
problems:
It was only being emitted on a transition to the HEALTHY state.
That made it impossible for zfsd to take actions based on drives
getting sicker.
It compared the new state to vdev_prevstate, which is the state that
the vdev had the last time it was opened. That doesn't make sense,
because a vdev can change state multiple times without being
reopened.
vdev_set_state contains logic that will change the device's new
state based on various conditions. However, the statechange event
was being posted _before_ that logic took effect. Now it's being
posted after.
Submitted by: gibbs, asomers, mav, allanjude
Reviewed by: mav, delphij
Relnotes: yes
Sponsored by: Spectra Logic Corp, iX Systems
Differential Revision: https://reviews.freebsd.org/D6564
2016-05-28 17:43:40 +00:00
|
|
|
devdctl \
|
2020-05-28 22:05:50 +00:00
|
|
|
event1 \
|
2019-02-13 04:58:15 +00:00
|
|
|
gmock \
|
|
|
|
gtest \
|
|
|
|
gmock_main \
|
|
|
|
gtest_main \
|
2014-11-24 22:17:35 +00:00
|
|
|
heimipcc \
|
2014-11-25 07:13:31 +00:00
|
|
|
heimipcs \
|
2014-11-24 21:31:08 +00:00
|
|
|
ldns \
|
|
|
|
sqlite3 \
|
|
|
|
ssh \
|
|
|
|
ucl \
|
2017-04-15 20:05:22 +00:00
|
|
|
unbound \
|
|
|
|
zstd
|
2014-11-24 22:29:16 +00:00
|
|
|
|
2015-05-08 16:43:01 +00:00
|
|
|
_INTERNALLIBS= \
|
2014-11-25 16:51:06 +00:00
|
|
|
amu \
|
|
|
|
bsnmptools \
|
2018-05-09 10:28:24 +00:00
|
|
|
c_nossp_pic \
|
2014-11-25 16:51:06 +00:00
|
|
|
cron \
|
2014-12-01 17:49:42 +00:00
|
|
|
elftc \
|
2014-11-25 16:51:06 +00:00
|
|
|
fifolog \
|
2019-02-25 18:22:20 +00:00
|
|
|
ifconfig \
|
2014-11-25 11:22:28 +00:00
|
|
|
ipf \
|
2020-03-23 19:01:23 +00:00
|
|
|
kyua_cli \
|
|
|
|
kyua_drivers \
|
|
|
|
kyua_engine \
|
|
|
|
kyua_model \
|
|
|
|
kyua_store \
|
|
|
|
kyua_utils \
|
2014-11-25 16:51:06 +00:00
|
|
|
lpr \
|
2020-03-17 17:28:12 +00:00
|
|
|
lua \
|
2020-03-23 18:26:23 +00:00
|
|
|
lutok \
|
2014-11-24 22:15:30 +00:00
|
|
|
netbsd \
|
2014-11-25 16:51:06 +00:00
|
|
|
ntp \
|
2015-03-30 13:30:15 +00:00
|
|
|
ntpevent \
|
2015-11-04 07:20:55 +00:00
|
|
|
openbsd \
|
2014-11-25 16:51:06 +00:00
|
|
|
opts \
|
|
|
|
parse \
|
2016-02-12 21:12:47 +00:00
|
|
|
pe \
|
2021-03-26 10:38:58 +00:00
|
|
|
pfctl \
|
2017-10-24 16:28:00 +00:00
|
|
|
pmcstat \
|
2014-11-25 09:54:05 +00:00
|
|
|
sl \
|
|
|
|
sm \
|
2014-11-25 14:28:15 +00:00
|
|
|
smdb \
|
|
|
|
smutil \
|
|
|
|
telnet \
|
2014-11-25 09:54:05 +00:00
|
|
|
vers
|
2014-11-24 21:31:08 +00:00
|
|
|
|
|
|
|
_LIBRARIES= \
|
2014-11-24 22:29:16 +00:00
|
|
|
${_PRIVATELIBS} \
|
2015-05-08 16:43:01 +00:00
|
|
|
${_INTERNALLIBS} \
|
2015-12-01 20:50:14 +00:00
|
|
|
${LOCAL_LIBRARIES} \
|
2015-11-30 06:56:25 +00:00
|
|
|
80211 \
|
2020-10-03 19:05:13 +00:00
|
|
|
9p \
|
2014-11-25 07:13:31 +00:00
|
|
|
alias \
|
2014-11-24 21:31:08 +00:00
|
|
|
archive \
|
2014-11-24 22:17:35 +00:00
|
|
|
asn1 \
|
2015-08-07 23:45:32 +00:00
|
|
|
avl \
|
2018-07-24 13:17:40 +00:00
|
|
|
be \
|
2014-11-25 14:28:15 +00:00
|
|
|
begemot \
|
|
|
|
bluetooth \
|
2014-11-24 21:31:08 +00:00
|
|
|
bsdxml \
|
2014-11-25 14:28:15 +00:00
|
|
|
bsm \
|
2014-11-25 19:13:03 +00:00
|
|
|
bsnmp \
|
2014-11-24 21:31:08 +00:00
|
|
|
bz2 \
|
2014-11-25 21:16:44 +00:00
|
|
|
c \
|
|
|
|
c_pic \
|
2014-11-25 14:28:15 +00:00
|
|
|
calendar \
|
2014-11-24 21:31:08 +00:00
|
|
|
cam \
|
|
|
|
casper \
|
2016-02-25 18:23:40 +00:00
|
|
|
cap_dns \
|
2018-11-12 17:40:47 +00:00
|
|
|
cap_fileargs \
|
2016-02-25 18:23:40 +00:00
|
|
|
cap_grp \
|
2020-08-16 18:12:21 +00:00
|
|
|
cap_net \
|
2016-02-25 18:23:40 +00:00
|
|
|
cap_pwd \
|
|
|
|
cap_sysctl \
|
2017-11-12 08:34:25 +00:00
|
|
|
cap_syslog \
|
2014-11-24 22:17:35 +00:00
|
|
|
com_err \
|
2014-11-25 11:07:03 +00:00
|
|
|
compiler_rt \
|
2014-11-24 21:31:08 +00:00
|
|
|
crypt \
|
|
|
|
crypto \
|
2014-11-25 11:07:03 +00:00
|
|
|
ctf \
|
2014-11-24 21:31:08 +00:00
|
|
|
cuse \
|
|
|
|
cxxrt \
|
2015-02-06 16:09:01 +00:00
|
|
|
devctl \
|
zfsd(8), the ZFS fault management daemon
Add zfsd, which deals with hard drive faults in ZFS pools. It manages
hotspares and replements in drive slots that publish physical paths.
cddl/usr.sbin/zfsd
Add zfsd(8) and its unit tests
cddl/usr.sbin/Makefile
Add zfsd to the build
lib/libdevdctl
A C++ library that helps devd clients process events
lib/Makefile
share/mk/bsd.libnames.mk
share/mk/src.libnames.mk
Add libdevdctl to the build. It's a private library, unusable by
out-of-tree software.
etc/defaults/rc.conf
By default, set zfsd_enable to NO
etc/mtree/BSD.include.dist
Add a directory for libdevdctl's include files
etc/mtree/BSD.tests.dist
Add a directory for zfsd's unit tests
etc/mtree/BSD.var.dist
Add /var/db/zfsd/cases, where zfsd stores case files while it's shut
down.
etc/rc.d/Makefile
etc/rc.d/zfsd
Add zfsd's rc script
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
Fix the resource.fs.zfs.statechange message. It had a number of
problems:
It was only being emitted on a transition to the HEALTHY state.
That made it impossible for zfsd to take actions based on drives
getting sicker.
It compared the new state to vdev_prevstate, which is the state that
the vdev had the last time it was opened. That doesn't make sense,
because a vdev can change state multiple times without being
reopened.
vdev_set_state contains logic that will change the device's new
state based on various conditions. However, the statechange event
was being posted _before_ that logic took effect. Now it's being
posted after.
Submitted by: gibbs, asomers, mav, allanjude
Reviewed by: mav, delphij
Relnotes: yes
Sponsored by: Spectra Logic Corp, iX Systems
Differential Revision: https://reviews.freebsd.org/D6564
2016-05-28 17:43:40 +00:00
|
|
|
devdctl \
|
2014-11-25 16:51:06 +00:00
|
|
|
devinfo \
|
2014-11-24 21:31:08 +00:00
|
|
|
devstat \
|
|
|
|
dialog \
|
2017-07-10 14:59:21 +00:00
|
|
|
dl \
|
2014-11-24 21:31:08 +00:00
|
|
|
dpv \
|
2015-05-19 22:22:53 +00:00
|
|
|
dtrace \
|
2014-11-24 21:31:08 +00:00
|
|
|
dwarf \
|
|
|
|
edit \
|
2016-10-11 22:30:41 +00:00
|
|
|
efivar \
|
2014-11-24 21:31:08 +00:00
|
|
|
elf \
|
|
|
|
execinfo \
|
|
|
|
fetch \
|
|
|
|
figpar \
|
|
|
|
geom \
|
2014-12-03 03:05:15 +00:00
|
|
|
gpio \
|
2014-11-24 21:31:08 +00:00
|
|
|
gssapi \
|
2014-11-25 21:16:44 +00:00
|
|
|
gssapi_krb5 \
|
2014-11-25 07:13:31 +00:00
|
|
|
hdb \
|
2014-11-24 22:17:35 +00:00
|
|
|
heimbase \
|
2014-11-25 07:13:31 +00:00
|
|
|
heimntlm \
|
|
|
|
heimsqlite \
|
2014-11-24 22:17:35 +00:00
|
|
|
hx509 \
|
Merge OpenZFS support in to HEAD.
The primary benefit is maintaining a completely shared
code base with the community allowing FreeBSD to receive
new features sooner and with less effort.
I would advise against doing 'zpool upgrade'
or creating indispensable pools using new
features until this change has had a month+
to soak.
Work on merging FreeBSD support in to what was
at the time "ZFS on Linux" began in August 2018.
I first publicly proposed transitioning FreeBSD
to (new) OpenZFS on December 18th, 2018. FreeBSD
support in OpenZFS was finally completed in December
2019. A CFT for downstreaming OpenZFS support in
to FreeBSD was first issued on July 8th. All issues
that were reported have been addressed or, for
a couple of less critical matters there are
pull requests in progress with OpenZFS. iXsystems
has tested and dogfooded extensively internally.
The TrueNAS 12 release is based on OpenZFS with
some additional features that have not yet made
it upstream.
Improvements include:
project quotas, encrypted datasets,
allocation classes, vectorized raidz,
vectorized checksums, various command line
improvements, zstd compression.
Thanks to those who have helped along the way:
Ryan Moeller, Allan Jude, Zack Welch, and many
others.
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D25872
2020-08-25 02:21:27 +00:00
|
|
|
icp \
|
2014-11-24 21:31:08 +00:00
|
|
|
ipsec \
|
2018-03-21 14:37:04 +00:00
|
|
|
ipt \
|
2014-11-24 21:31:08 +00:00
|
|
|
jail \
|
2014-11-25 07:13:31 +00:00
|
|
|
kadm5clnt \
|
|
|
|
kadm5srv \
|
|
|
|
kafs5 \
|
|
|
|
kdc \
|
2014-11-24 21:31:08 +00:00
|
|
|
kiconv \
|
2014-11-24 22:17:35 +00:00
|
|
|
krb5 \
|
2014-11-25 19:13:03 +00:00
|
|
|
kvm \
|
2014-11-24 21:31:08 +00:00
|
|
|
l \
|
|
|
|
lzma \
|
|
|
|
m \
|
|
|
|
magic \
|
|
|
|
md \
|
|
|
|
memstat \
|
|
|
|
mp \
|
2015-04-09 21:26:38 +00:00
|
|
|
mt \
|
2014-11-25 19:13:03 +00:00
|
|
|
ncursesw \
|
2014-11-25 14:28:15 +00:00
|
|
|
netgraph \
|
2020-08-28 20:03:54 +00:00
|
|
|
netmap \
|
2014-11-25 14:28:15 +00:00
|
|
|
ngatm \
|
2014-11-24 21:31:08 +00:00
|
|
|
nv \
|
2015-12-04 03:17:21 +00:00
|
|
|
nvpair \
|
2018-04-04 14:31:56 +00:00
|
|
|
opencsd \
|
2014-11-24 21:31:08 +00:00
|
|
|
opie \
|
|
|
|
pam \
|
2015-06-15 21:20:21 +00:00
|
|
|
panel \
|
|
|
|
panelw \
|
2014-11-24 21:31:08 +00:00
|
|
|
pcap \
|
2014-11-25 16:51:06 +00:00
|
|
|
pcsclite \
|
2014-11-24 21:31:08 +00:00
|
|
|
pjdlog \
|
2014-11-25 16:51:06 +00:00
|
|
|
pmc \
|
2014-11-24 21:31:08 +00:00
|
|
|
proc \
|
|
|
|
procstat \
|
|
|
|
pthread \
|
|
|
|
radius \
|
2018-01-22 02:44:41 +00:00
|
|
|
regex \
|
2014-11-24 22:17:35 +00:00
|
|
|
roken \
|
2014-11-24 21:31:08 +00:00
|
|
|
rpcsec_gss \
|
2014-11-25 14:28:15 +00:00
|
|
|
rpcsvc \
|
2014-11-24 21:31:08 +00:00
|
|
|
rt \
|
2015-05-19 22:22:53 +00:00
|
|
|
rtld_db \
|
2014-11-24 21:31:08 +00:00
|
|
|
sbuf \
|
2014-11-25 14:28:15 +00:00
|
|
|
sdp \
|
2014-11-24 21:31:08 +00:00
|
|
|
sm \
|
|
|
|
smb \
|
Merge OpenZFS support in to HEAD.
The primary benefit is maintaining a completely shared
code base with the community allowing FreeBSD to receive
new features sooner and with less effort.
I would advise against doing 'zpool upgrade'
or creating indispensable pools using new
features until this change has had a month+
to soak.
Work on merging FreeBSD support in to what was
at the time "ZFS on Linux" began in August 2018.
I first publicly proposed transitioning FreeBSD
to (new) OpenZFS on December 18th, 2018. FreeBSD
support in OpenZFS was finally completed in December
2019. A CFT for downstreaming OpenZFS support in
to FreeBSD was first issued on July 8th. All issues
that were reported have been addressed or, for
a couple of less critical matters there are
pull requests in progress with OpenZFS. iXsystems
has tested and dogfooded extensively internally.
The TrueNAS 12 release is based on OpenZFS with
some additional features that have not yet made
it upstream.
Improvements include:
project quotas, encrypted datasets,
allocation classes, vectorized raidz,
vectorized checksums, various command line
improvements, zstd compression.
Thanks to those who have helped along the way:
Ryan Moeller, Allan Jude, Zack Welch, and many
others.
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D25872
2020-08-25 02:21:27 +00:00
|
|
|
spl \
|
2014-11-24 21:31:08 +00:00
|
|
|
ssl \
|
2014-11-25 19:13:03 +00:00
|
|
|
ssp_nonshared \
|
2019-10-07 19:05:05 +00:00
|
|
|
stats \
|
2014-11-24 21:31:08 +00:00
|
|
|
stdthreads \
|
|
|
|
supcplusplus \
|
2015-12-15 00:05:07 +00:00
|
|
|
sysdecode \
|
2014-11-24 21:31:08 +00:00
|
|
|
tacplus \
|
|
|
|
termcapw \
|
Merge OpenZFS support in to HEAD.
The primary benefit is maintaining a completely shared
code base with the community allowing FreeBSD to receive
new features sooner and with less effort.
I would advise against doing 'zpool upgrade'
or creating indispensable pools using new
features until this change has had a month+
to soak.
Work on merging FreeBSD support in to what was
at the time "ZFS on Linux" began in August 2018.
I first publicly proposed transitioning FreeBSD
to (new) OpenZFS on December 18th, 2018. FreeBSD
support in OpenZFS was finally completed in December
2019. A CFT for downstreaming OpenZFS support in
to FreeBSD was first issued on July 8th. All issues
that were reported have been addressed or, for
a couple of less critical matters there are
pull requests in progress with OpenZFS. iXsystems
has tested and dogfooded extensively internally.
The TrueNAS 12 release is based on OpenZFS with
some additional features that have not yet made
it upstream.
Improvements include:
project quotas, encrypted datasets,
allocation classes, vectorized raidz,
vectorized checksums, various command line
improvements, zstd compression.
Thanks to those who have helped along the way:
Ryan Moeller, Allan Jude, Zack Welch, and many
others.
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D25872
2020-08-25 02:21:27 +00:00
|
|
|
tpool \
|
2014-11-24 21:31:08 +00:00
|
|
|
ufs \
|
2014-11-25 19:13:03 +00:00
|
|
|
ugidfw \
|
2014-11-24 21:31:08 +00:00
|
|
|
ulog \
|
2015-12-04 03:17:21 +00:00
|
|
|
umem \
|
2014-11-24 21:31:08 +00:00
|
|
|
usb \
|
2014-11-25 14:28:15 +00:00
|
|
|
usbhid \
|
2014-11-24 21:31:08 +00:00
|
|
|
util \
|
2015-12-04 03:17:21 +00:00
|
|
|
uutil \
|
2014-11-25 16:51:06 +00:00
|
|
|
vmmapi \
|
2014-11-24 22:17:35 +00:00
|
|
|
wind \
|
2014-11-24 21:31:08 +00:00
|
|
|
wrap \
|
2014-11-25 11:13:21 +00:00
|
|
|
xo \
|
2014-11-24 21:31:08 +00:00
|
|
|
y \
|
2014-11-25 11:07:03 +00:00
|
|
|
ypclnt \
|
2015-12-04 03:17:21 +00:00
|
|
|
z \
|
|
|
|
zfs_core \
|
|
|
|
zfs \
|
loader: zfs should support bootonce an nextboot
bootonce feature is temporary, one time boot, activated by
"bectl activate -t BE", "bectl activate -T BE" will reset the bootonce flag.
By default, the bootonce setting is reset on attempt to boot and the next
boot will use previously active BE.
By setting zfs_bootonce_activate="YES" in rc.conf, the bootonce BE will
be set permanently active.
bootonce dataset name is recorded in boot pool labels, bootenv area.
in case of nextboot, the nextboot_enable boolean variable is recorded in
freebsd:nvstore nvlist, also stored in boot pool label bootenv area.
On boot, the loader will process /boot/nextboot.conf if nextboot_enable
is "YES", and will set nextboot_enable to "NO", preventing /boot/nextboot.conf
processing on next boot.
bootonce and nextboot features are usable in both UEFI and BIOS boot.
To use bootonce/nextboot features, the boot loader needs to be updated on disk;
if loader.efi is stored on ESP, then ESP needs to be updated and
for BIOS boot, stage2 (zfsboot or gptzfsboot) needs to be updated
(gpart or other tools).
At this time, only lua loader is updated.
Sponsored by: Netflix, Klara Inc.
Differential Revision: https://reviews.freebsd.org/D25512
2020-09-21 09:01:10 +00:00
|
|
|
zfsbootenv \
|
2015-12-04 03:17:21 +00:00
|
|
|
zpool \
|
Merge OpenZFS support in to HEAD.
The primary benefit is maintaining a completely shared
code base with the community allowing FreeBSD to receive
new features sooner and with less effort.
I would advise against doing 'zpool upgrade'
or creating indispensable pools using new
features until this change has had a month+
to soak.
Work on merging FreeBSD support in to what was
at the time "ZFS on Linux" began in August 2018.
I first publicly proposed transitioning FreeBSD
to (new) OpenZFS on December 18th, 2018. FreeBSD
support in OpenZFS was finally completed in December
2019. A CFT for downstreaming OpenZFS support in
to FreeBSD was first issued on July 8th. All issues
that were reported have been addressed or, for
a couple of less critical matters there are
pull requests in progress with OpenZFS. iXsystems
has tested and dogfooded extensively internally.
The TrueNAS 12 release is based on OpenZFS with
some additional features that have not yet made
it upstream.
Improvements include:
project quotas, encrypted datasets,
allocation classes, vectorized raidz,
vectorized checksums, various command line
improvements, zstd compression.
Thanks to those who have helped along the way:
Ryan Moeller, Allan Jude, Zack Welch, and many
others.
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D25872
2020-08-25 02:21:27 +00:00
|
|
|
zutil
|
2015-12-04 03:17:21 +00:00
|
|
|
|
2016-06-02 19:06:04 +00:00
|
|
|
.if ${MK_BLACKLIST} != "no"
|
|
|
|
_LIBRARIES+= \
|
|
|
|
blacklist \
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
2015-12-10 00:07:11 +00:00
|
|
|
.if ${MK_OFED} != "no"
|
|
|
|
_LIBRARIES+= \
|
|
|
|
cxgb4 \
|
|
|
|
ibcm \
|
|
|
|
ibmad \
|
2017-11-13 12:36:36 +00:00
|
|
|
ibnetdisc \
|
2015-12-10 00:07:11 +00:00
|
|
|
ibumad \
|
|
|
|
ibverbs \
|
|
|
|
mlx4 \
|
2017-11-13 12:36:36 +00:00
|
|
|
mlx5 \
|
2015-12-10 00:07:11 +00:00
|
|
|
rdmacm \
|
2017-11-13 12:36:36 +00:00
|
|
|
osmcomp \
|
|
|
|
opensm \
|
|
|
|
osmvendor
|
2015-12-10 00:07:11 +00:00
|
|
|
.endif
|
2014-11-24 21:31:08 +00:00
|
|
|
|
2019-02-26 06:11:01 +00:00
|
|
|
.if ${MK_BEARSSL} == "yes"
|
2020-04-01 05:45:12 +00:00
|
|
|
_LIBRARIES+= \
|
2019-02-26 06:11:01 +00:00
|
|
|
bearssl \
|
|
|
|
secureboot \
|
|
|
|
|
2020-04-01 05:45:12 +00:00
|
|
|
LIBBEARSSL?= ${LIBBEARSSLDIR}/libbearssl.a
|
|
|
|
LIBSECUREBOOT?= ${LIBSECUREBOOTDIR}/libsecureboot.a
|
2019-02-26 06:11:01 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_VERIEXEC} == "yes"
|
2020-04-01 05:45:12 +00:00
|
|
|
_LIBRARIES+= veriexec
|
2019-02-26 06:11:01 +00:00
|
|
|
|
2020-04-01 05:45:12 +00:00
|
|
|
LIBVERIEXEC?= ${LIBVERIEXECDIR}/libveriexec.a
|
2019-02-26 06:11:01 +00:00
|
|
|
.endif
|
|
|
|
|
2015-12-02 01:24:31 +00:00
|
|
|
# Each library's LIBADD needs to be duplicated here for static linkage of
|
|
|
|
# 2nd+ order consumers. Auto-generating this would be better.
|
2015-12-01 17:38:52 +00:00
|
|
|
_DP_80211= sbuf bsdxml
|
2020-10-03 19:05:13 +00:00
|
|
|
_DP_9p= sbuf
|
2019-09-18 08:02:03 +00:00
|
|
|
_DP_archive= z bz2 lzma bsdxml zstd
|
2017-05-06 10:59:10 +00:00
|
|
|
_DP_zstd= pthread
|
2016-06-02 19:06:04 +00:00
|
|
|
.if ${MK_BLACKLIST} != "no"
|
|
|
|
_DP_blacklist+= pthread
|
|
|
|
.endif
|
2018-09-20 00:20:04 +00:00
|
|
|
_DP_crypto= pthread
|
2014-11-24 21:31:08 +00:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
|
|
_DP_archive+= crypto
|
|
|
|
.else
|
|
|
|
_DP_archive+= md
|
|
|
|
.endif
|
2015-12-02 01:17:09 +00:00
|
|
|
_DP_sqlite3= pthread
|
2014-11-24 21:31:08 +00:00
|
|
|
_DP_ssl= crypto
|
2015-12-02 00:49:39 +00:00
|
|
|
_DP_ssh= crypto crypt z
|
2014-11-25 22:10:31 +00:00
|
|
|
.if ${MK_LDNS} != "no"
|
2015-12-02 00:49:39 +00:00
|
|
|
_DP_ssh+= ldns
|
2014-11-25 22:10:31 +00:00
|
|
|
.endif
|
2014-11-25 11:14:42 +00:00
|
|
|
_DP_edit= ncursesw
|
2014-11-24 21:31:08 +00:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
|
|
_DP_bsnmp= crypto
|
|
|
|
.endif
|
2015-02-28 05:14:42 +00:00
|
|
|
_DP_geom= bsdxml sbuf
|
2014-11-24 21:31:08 +00:00
|
|
|
_DP_cam= sbuf
|
2015-11-27 18:58:26 +00:00
|
|
|
_DP_kvm= elf
|
2020-03-23 21:21:38 +00:00
|
|
|
_DP_kyua_cli= kyua_drivers kyua_engine kyua_model kyua_store kyua_utils
|
|
|
|
_DP_kyua_drivers= kyua_model kyua_engine kyua_store
|
|
|
|
_DP_kyua_engine= lutok kyua_utils
|
|
|
|
_DP_kyua_model= lutok
|
|
|
|
_DP_kyua_utils= lutok
|
|
|
|
_DP_kyua_store= kyua_model kyua_utils sqlite3
|
2016-02-25 18:23:40 +00:00
|
|
|
_DP_casper= nv
|
|
|
|
_DP_cap_dns= nv
|
2018-11-12 17:40:47 +00:00
|
|
|
_DP_cap_fileargs= nv
|
2016-02-25 18:23:40 +00:00
|
|
|
_DP_cap_grp= nv
|
|
|
|
_DP_cap_pwd= nv
|
|
|
|
_DP_cap_sysctl= nv
|
2017-11-12 08:34:25 +00:00
|
|
|
_DP_cap_syslog= nv
|
2018-05-28 08:12:18 +00:00
|
|
|
.if ${MK_OFED} != "no"
|
|
|
|
_DP_pcap= ibverbs mlx5
|
|
|
|
.endif
|
2014-11-24 21:31:08 +00:00
|
|
|
_DP_pjdlog= util
|
|
|
|
_DP_opie= md
|
|
|
|
_DP_usb= pthread
|
2015-12-02 01:24:31 +00:00
|
|
|
_DP_unbound= ssl crypto pthread
|
2014-11-24 21:31:08 +00:00
|
|
|
_DP_rt= pthread
|
|
|
|
.if ${MK_OPENSSL} == "no"
|
|
|
|
_DP_radius= md
|
|
|
|
.else
|
|
|
|
_DP_radius= crypto
|
|
|
|
.endif
|
2016-07-30 03:05:23 +00:00
|
|
|
_DP_rtld_db= elf procstat
|
2014-11-24 21:31:08 +00:00
|
|
|
_DP_procstat= kvm util elf
|
|
|
|
.if ${MK_CXX} == "yes"
|
|
|
|
_DP_proc= cxxrt
|
|
|
|
.endif
|
|
|
|
.if ${MK_CDDL} != "no"
|
2014-11-24 23:58:04 +00:00
|
|
|
_DP_proc+= ctf
|
2014-11-24 21:31:08 +00:00
|
|
|
.endif
|
2016-07-30 03:09:23 +00:00
|
|
|
_DP_proc+= elf procstat rtld_db util
|
2014-11-24 21:31:08 +00:00
|
|
|
_DP_mp= crypto
|
|
|
|
_DP_memstat= kvm
|
|
|
|
_DP_magic= z
|
2015-12-02 00:49:42 +00:00
|
|
|
_DP_mt= sbuf bsdxml
|
2018-10-12 05:27:58 +00:00
|
|
|
_DP_ldns= ssl crypto
|
2020-03-17 17:28:12 +00:00
|
|
|
_DP_lua= m
|
2020-03-23 18:26:23 +00:00
|
|
|
_DP_lutok= lua
|
2014-11-24 21:31:08 +00:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
|
|
_DP_fetch= ssl crypto
|
|
|
|
.else
|
|
|
|
_DP_fetch= md
|
|
|
|
.endif
|
|
|
|
_DP_execinfo= elf
|
|
|
|
_DP_dwarf= elf
|
2015-12-02 01:24:31 +00:00
|
|
|
_DP_dpv= dialog figpar util ncursesw
|
2014-11-24 21:31:08 +00:00
|
|
|
_DP_dialog= ncursesw m
|
|
|
|
_DP_cuse= pthread
|
|
|
|
_DP_atf_cxx= atf_c
|
2020-08-04 02:18:24 +00:00
|
|
|
_DP_gtest= pthread regex
|
2019-02-13 04:58:15 +00:00
|
|
|
_DP_gmock= gtest
|
|
|
|
_DP_gmock_main= gmock
|
|
|
|
_DP_gtest_main= gtest
|
2014-11-24 21:31:08 +00:00
|
|
|
_DP_devstat= kvm
|
2014-11-25 14:28:15 +00:00
|
|
|
_DP_pam= radius tacplus opie md util
|
|
|
|
.if ${MK_KERBEROS} != "no"
|
|
|
|
_DP_pam+= krb5
|
|
|
|
.endif
|
|
|
|
.if ${MK_OPENSSH} != "no"
|
|
|
|
_DP_pam+= ssh
|
|
|
|
.endif
|
|
|
|
.if ${MK_NIS} != "no"
|
|
|
|
_DP_pam+= ypclnt
|
|
|
|
.endif
|
2015-12-02 01:24:31 +00:00
|
|
|
_DP_roken= crypt
|
|
|
|
_DP_kadm5clnt= com_err krb5 roken
|
|
|
|
_DP_kadm5srv= com_err hdb krb5 roken
|
|
|
|
_DP_heimntlm= crypto com_err krb5 roken
|
|
|
|
_DP_hx509= asn1 com_err crypto roken wind
|
|
|
|
_DP_hdb= asn1 com_err krb5 roken sqlite3
|
|
|
|
_DP_asn1= com_err roken
|
|
|
|
_DP_kdc= roken hdb hx509 krb5 heimntlm asn1 crypto
|
|
|
|
_DP_wind= com_err roken
|
|
|
|
_DP_heimbase= pthread
|
|
|
|
_DP_heimipcc= heimbase roken pthread
|
|
|
|
_DP_heimipcs= heimbase roken pthread
|
|
|
|
_DP_kafs5= asn1 krb5 roken
|
|
|
|
_DP_krb5+= asn1 com_err crypt crypto hx509 roken wind heimbase heimipcc
|
2014-11-25 22:17:31 +00:00
|
|
|
_DP_gssapi_krb5+= gssapi krb5 crypto roken asn1 com_err
|
2020-06-20 21:32:07 +00:00
|
|
|
_DP_lzma= md pthread
|
2014-11-29 00:45:09 +00:00
|
|
|
_DP_ucl= m
|
2015-04-09 21:38:40 +00:00
|
|
|
_DP_vmmapi= util
|
2018-04-04 14:31:56 +00:00
|
|
|
_DP_opencsd= cxxrt
|
Merge OpenZFS support in to HEAD.
The primary benefit is maintaining a completely shared
code base with the community allowing FreeBSD to receive
new features sooner and with less effort.
I would advise against doing 'zpool upgrade'
or creating indispensable pools using new
features until this change has had a month+
to soak.
Work on merging FreeBSD support in to what was
at the time "ZFS on Linux" began in August 2018.
I first publicly proposed transitioning FreeBSD
to (new) OpenZFS on December 18th, 2018. FreeBSD
support in OpenZFS was finally completed in December
2019. A CFT for downstreaming OpenZFS support in
to FreeBSD was first issued on July 8th. All issues
that were reported have been addressed or, for
a couple of less critical matters there are
pull requests in progress with OpenZFS. iXsystems
has tested and dogfooded extensively internally.
The TrueNAS 12 release is based on OpenZFS with
some additional features that have not yet made
it upstream.
Improvements include:
project quotas, encrypted datasets,
allocation classes, vectorized raidz,
vectorized checksums, various command line
improvements, zstd compression.
Thanks to those who have helped along the way:
Ryan Moeller, Allan Jude, Zack Welch, and many
others.
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D25872
2020-08-25 02:21:27 +00:00
|
|
|
_DP_ctf= spl z
|
2015-12-02 00:49:49 +00:00
|
|
|
_DP_dtrace= ctf elf proc pthread rtld_db
|
2015-10-18 07:30:50 +00:00
|
|
|
_DP_xo= util
|
Merge OpenZFS support in to HEAD.
The primary benefit is maintaining a completely shared
code base with the community allowing FreeBSD to receive
new features sooner and with less effort.
I would advise against doing 'zpool upgrade'
or creating indispensable pools using new
features until this change has had a month+
to soak.
Work on merging FreeBSD support in to what was
at the time "ZFS on Linux" began in August 2018.
I first publicly proposed transitioning FreeBSD
to (new) OpenZFS on December 18th, 2018. FreeBSD
support in OpenZFS was finally completed in December
2019. A CFT for downstreaming OpenZFS support in
to FreeBSD was first issued on July 8th. All issues
that were reported have been addressed or, for
a couple of less critical matters there are
pull requests in progress with OpenZFS. iXsystems
has tested and dogfooded extensively internally.
The TrueNAS 12 release is based on OpenZFS with
some additional features that have not yet made
it upstream.
Improvements include:
project quotas, encrypted datasets,
allocation classes, vectorized raidz,
vectorized checksums, various command line
improvements, zstd compression.
Thanks to those who have helped along the way:
Ryan Moeller, Allan Jude, Zack Welch, and many
others.
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D25872
2020-08-25 02:21:27 +00:00
|
|
|
_DP_ztest= geom m nvpair umem zpool pthread avl zfs_core spl zutil zfs uutil icp
|
2015-12-02 01:24:31 +00:00
|
|
|
# The libc dependencies are not strictly needed but are defined to make the
|
|
|
|
# assert happy.
|
|
|
|
_DP_c= compiler_rt
|
2020-02-05 20:08:01 +00:00
|
|
|
.if ${MK_SSP} != "no" && \
|
|
|
|
(${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH:Mpower*} != "")
|
2015-12-02 01:24:31 +00:00
|
|
|
_DP_c+= ssp_nonshared
|
|
|
|
.endif
|
2019-10-07 19:05:05 +00:00
|
|
|
_DP_stats= sbuf pthread
|
2015-12-02 01:24:31 +00:00
|
|
|
_DP_stdthreads= pthread
|
|
|
|
_DP_tacplus= md
|
|
|
|
_DP_panelw= ncursesw
|
|
|
|
_DP_rpcsec_gss= gssapi
|
|
|
|
_DP_smb= kiconv
|
|
|
|
_DP_ulog= md
|
2015-12-04 03:17:17 +00:00
|
|
|
_DP_fifolog= z
|
|
|
|
_DP_ipf= kvm
|
Merge OpenZFS support in to HEAD.
The primary benefit is maintaining a completely shared
code base with the community allowing FreeBSD to receive
new features sooner and with less effort.
I would advise against doing 'zpool upgrade'
or creating indispensable pools using new
features until this change has had a month+
to soak.
Work on merging FreeBSD support in to what was
at the time "ZFS on Linux" began in August 2018.
I first publicly proposed transitioning FreeBSD
to (new) OpenZFS on December 18th, 2018. FreeBSD
support in OpenZFS was finally completed in December
2019. A CFT for downstreaming OpenZFS support in
to FreeBSD was first issued on July 8th. All issues
that were reported have been addressed or, for
a couple of less critical matters there are
pull requests in progress with OpenZFS. iXsystems
has tested and dogfooded extensively internally.
The TrueNAS 12 release is based on OpenZFS with
some additional features that have not yet made
it upstream.
Improvements include:
project quotas, encrypted datasets,
allocation classes, vectorized raidz,
vectorized checksums, various command line
improvements, zstd compression.
Thanks to those who have helped along the way:
Ryan Moeller, Allan Jude, Zack Welch, and many
others.
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D25872
2020-08-25 02:21:27 +00:00
|
|
|
_DP_tpool= spl
|
|
|
|
_DP_uutil= avl spl
|
2020-08-27 13:05:41 +00:00
|
|
|
_DP_zfs= md pthread umem util uutil m avl bsdxml crypto geom nvpair \
|
Merge OpenZFS support in to HEAD.
The primary benefit is maintaining a completely shared
code base with the community allowing FreeBSD to receive
new features sooner and with less effort.
I would advise against doing 'zpool upgrade'
or creating indispensable pools using new
features until this change has had a month+
to soak.
Work on merging FreeBSD support in to what was
at the time "ZFS on Linux" began in August 2018.
I first publicly proposed transitioning FreeBSD
to (new) OpenZFS on December 18th, 2018. FreeBSD
support in OpenZFS was finally completed in December
2019. A CFT for downstreaming OpenZFS support in
to FreeBSD was first issued on July 8th. All issues
that were reported have been addressed or, for
a couple of less critical matters there are
pull requests in progress with OpenZFS. iXsystems
has tested and dogfooded extensively internally.
The TrueNAS 12 release is based on OpenZFS with
some additional features that have not yet made
it upstream.
Improvements include:
project quotas, encrypted datasets,
allocation classes, vectorized raidz,
vectorized checksums, various command line
improvements, zstd compression.
Thanks to those who have helped along the way:
Ryan Moeller, Allan Jude, Zack Welch, and many
others.
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D25872
2020-08-25 02:21:27 +00:00
|
|
|
z zfs_core zutil
|
loader: zfs should support bootonce an nextboot
bootonce feature is temporary, one time boot, activated by
"bectl activate -t BE", "bectl activate -T BE" will reset the bootonce flag.
By default, the bootonce setting is reset on attempt to boot and the next
boot will use previously active BE.
By setting zfs_bootonce_activate="YES" in rc.conf, the bootonce BE will
be set permanently active.
bootonce dataset name is recorded in boot pool labels, bootenv area.
in case of nextboot, the nextboot_enable boolean variable is recorded in
freebsd:nvstore nvlist, also stored in boot pool label bootenv area.
On boot, the loader will process /boot/nextboot.conf if nextboot_enable
is "YES", and will set nextboot_enable to "NO", preventing /boot/nextboot.conf
processing on next boot.
bootonce and nextboot features are usable in both UEFI and BIOS boot.
To use bootonce/nextboot features, the boot loader needs to be updated on disk;
if loader.efi is stored on ESP, then ESP needs to be updated and
for BIOS boot, stage2 (zfsboot or gptzfsboot) needs to be updated
(gpart or other tools).
At this time, only lua loader is updated.
Sponsored by: Netflix, Klara Inc.
Differential Revision: https://reviews.freebsd.org/D25512
2020-09-21 09:01:10 +00:00
|
|
|
_DP_zfsbootenv= zfs nvpair
|
2015-12-04 03:17:21 +00:00
|
|
|
_DP_zfs_core= nvpair
|
Merge OpenZFS support in to HEAD.
The primary benefit is maintaining a completely shared
code base with the community allowing FreeBSD to receive
new features sooner and with less effort.
I would advise against doing 'zpool upgrade'
or creating indispensable pools using new
features until this change has had a month+
to soak.
Work on merging FreeBSD support in to what was
at the time "ZFS on Linux" began in August 2018.
I first publicly proposed transitioning FreeBSD
to (new) OpenZFS on December 18th, 2018. FreeBSD
support in OpenZFS was finally completed in December
2019. A CFT for downstreaming OpenZFS support in
to FreeBSD was first issued on July 8th. All issues
that were reported have been addressed or, for
a couple of less critical matters there are
pull requests in progress with OpenZFS. iXsystems
has tested and dogfooded extensively internally.
The TrueNAS 12 release is based on OpenZFS with
some additional features that have not yet made
it upstream.
Improvements include:
project quotas, encrypted datasets,
allocation classes, vectorized raidz,
vectorized checksums, various command line
improvements, zstd compression.
Thanks to those who have helped along the way:
Ryan Moeller, Allan Jude, Zack Welch, and many
others.
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D25872
2020-08-25 02:21:27 +00:00
|
|
|
_DP_zpool= md pthread z icp spl nvpair avl umem
|
|
|
|
_DP_zutil= avl tpool
|
loader: zfs should support bootonce an nextboot
bootonce feature is temporary, one time boot, activated by
"bectl activate -t BE", "bectl activate -T BE" will reset the bootonce flag.
By default, the bootonce setting is reset on attempt to boot and the next
boot will use previously active BE.
By setting zfs_bootonce_activate="YES" in rc.conf, the bootonce BE will
be set permanently active.
bootonce dataset name is recorded in boot pool labels, bootenv area.
in case of nextboot, the nextboot_enable boolean variable is recorded in
freebsd:nvstore nvlist, also stored in boot pool label bootenv area.
On boot, the loader will process /boot/nextboot.conf if nextboot_enable
is "YES", and will set nextboot_enable to "NO", preventing /boot/nextboot.conf
processing on next boot.
bootonce and nextboot features are usable in both UEFI and BIOS boot.
To use bootonce/nextboot features, the boot loader needs to be updated on disk;
if loader.efi is stored on ESP, then ESP needs to be updated and
for BIOS boot, stage2 (zfsboot or gptzfsboot) needs to be updated
(gpart or other tools).
At this time, only lua loader is updated.
Sponsored by: Netflix, Klara Inc.
Differential Revision: https://reviews.freebsd.org/D25512
2020-09-21 09:01:10 +00:00
|
|
|
_DP_be= zfs spl nvpair zfsbootenv
|
2020-08-28 20:03:54 +00:00
|
|
|
_DP_netmap=
|
2020-09-02 22:10:08 +00:00
|
|
|
_DP_ifconfig= m
|
2021-03-26 10:38:58 +00:00
|
|
|
_DP_pfctl= nv
|
2017-11-13 12:36:36 +00:00
|
|
|
|
|
|
|
# OFED support
|
2016-03-04 22:37:09 +00:00
|
|
|
.if ${MK_OFED} != "no"
|
|
|
|
_DP_cxgb4= ibverbs pthread
|
|
|
|
_DP_ibcm= ibverbs
|
2017-11-13 12:36:36 +00:00
|
|
|
_DP_ibmad= ibumad
|
|
|
|
_DP_ibnetdisc= osmcomp ibmad ibumad
|
|
|
|
_DP_ibumad=
|
|
|
|
_DP_ibverbs=
|
2016-03-04 22:37:09 +00:00
|
|
|
_DP_mlx4= ibverbs pthread
|
2017-11-13 12:36:36 +00:00
|
|
|
_DP_mlx5= ibverbs pthread
|
2016-03-04 22:37:09 +00:00
|
|
|
_DP_rdmacm= ibverbs
|
2017-11-13 12:36:36 +00:00
|
|
|
_DP_osmcomp= pthread
|
|
|
|
_DP_opensm= pthread
|
|
|
|
_DP_osmvendor= ibumad pthread
|
2016-03-04 22:37:09 +00:00
|
|
|
.endif
|
2014-11-24 21:31:08 +00:00
|
|
|
|
2015-12-03 07:42:00 +00:00
|
|
|
# Define special cases
|
2014-11-24 21:31:08 +00:00
|
|
|
LDADD_supcplusplus= -lsupc++
|
2017-06-19 20:47:24 +00:00
|
|
|
LIBATF_C= ${LIBDESTDIR}${LIBDIR_BASE}/libprivateatf-c.a
|
|
|
|
LIBATF_CXX= ${LIBDESTDIR}${LIBDIR_BASE}/libprivateatf-c++.a
|
2015-05-04 16:28:54 +00:00
|
|
|
LDADD_atf_c= -lprivateatf-c
|
|
|
|
LDADD_atf_cxx= -lprivateatf-c++
|
|
|
|
|
2019-02-13 04:58:15 +00:00
|
|
|
LIBGMOCK= ${LIBDESTDIR}${LIBDIR_BASE}/libprivategmock.a
|
2019-02-20 00:10:56 +00:00
|
|
|
LIBGMOCK_MAIN= ${LIBDESTDIR}${LIBDIR_BASE}/libprivategmock_main.a
|
2019-02-13 04:58:15 +00:00
|
|
|
LIBGTEST= ${LIBDESTDIR}${LIBDIR_BASE}/libprivategtest.a
|
2019-02-20 00:10:56 +00:00
|
|
|
LIBGTEST_MAIN= ${LIBDESTDIR}${LIBDIR_BASE}/libprivategtest_main.a
|
2019-02-13 04:58:15 +00:00
|
|
|
LDADD_gmock= -lprivategmock
|
|
|
|
LDADD_gtest= -lprivategtest
|
|
|
|
LDADD_gmock_main= -lprivategmock_main
|
|
|
|
LDADD_gtest_main= -lprivategtest_main
|
|
|
|
|
2015-05-04 16:28:54 +00:00
|
|
|
.for _l in ${_PRIVATELIBS}
|
2017-06-19 20:47:24 +00:00
|
|
|
LIB${_l:tu}?= ${LIBDESTDIR}${LIBDIR_BASE}/libprivate${_l}.a
|
2015-05-04 16:28:54 +00:00
|
|
|
.endfor
|
2014-11-24 21:31:08 +00:00
|
|
|
|
2019-02-15 22:22:38 +00:00
|
|
|
.if ${MK_PIE} != "no"
|
|
|
|
PIE_SUFFIX= _pie
|
|
|
|
.endif
|
|
|
|
|
2014-11-24 21:31:08 +00:00
|
|
|
.for _l in ${_LIBRARIES}
|
2017-12-07 16:37:19 +00:00
|
|
|
.if ${_INTERNALLIBS:M${_l}} || !defined(SYSROOT)
|
2014-11-24 21:39:28 +00:00
|
|
|
LDADD_${_l}_L+= -L${LIB${_l:tu}DIR}
|
2014-11-24 21:31:08 +00:00
|
|
|
.endif
|
|
|
|
DPADD_${_l}?= ${LIB${_l:tu}}
|
2015-05-04 16:28:54 +00:00
|
|
|
.if ${_PRIVATELIBS:M${_l}}
|
|
|
|
LDADD_${_l}?= -lprivate${_l}
|
2019-02-15 22:22:38 +00:00
|
|
|
.elif ${_INTERNALLIBS:M${_l}}
|
|
|
|
LDADD_${_l}?= ${LDADD_${_l}_L} -l${_l:S/${PIE_SUFFIX}//}${PIE_SUFFIX}
|
2015-05-04 16:28:54 +00:00
|
|
|
.else
|
2014-11-24 21:39:28 +00:00
|
|
|
LDADD_${_l}?= ${LDADD_${_l}_L} -l${_l}
|
2015-05-04 16:28:54 +00:00
|
|
|
.endif
|
2015-12-04 03:17:17 +00:00
|
|
|
# Add in all dependencies for static linkage.
|
|
|
|
.if defined(_DP_${_l}) && (${_INTERNALLIBS:M${_l}} || \
|
2019-02-15 22:48:50 +00:00
|
|
|
(defined(NO_SHARED) && ${NO_SHARED:tl} != "no"))
|
2014-11-24 21:31:08 +00:00
|
|
|
.for _d in ${_DP_${_l}}
|
|
|
|
DPADD_${_l}+= ${DPADD_${_d}}
|
|
|
|
LDADD_${_l}+= ${LDADD_${_d}}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
2015-12-02 01:24:31 +00:00
|
|
|
# These are special cases where the library is broken and anything that uses
|
2015-12-04 03:17:17 +00:00
|
|
|
# it needs to add more dependencies. Broken usually means that it has a
|
|
|
|
# cyclic dependency and cannot link its own dependencies. This is bad, please
|
|
|
|
# fix the library instead.
|
|
|
|
# Unless the library itself is broken then the proper place to define
|
|
|
|
# dependencies is _DP_* above.
|
2015-12-02 01:24:31 +00:00
|
|
|
|
|
|
|
# libatf-c++ exposes libatf-c abi hence we need to explicit link to atf_c for
|
|
|
|
# atf_cxx
|
2014-11-25 00:28:27 +00:00
|
|
|
DPADD_atf_cxx+= ${DPADD_atf_c}
|
|
|
|
LDADD_atf_cxx+= ${LDADD_atf_c}
|
|
|
|
|
2019-02-13 04:58:15 +00:00
|
|
|
DPADD_gmock+= ${DPADD_gtest}
|
|
|
|
LDADD_gmock+= ${LDADD_gtest}
|
|
|
|
|
|
|
|
DPADD_gmock_main+= ${DPADD_gmock}
|
|
|
|
LDADD_gmock_main+= ${LDADD_gmock}
|
|
|
|
|
|
|
|
DPADD_gtest_main+= ${DPADD_gtest}
|
|
|
|
LDADD_gtest_main+= ${LDADD_gtest}
|
|
|
|
|
2015-12-04 03:17:59 +00:00
|
|
|
# Detect LDADD/DPADD that should be LIBADD, before modifying LDADD here.
|
2015-12-15 00:16:34 +00:00
|
|
|
_BADLDADD=
|
2015-12-04 03:17:59 +00:00
|
|
|
.for _l in ${LDADD:M-l*:N-l*/*:C,^-l,,}
|
2015-12-15 00:16:34 +00:00
|
|
|
.if ${_LIBRARIES:M${_l}} && !${_PRIVATELIBS:M${_l}}
|
2015-12-04 03:17:59 +00:00
|
|
|
_BADLDADD+= ${_l}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
.if !empty(_BADLDADD)
|
|
|
|
.error ${.CURDIR}: These libraries should be LIBADD+=foo rather than DPADD/LDADD+=-lfoo: ${_BADLDADD}
|
|
|
|
.endif
|
|
|
|
|
2014-11-24 21:31:08 +00:00
|
|
|
.for _l in ${LIBADD}
|
2015-12-04 03:17:24 +00:00
|
|
|
DPADD+= ${DPADD_${_l}}
|
2014-11-24 21:31:08 +00:00
|
|
|
LDADD+= ${LDADD_${_l}}
|
|
|
|
.endfor
|
2014-08-06 22:17:26 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
_LIB_OBJTOP?= ${OBJTOP}
|
2015-12-02 01:24:31 +00:00
|
|
|
# INTERNALLIB definitions.
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBELFTCDIR= ${_LIB_OBJTOP}/lib/libelftc
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBELFTC?= ${LIBELFTCDIR}/libelftc${PIE_SUFFIX}.a
|
2014-12-01 17:49:42 +00:00
|
|
|
|
2020-03-23 19:01:23 +00:00
|
|
|
LIBKYUA_CLIDIR= ${_LIB_OBJTOP}/lib/kyua/cli
|
|
|
|
LIBKYUA_CLI?= ${LIBKYUA_CLIDIR}/libkyua_cli${PIE_SUFFIX}.a
|
|
|
|
|
|
|
|
LIBKYUA_DRIVERSDIR= ${_LIB_OBJTOP}/lib/kyua/drivers
|
|
|
|
LIBKYUA_DRIVERS?= ${LIBKYUA_DRIVERSDIR}/libkyua_drivers${PIE_SUFFIX}.a
|
|
|
|
|
|
|
|
LIBKYUA_ENGINEDIR= ${_LIB_OBJTOP}/lib/kyua/engine
|
|
|
|
LIBKYUA_ENGINE?= ${LIBKYUA_ENGINEDIR}/libkyua_engine${PIE_SUFFIX}.a
|
|
|
|
|
|
|
|
LIBKYUA_MODELDIR= ${_LIB_OBJTOP}/lib/kyua/model
|
|
|
|
LIBKYUA_MODEL?= ${LIBKYUA_MODELDIR}/libkyua_model${PIE_SUFFIX}.a
|
|
|
|
|
|
|
|
LIBKYUA_STOREDIR= ${_LIB_OBJTOP}/lib/kyua/store
|
|
|
|
LIBKYUA_STORE?= ${LIBKYUA_STOREDIR}/libkyua_store${PIE_SUFFIX}.a
|
|
|
|
|
|
|
|
LIBKYUA_UTILSDIR= ${_LIB_OBJTOP}/lib/kyua/utils
|
|
|
|
LIBKYUA_UTILS?= ${LIBKYUA_UTILSDIR}/libkyua_utils${PIE_SUFFIX}.a
|
|
|
|
|
2020-03-17 17:28:12 +00:00
|
|
|
LIBLUADIR= ${_LIB_OBJTOP}/lib/liblua
|
|
|
|
LIBLUA?= ${LIBLUADIR}/liblua${PIE_SUFFIX}.a
|
|
|
|
|
2020-03-23 18:26:23 +00:00
|
|
|
LIBLUTOKDIR= ${_LIB_OBJTOP}/lib/liblutok
|
|
|
|
LIBLUTOK?= ${LIBLUTOKDIR}/liblutok${PIE_SUFFIX}.a
|
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBPEDIR= ${_LIB_OBJTOP}/lib/libpe
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBPE?= ${LIBPEDIR}/libpe${PIE_SUFFIX}.a
|
2016-02-12 21:12:47 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBOPENBSDDIR= ${_LIB_OBJTOP}/lib/libopenbsd
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBOPENBSD?= ${LIBOPENBSDDIR}/libopenbsd${PIE_SUFFIX}.a
|
2014-11-22 21:03:05 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBSMDIR= ${_LIB_OBJTOP}/lib/libsm
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBSM?= ${LIBSMDIR}/libsm${PIE_SUFFIX}.a
|
2014-11-24 22:15:30 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBSMDBDIR= ${_LIB_OBJTOP}/lib/libsmdb
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBSMDB?= ${LIBSMDBDIR}/libsmdb${PIE_SUFFIX}.a
|
2014-11-25 14:28:15 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBSMUTILDIR= ${_LIB_OBJTOP}/lib/libsmutil
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBSMUTIL?= ${LIBSMUTILDIR}/libsmutil${PIE_SUFFIX}.a
|
2014-11-25 14:28:15 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBNETBSDDIR?= ${_LIB_OBJTOP}/lib/libnetbsd
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBNETBSD?= ${LIBNETBSDDIR}/libnetbsd${PIE_SUFFIX}.a
|
2014-11-25 09:54:05 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBVERSDIR?= ${_LIB_OBJTOP}/kerberos5/lib/libvers
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBVERS?= ${LIBVERSDIR}/libvers${PIE_SUFFIX}.a
|
2014-11-25 09:54:05 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBSLDIR= ${_LIB_OBJTOP}/kerberos5/lib/libsl
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBSL?= ${LIBSLDIR}/libsl${PIE_SUFFIX}.a
|
2014-11-25 11:22:28 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBIFCONFIGDIR= ${_LIB_OBJTOP}/lib/libifconfig
|
2019-02-25 18:22:20 +00:00
|
|
|
LIBIFCONFIG?= ${LIBIFCONFIGDIR}/libifconfig${PIE_SUFFIX}.a
|
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBIPFDIR= ${_LIB_OBJTOP}/sbin/ipf/libipf
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBIPF?= ${LIBIPFDIR}/libipf${PIE_SUFFIX}.a
|
2014-11-25 14:28:15 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBTELNETDIR= ${_LIB_OBJTOP}/lib/libtelnet
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBTELNET?= ${LIBTELNETDIR}/libtelnet${PIE_SUFFIX}.a
|
2014-11-25 16:51:06 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBCRONDIR= ${_LIB_OBJTOP}/usr.sbin/cron/lib
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBCRON?= ${LIBCRONDIR}/libcron${PIE_SUFFIX}.a
|
2014-11-25 16:51:06 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBNTPDIR= ${_LIB_OBJTOP}/usr.sbin/ntp/libntp
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBNTP?= ${LIBNTPDIR}/libntp${PIE_SUFFIX}.a
|
2014-11-25 16:51:06 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBNTPEVENTDIR= ${_LIB_OBJTOP}/usr.sbin/ntp/libntpevent
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBNTPEVENT?= ${LIBNTPEVENTDIR}/libntpevent${PIE_SUFFIX}.a
|
2015-03-30 13:30:15 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBOPTSDIR= ${_LIB_OBJTOP}/usr.sbin/ntp/libopts
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBOPTS?= ${LIBOPTSDIR}/libopts${PIE_SUFFIX}.a
|
2014-11-25 16:51:06 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBPARSEDIR= ${_LIB_OBJTOP}/usr.sbin/ntp/libparse
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBPARSE?= ${LIBPARSEDIR}/libparse${PIE_SUFFIX}.a
|
2014-11-25 16:51:06 +00:00
|
|
|
|
2021-03-26 10:38:58 +00:00
|
|
|
LIBPFCTL= ${_LIB_OBJTOP}/lib/libpfctl
|
|
|
|
LIBPFCTL?= ${LIBPFCTLDIR}/libpfctl${PIE_SUFFIX}.a
|
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBLPRDIR= ${_LIB_OBJTOP}/usr.sbin/lpr/common_source
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBLPR?= ${LIBLPRDIR}/liblpr${PIE_SUFFIX}.a
|
2014-11-25 16:51:06 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBFIFOLOGDIR= ${_LIB_OBJTOP}/usr.sbin/fifolog/lib
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBFIFOLOG?= ${LIBFIFOLOGDIR}/libfifolog${PIE_SUFFIX}.a
|
2014-11-25 16:51:06 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBBSNMPTOOLSDIR= ${_LIB_OBJTOP}/usr.sbin/bsnmpd/tools/libbsnmptools
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBBSNMPTOOLS?= ${LIBBSNMPTOOLSDIR}/libbsnmptools${PIE_SUFFIX}.a
|
2014-11-25 16:51:06 +00:00
|
|
|
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBBE?= ${LIBBEDIR}/libbe${PIE_SUFFIX}.a
|
2018-07-24 13:17:40 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBPMCSTATDIR= ${_LIB_OBJTOP}/lib/libpmcstat
|
2019-02-15 22:22:38 +00:00
|
|
|
LIBPMCSTAT?= ${LIBPMCSTATDIR}/libpmcstat${PIE_SUFFIX}.a
|
2017-10-24 16:28:00 +00:00
|
|
|
|
2019-10-15 21:15:03 +00:00
|
|
|
LIBC_NOSSP_PICDIR= ${_LIB_OBJTOP}/lib/libc
|
2018-05-09 10:28:24 +00:00
|
|
|
LIBC_NOSSP_PIC?= ${LIBC_NOSSP_PICDIR}/libc_nossp_pic.a
|
|
|
|
|
2015-11-25 19:49:55 +00:00
|
|
|
# Define a directory for each library. This is useful for adding -L in when
|
|
|
|
# not using a --sysroot or for meta mode bootstrapping when there is no
|
|
|
|
# Makefile.depend. These are sorted by directory.
|
2015-11-26 01:47:56 +00:00
|
|
|
LIBAVLDIR= ${OBJTOP}/cddl/lib/libavl
|
|
|
|
LIBCTFDIR= ${OBJTOP}/cddl/lib/libctf
|
|
|
|
LIBDTRACEDIR= ${OBJTOP}/cddl/lib/libdtrace
|
Merge OpenZFS support in to HEAD.
The primary benefit is maintaining a completely shared
code base with the community allowing FreeBSD to receive
new features sooner and with less effort.
I would advise against doing 'zpool upgrade'
or creating indispensable pools using new
features until this change has had a month+
to soak.
Work on merging FreeBSD support in to what was
at the time "ZFS on Linux" began in August 2018.
I first publicly proposed transitioning FreeBSD
to (new) OpenZFS on December 18th, 2018. FreeBSD
support in OpenZFS was finally completed in December
2019. A CFT for downstreaming OpenZFS support in
to FreeBSD was first issued on July 8th. All issues
that were reported have been addressed or, for
a couple of less critical matters there are
pull requests in progress with OpenZFS. iXsystems
has tested and dogfooded extensively internally.
The TrueNAS 12 release is based on OpenZFS with
some additional features that have not yet made
it upstream.
Improvements include:
project quotas, encrypted datasets,
allocation classes, vectorized raidz,
vectorized checksums, various command line
improvements, zstd compression.
Thanks to those who have helped along the way:
Ryan Moeller, Allan Jude, Zack Welch, and many
others.
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D25872
2020-08-25 02:21:27 +00:00
|
|
|
LIBICPDIR= ${OBJTOP}/cddl/lib/libicp
|
2015-11-26 01:47:56 +00:00
|
|
|
LIBNVPAIRDIR= ${OBJTOP}/cddl/lib/libnvpair
|
|
|
|
LIBUMEMDIR= ${OBJTOP}/cddl/lib/libumem
|
|
|
|
LIBUUTILDIR= ${OBJTOP}/cddl/lib/libuutil
|
|
|
|
LIBZFSDIR= ${OBJTOP}/cddl/lib/libzfs
|
|
|
|
LIBZFS_COREDIR= ${OBJTOP}/cddl/lib/libzfs_core
|
loader: zfs should support bootonce an nextboot
bootonce feature is temporary, one time boot, activated by
"bectl activate -t BE", "bectl activate -T BE" will reset the bootonce flag.
By default, the bootonce setting is reset on attempt to boot and the next
boot will use previously active BE.
By setting zfs_bootonce_activate="YES" in rc.conf, the bootonce BE will
be set permanently active.
bootonce dataset name is recorded in boot pool labels, bootenv area.
in case of nextboot, the nextboot_enable boolean variable is recorded in
freebsd:nvstore nvlist, also stored in boot pool label bootenv area.
On boot, the loader will process /boot/nextboot.conf if nextboot_enable
is "YES", and will set nextboot_enable to "NO", preventing /boot/nextboot.conf
processing on next boot.
bootonce and nextboot features are usable in both UEFI and BIOS boot.
To use bootonce/nextboot features, the boot loader needs to be updated on disk;
if loader.efi is stored on ESP, then ESP needs to be updated and
for BIOS boot, stage2 (zfsboot or gptzfsboot) needs to be updated
(gpart or other tools).
At this time, only lua loader is updated.
Sponsored by: Netflix, Klara Inc.
Differential Revision: https://reviews.freebsd.org/D25512
2020-09-21 09:01:10 +00:00
|
|
|
LIBZFSBOOTENVDIR= ${OBJTOP}/cddl/lib/libzfsbootenv
|
2015-11-26 01:47:56 +00:00
|
|
|
LIBZPOOLDIR= ${OBJTOP}/cddl/lib/libzpool
|
Merge OpenZFS support in to HEAD.
The primary benefit is maintaining a completely shared
code base with the community allowing FreeBSD to receive
new features sooner and with less effort.
I would advise against doing 'zpool upgrade'
or creating indispensable pools using new
features until this change has had a month+
to soak.
Work on merging FreeBSD support in to what was
at the time "ZFS on Linux" began in August 2018.
I first publicly proposed transitioning FreeBSD
to (new) OpenZFS on December 18th, 2018. FreeBSD
support in OpenZFS was finally completed in December
2019. A CFT for downstreaming OpenZFS support in
to FreeBSD was first issued on July 8th. All issues
that were reported have been addressed or, for
a couple of less critical matters there are
pull requests in progress with OpenZFS. iXsystems
has tested and dogfooded extensively internally.
The TrueNAS 12 release is based on OpenZFS with
some additional features that have not yet made
it upstream.
Improvements include:
project quotas, encrypted datasets,
allocation classes, vectorized raidz,
vectorized checksums, various command line
improvements, zstd compression.
Thanks to those who have helped along the way:
Ryan Moeller, Allan Jude, Zack Welch, and many
others.
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D25872
2020-08-25 02:21:27 +00:00
|
|
|
LIBZUTILDIR= ${OBJTOP}/cddl/lib/libzutil
|
|
|
|
LIBTPOOLDIR= ${OBJTOP}/cddl/lib/libtpool
|
2017-11-13 12:36:36 +00:00
|
|
|
|
|
|
|
# OFED support
|
2018-06-16 15:05:05 +00:00
|
|
|
LIBCXGB4DIR= ${OBJTOP}/lib/ofed/libcxgb4
|
|
|
|
LIBIBCMDIR= ${OBJTOP}/lib/ofed/libibcm
|
|
|
|
LIBIBMADDIR= ${OBJTOP}/lib/ofed/libibmad
|
|
|
|
LIBIBNETDISCDIR=${OBJTOP}/lib/ofed/libibnetdisc
|
|
|
|
LIBIBUMADDIR= ${OBJTOP}/lib/ofed/libibumad
|
|
|
|
LIBIBVERBSDIR= ${OBJTOP}/lib/ofed/libibverbs
|
|
|
|
LIBMLX4DIR= ${OBJTOP}/lib/ofed/libmlx4
|
|
|
|
LIBMLX5DIR= ${OBJTOP}/lib/ofed/libmlx5
|
|
|
|
LIBRDMACMDIR= ${OBJTOP}/lib/ofed/librdmacm
|
|
|
|
LIBOSMCOMPDIR= ${OBJTOP}/lib/ofed/complib
|
|
|
|
LIBOPENSMDIR= ${OBJTOP}/lib/ofed/libopensm
|
|
|
|
LIBOSMVENDORDIR=${OBJTOP}/lib/ofed/libvendor
|
2017-11-13 12:36:36 +00:00
|
|
|
|
2015-11-26 01:47:56 +00:00
|
|
|
LIBDIALOGDIR= ${OBJTOP}/gnu/lib/libdialog
|
2020-01-04 20:19:25 +00:00
|
|
|
LIBSSPDIR= ${OBJTOP}/lib/libssp
|
|
|
|
LIBSSP_NONSHAREDDIR= ${OBJTOP}/lib/libssp_nonshared
|
2015-11-26 01:47:56 +00:00
|
|
|
LIBASN1DIR= ${OBJTOP}/kerberos5/lib/libasn1
|
|
|
|
LIBGSSAPI_KRB5DIR= ${OBJTOP}/kerberos5/lib/libgssapi_krb5
|
|
|
|
LIBGSSAPI_NTLMDIR= ${OBJTOP}/kerberos5/lib/libgssapi_ntlm
|
|
|
|
LIBGSSAPI_SPNEGODIR= ${OBJTOP}/kerberos5/lib/libgssapi_spnego
|
|
|
|
LIBHDBDIR= ${OBJTOP}/kerberos5/lib/libhdb
|
|
|
|
LIBHEIMBASEDIR= ${OBJTOP}/kerberos5/lib/libheimbase
|
|
|
|
LIBHEIMIPCCDIR= ${OBJTOP}/kerberos5/lib/libheimipcc
|
|
|
|
LIBHEIMIPCSDIR= ${OBJTOP}/kerberos5/lib/libheimipcs
|
|
|
|
LIBHEIMNTLMDIR= ${OBJTOP}/kerberos5/lib/libheimntlm
|
|
|
|
LIBHX509DIR= ${OBJTOP}/kerberos5/lib/libhx509
|
|
|
|
LIBKADM5CLNTDIR= ${OBJTOP}/kerberos5/lib/libkadm5clnt
|
|
|
|
LIBKADM5SRVDIR= ${OBJTOP}/kerberos5/lib/libkadm5srv
|
|
|
|
LIBKAFS5DIR= ${OBJTOP}/kerberos5/lib/libkafs5
|
|
|
|
LIBKDCDIR= ${OBJTOP}/kerberos5/lib/libkdc
|
|
|
|
LIBKRB5DIR= ${OBJTOP}/kerberos5/lib/libkrb5
|
|
|
|
LIBROKENDIR= ${OBJTOP}/kerberos5/lib/libroken
|
|
|
|
LIBWINDDIR= ${OBJTOP}/kerberos5/lib/libwind
|
2016-03-03 06:37:17 +00:00
|
|
|
LIBATF_CDIR= ${OBJTOP}/lib/atf/libatf-c
|
|
|
|
LIBATF_CXXDIR= ${OBJTOP}/lib/atf/libatf-c++
|
2019-02-13 04:58:15 +00:00
|
|
|
LIBGMOCKDIR= ${OBJTOP}/lib/googletest/gmock
|
|
|
|
LIBGMOCK_MAINDIR= ${OBJTOP}/lib/googletest/gmock_main
|
|
|
|
LIBGTESTDIR= ${OBJTOP}/lib/googletest/gtest
|
|
|
|
LIBGTEST_MAINDIR= ${OBJTOP}/lib/googletest/gtest_main
|
2015-11-26 01:47:56 +00:00
|
|
|
LIBALIASDIR= ${OBJTOP}/lib/libalias/libalias
|
2016-06-02 19:06:04 +00:00
|
|
|
LIBBLACKLISTDIR= ${OBJTOP}/lib/libblacklist
|
2015-11-26 01:47:56 +00:00
|
|
|
LIBBLOCKSRUNTIMEDIR= ${OBJTOP}/lib/libblocksruntime
|
|
|
|
LIBBSNMPDIR= ${OBJTOP}/lib/libbsnmp/libbsnmp
|
2016-06-01 19:54:17 +00:00
|
|
|
LIBCASPERDIR= ${OBJTOP}/lib/libcasper/libcasper
|
2016-03-03 06:22:51 +00:00
|
|
|
LIBCAP_DNSDIR= ${OBJTOP}/lib/libcasper/services/cap_dns
|
|
|
|
LIBCAP_GRPDIR= ${OBJTOP}/lib/libcasper/services/cap_grp
|
2020-08-16 18:12:21 +00:00
|
|
|
LIBCAP_NETDIR= ${OBJTOP}/lib/libcasper/services/cap_net
|
2016-03-03 06:22:51 +00:00
|
|
|
LIBCAP_PWDDIR= ${OBJTOP}/lib/libcasper/services/cap_pwd
|
|
|
|
LIBCAP_SYSCTLDIR= ${OBJTOP}/lib/libcasper/services/cap_sysctl
|
2017-11-12 08:34:25 +00:00
|
|
|
LIBCAP_SYSLOGDIR= ${OBJTOP}/lib/libcasper/services/cap_syslog
|
2015-11-26 01:47:56 +00:00
|
|
|
LIBBSDXMLDIR= ${OBJTOP}/lib/libexpat
|
|
|
|
LIBKVMDIR= ${OBJTOP}/lib/libkvm
|
|
|
|
LIBPTHREADDIR= ${OBJTOP}/lib/libthr
|
|
|
|
LIBMDIR= ${OBJTOP}/lib/msun
|
2021-01-04 16:29:40 +00:00
|
|
|
LIBFORMWDIR= ${OBJTOP}/lib/ncurses/form
|
|
|
|
LIBMENUWDIR= ${OBJTOP}/lib/ncurses/menu
|
|
|
|
LIBNCURSESWDIR= ${OBJTOP}/lib/ncurses/ncurses
|
|
|
|
LIBPANELWDIR= ${OBJTOP}/lib/ncurses/panel
|
2015-11-26 01:47:56 +00:00
|
|
|
LIBCRYPTODIR= ${OBJTOP}/secure/lib/libcrypto
|
Merge OpenZFS support in to HEAD.
The primary benefit is maintaining a completely shared
code base with the community allowing FreeBSD to receive
new features sooner and with less effort.
I would advise against doing 'zpool upgrade'
or creating indispensable pools using new
features until this change has had a month+
to soak.
Work on merging FreeBSD support in to what was
at the time "ZFS on Linux" began in August 2018.
I first publicly proposed transitioning FreeBSD
to (new) OpenZFS on December 18th, 2018. FreeBSD
support in OpenZFS was finally completed in December
2019. A CFT for downstreaming OpenZFS support in
to FreeBSD was first issued on July 8th. All issues
that were reported have been addressed or, for
a couple of less critical matters there are
pull requests in progress with OpenZFS. iXsystems
has tested and dogfooded extensively internally.
The TrueNAS 12 release is based on OpenZFS with
some additional features that have not yet made
it upstream.
Improvements include:
project quotas, encrypted datasets,
allocation classes, vectorized raidz,
vectorized checksums, various command line
improvements, zstd compression.
Thanks to those who have helped along the way:
Ryan Moeller, Allan Jude, Zack Welch, and many
others.
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D25872
2020-08-25 02:21:27 +00:00
|
|
|
LIBSPLDIR= ${OBJTOP}/cddl/lib/libspl
|
2015-11-26 01:47:56 +00:00
|
|
|
LIBSSHDIR= ${OBJTOP}/secure/lib/libssh
|
|
|
|
LIBSSLDIR= ${OBJTOP}/secure/lib/libssl
|
|
|
|
LIBTEKENDIR= ${OBJTOP}/sys/teken/libteken
|
|
|
|
LIBEGACYDIR= ${OBJTOP}/tools/build
|
|
|
|
LIBLNDIR= ${OBJTOP}/usr.bin/lex/lib
|
2015-11-25 19:49:55 +00:00
|
|
|
|
2015-12-10 00:07:05 +00:00
|
|
|
LIBTERMCAPWDIR= ${LIBNCURSESWDIR}
|
|
|
|
|
2015-11-25 19:49:55 +00:00
|
|
|
# Default other library directories to lib/libNAME.
|
|
|
|
.for lib in ${_LIBRARIES}
|
2015-11-26 01:47:56 +00:00
|
|
|
LIB${lib:tu}DIR?= ${OBJTOP}/lib/lib${lib}
|
2015-11-25 19:49:55 +00:00
|
|
|
.endfor
|
|
|
|
|
2015-12-04 03:17:24 +00:00
|
|
|
# Validate that listed LIBADD are valid.
|
|
|
|
.for _l in ${LIBADD}
|
|
|
|
.if empty(_LIBRARIES:M${_l})
|
|
|
|
_BADLIBADD+= ${_l}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
.if !empty(_BADLIBADD)
|
|
|
|
.error ${.CURDIR}: Invalid LIBADD used which may need to be added to ${_this:T}: ${_BADLIBADD}
|
|
|
|
.endif
|
|
|
|
|
2015-12-02 01:24:31 +00:00
|
|
|
# Sanity check that libraries are defined here properly when building them.
|
|
|
|
.if defined(LIB) && ${_LIBRARIES:M${LIB}} != ""
|
|
|
|
.if !empty(LIBADD) && \
|
|
|
|
(!defined(_DP_${LIB}) || ${LIBADD:O:u} != ${_DP_${LIB}:O:u})
|
|
|
|
.error ${.CURDIR}: Missing or incorrect _DP_${LIB} entry in ${_this:T}. Should match LIBADD for ${LIB} ('${LIBADD}' vs '${_DP_${LIB}}')
|
|
|
|
.endif
|
2015-12-15 00:40:04 +00:00
|
|
|
# Note that OBJTOP is not yet defined here but for the purpose of the check
|
|
|
|
# it is fine as it resolves to the SRC directory.
|
2015-12-02 01:24:31 +00:00
|
|
|
.if !defined(LIB${LIB:tu}DIR) || !exists(${SRCTOP}/${LIB${LIB:tu}DIR:S,^${OBJTOP}/,,})
|
|
|
|
.error ${.CURDIR}: Missing or incorrect value for LIB${LIB:tu}DIR in ${_this:T}: ${LIB${LIB:tu}DIR:S,^${OBJTOP}/,,}
|
|
|
|
.endif
|
|
|
|
.if ${_INTERNALLIBS:M${LIB}} != "" && !defined(LIB${LIB:tu})
|
|
|
|
.error ${.CURDIR}: Missing value for LIB${LIB:tu} in ${_this:T}. Likely should be: LIB${LIB:tu}?= $${LIB${LIB:tu}DIR}/lib${LIB}.a
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2015-11-25 19:44:51 +00:00
|
|
|
.endif # !target(__<src.libnames.mk>__)
|