Make the warning for deprecated NO_ variables an error.

Support for NO_CTF, NO_DEBUG_FILES, NO_INSTALLLIB, NO_MAN, NO_PROFILE,
and NO_WARNS as deprecated in 2014 with a warning added for each one
found. Turn these into error in preperation for removal of compatability
support before FreeBSD 13.

Reviewed by:	imp
Relnotes:	yes
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D22448
This commit is contained in:
Brooks Davis 2019-11-20 18:36:58 +00:00
parent a1aaa66be8
commit 303d2dd8f1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354909
2 changed files with 9 additions and 1 deletions

View file

@ -31,6 +31,14 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 13.x IS SLOW:
removed in the future. As of FreeBSD 10.1 the autofs(5) is available
for automounting.
20191120:
Defining the long deprected NO_CTF, NO_DEBUG_FILES, NO_INSTALLLIB,
NO_MAN, NO_PROFILE, and NO_WARNS variables is now an error. Update
your Makefiles and scripts to define MK_<var>=no instead as required.
One exception to this is that program or library Makefiles should
define MAN to empty rather than setting MK_MAN=no.
20191107:
The nctgpio and wbwd drivers have been moved to the superio bus.
If you have one of these drivers in a kernel configuration, then

View file

@ -100,7 +100,7 @@ __DEFAULT_DEPENDENT_OPTIONS = \
PROFILE \
WARNS
.if defined(NO_${var})
.warning "NO_${var} is defined, but deprecated. Please use MK_${var}=no instead."
.error "NO_${var} is defined, but deprecated. Please use MK_${var}=no instead."
MK_${var}:=no
.endif
.endfor