]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cddl/*: add a WITH(OUT)_DTRACE option
authorBrooks Davis <brooks@FreeBSD.org>
Wed, 6 Jul 2022 13:03:48 +0000 (14:03 +0100)
committerBrooks Davis <brooks@FreeBSD.org>
Wed, 6 Jul 2022 13:03:48 +0000 (14:03 +0100)
commit3bf66365129a13933f77d1f4421d5136861cffb4
tree06c0728c42aa0fb1331bf118c0fb2a399e9fbe3c
parent513e1bbc739239c9479367b15e5f863a5f891d66
cddl/*: add a WITH(OUT)_DTRACE option

Add an option to enable/disable DTrace without disabling ZFS.  New
architectures such as CHERI may support ZFS before they support DTrace
and the old model of WITHOUT_CDDL disabling both wasn't helpful.

For compatiblity, the CDDL option remains and WITHOUT_CDDL implies
WITHOUT_DTRACE.  WITHOUT_DTRACE also implies WITHOUT_CTF.

As part of this change, largely convert cddl/*/Makefile to using the
more compact SUBDIR.${MK_<FOO>}+= form rather than using intermediate
variables.

Reviewed by: markj
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D35718
12 files changed:
cddl/lib/Makefile
cddl/sbin/Makefile
cddl/share/Makefile
cddl/usr.bin/Makefile
cddl/usr.libexec/Makefile
cddl/usr.sbin/Makefile
share/man/man5/src.conf.5
share/mk/src.opts.mk
sys/conf/kern.opts.mk
sys/modules/Makefile
tools/build/mk/OptionalObsoleteFiles.inc
tools/build/options/WITHOUT_DTRACE [new file with mode: 0644]