Create in-tree LINT files

Now that config(8) has supported include for 19 years, transition to
including the NOTES files. include support didn't exist at the time,
nor did the envvar stuff recently added. Now that it does, eliminate
the building of LINT files by just including everything you need.

Note: This may cause conflicts with updating in some cases.
	find sys -name LINT\* -rm
is suggested across this commit to remove the generated LINT
files.

Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D26540
This commit is contained in:
Warner Losh 2020-10-09 01:48:14 +00:00
parent 19fe23fa2b
commit 7e46dafa58
18 changed files with 114 additions and 27 deletions

View File

@ -26,6 +26,19 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 13.x IS SLOW:
world, or to merely disable the most expensive debugging functionality world, or to merely disable the most expensive debugging functionality
at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)
20200923:
LINT files are no longer generated. We now include the relevant NOTES
files. Note: This may cause conflicts with updating in some cases.
find sys -name LINT\* -rm
is suggested across this commit to remove the generated LINT files.
If you have tried to update with generated files there, the svn
command you want to un-auger the tree is
cd sys/amd64/conf
svn revert -R .
and then do the above find from the top level. Substitute 'amd64'
above with where the error message indicates a conflict.
20200824: 20200824:
OpenZFS support has been integrated. Do not upgrade root pools until OpenZFS support has been integrated. Do not upgrade root pools until
the loader is updated to support zstd. Furthermore, we caution against the loader is updated to support zstd. Furthermore, we caution against

5
sys/amd64/conf/LINT Normal file
View File

@ -0,0 +1,5 @@
# $FreeBSD$
include "../../conf/NOTES"
include "../../x86/conf/NOTES"
include NOTES

View File

@ -0,0 +1,8 @@
# $FreeBSD$
include LINT
ident LINT-NOINET
makeoptions MKMODULESENV+="WITHOUT_INET_SUPPORT="
nooptions INET
nodevice gre
nodevice netmap

View File

@ -0,0 +1,6 @@
# $FreeBSD$
include LINT
ident LINT-NOINET6
makeoptions MKMODULESENV+="WITHOUT_INET6_SUPPORT="
nooptions INET6

21
sys/amd64/conf/LINT-NOIP Normal file
View File

@ -0,0 +1,21 @@
# $FreeBSD$
include LINT
ident LINT-NOIP
makeoptions MKMODULESENV+="WITHOUT_INET_SUPPORT="
makeoptions MKMODULESENV+="WITHOUT_INET6_SUPPORT="
nooptions INET
nooptions INET6
nodevice age
nodevice alc
nodevice ale
nodevice bxe
nodevice em
nodevice fxp
nodevice jme
nodevice msk
nodevice mxge
nodevice sge
nodevice sk
nodevice txp
nodevice netmap

View File

@ -1,6 +0,0 @@
# $FreeBSD$
TARGET=amd64
NOTES= ${.CURDIR}/../../x86/conf/NOTES
.include "${.CURDIR}/../../conf/makeLINT.mk"

4
sys/arm/conf/LINT Normal file
View File

@ -0,0 +1,4 @@
# $FreeBSD$
include "../../conf/NOTES"
include NOTES

View File

@ -1,5 +0,0 @@
# $FreeBSD$
TARGET=arm
.include "${.CURDIR}/../../conf/makeLINT.mk"

4
sys/arm64/conf/LINT Normal file
View File

@ -0,0 +1,4 @@
# $FreeBSD$
include "../../conf/NOTES"
include NOTES

View File

@ -1,5 +0,0 @@
# $FreeBSD$
TARGET=arm64
.include "${.CURDIR}/../../conf/makeLINT.mk"

5
sys/i386/conf/LINT Normal file
View File

@ -0,0 +1,5 @@
# $FreeBSD$
include "../../conf/NOTES"
include "../../x86/conf/NOTES"
include NOTES

View File

@ -0,0 +1,8 @@
# $FreeBSD$
include LINT
ident LINT-NOINET
makeoptions MKMODULESENV+="WITHOUT_INET_SUPPORT="
nooptions INET
nodevice gre
nodevice netmap

View File

@ -0,0 +1,6 @@
# $FreeBSD$
include LINT
ident LINT-NOINET6
makeoptions MKMODULESENV+="WITHOUT_INET6_SUPPORT="
nooptions INET6

20
sys/i386/conf/LINT-NOIP Normal file
View File

@ -0,0 +1,20 @@
# $FreeBSD$
include LINT
ident LINT-NOIP
makeoptions MKMODULESENV+="WITHOUT_INET_SUPPORT="
makeoptions MKMODULESENV+="WITHOUT_INET6_SUPPORT="
nooptions INET
nooptions INET6
nodevice age
nodevice alc
nodevice ale
nodevice bxe
nodevice em
nodevice fxp
nodevice jme
nodevice msk
nodevice mxge
nodevice sge
nodevice sk
nodevice txp
nodevice netmap

View File

@ -1,6 +0,0 @@
# $FreeBSD$
TARGET=i386
NOTES= ${.CURDIR}/../../x86/conf/NOTES
.include "${.CURDIR}/../../conf/makeLINT.mk"

9
sys/powerpc/conf/LINT Normal file
View File

@ -0,0 +1,9 @@
# $FreeBSD$
include "../../conf/NOTES"
include NOTES
machine powerpc powerpc
nodevice mlx5
nodevice mlx5en
nodevice mlx5ib
nooptions RATELIMIT

5
sys/powerpc/conf/LINT64 Normal file
View File

@ -0,0 +1,5 @@
# $FreeBSD$
include "../../conf/NOTES"
include NOTES
machine powerpc powerpc64

View File

@ -1,5 +0,0 @@
# $FreeBSD$
TARGET=powerpc
.include "${.CURDIR}/../../conf/makeLINT.mk"