Commit 8c0c5bdf authored by Emmanuel Vadot's avatar Emmanuel Vadot
Browse files

Introduce MODULES_EXCLUDE

It's sometimes easier to exclude some modules rather than listing all
possibly needed ones with MODULES_OVERRIDE.
So for this add MODULES_EXCLUDE which do exactly as one would guess, excludes
some modules from the build/install.

For example if one wants to exclude all modules which are only present in the
GENERIC config on amd64 :
export MODULES_EXCLUDE=$(grep -E '^device' sys/amd64/conf/GENERIC | awk '{print $2}' | tr '\n' ' ')

MFC after:	2 weeks
Sponsored by:	Beckhoff Automation GmbH & Co. KG
Differential Revision:	https://reviews.freebsd.org/D33443
parent d106f982
......@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd June 14, 2021
.Dd January 13, 2021
.Dt MAKE.CONF 5
.Os
.Sh NAME
......@@ -272,6 +272,9 @@ It defaults to
.It Va MODULES_OVERRIDE
.Pq Vt str
Set to a list of modules to build instead of all of them.
.It Va MODULES_EXCLUDE
.Pq Vt str
Set to a list of modules to exclude from the build.
.It Va NO_KERNELCLEAN
.Pq Vt bool
Set this to skip running
......
# $FreeBSD$
.if defined(MODULES_EXCLUDE) && defined(KMOD) && ${MODULES_EXCLUDE:M${KMOD}}
all:
install:
cleandir:
.else
.include <bsd.sysdir.mk>
.include "${SYSDIR}/conf/kmod.mk"
.endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment