mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-02 08:42:48 +00:00
6a4d8cfae1
r354290 removed arm.arm from universe, but arm.arm kernels were still found and built during the kernel stage. r354934 tagged armv5 kernel configs as NO_UNIVERSE, but LINT-V5 remained. Stop building it as well. Leave the clean rule in place for now so folks don't end up with a stale LINT-V5. Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D22560
77 lines
2.7 KiB
Makefile
77 lines
2.7 KiB
Makefile
# $FreeBSD$
|
|
|
|
# The LINT files need to end up in the kernel source directory.
|
|
.OBJDIR: ${.CURDIR}
|
|
|
|
all:
|
|
@echo "make LINT only"
|
|
|
|
clean:
|
|
rm -f LINT
|
|
.if ${TARGET} == "amd64" || ${TARGET} == "i386"
|
|
rm -f LINT-NOINET LINT-NOINET6 LINT-NOIP
|
|
.endif
|
|
.if ${TARGET} == "arm"
|
|
# LINT-V5 removed 2019-11-26. The clean rule is left here temporarily
|
|
# to avoid having stale copies left behind.
|
|
rm -f LINT-V5 LINT-V7
|
|
.endif
|
|
.if ${TARGET} == "powerpc"
|
|
rm -f LINT64
|
|
.endif
|
|
|
|
NOTES+= ${.CURDIR}/../../conf/NOTES ${.CURDIR}/NOTES
|
|
MAKELINT_SED= ${.CURDIR}/../../conf/makeLINT.sed
|
|
LINT: ${NOTES} ${MAKELINT_SED}
|
|
cat ${NOTES} | sed -E -n -f ${MAKELINT_SED} > ${.TARGET}
|
|
.if ${TARGET} == "amd64" || ${TARGET} == "i386"
|
|
echo "include ${.TARGET}" > ${.TARGET}-NOINET
|
|
echo "ident ${.TARGET}-NOINET" >> ${.TARGET}-NOINET
|
|
echo 'makeoptions MKMODULESENV+="WITHOUT_INET_SUPPORT="' >> ${.TARGET}-NOINET
|
|
echo "nooptions INET" >> ${.TARGET}-NOINET
|
|
echo "nodevice gre" >> ${.TARGET}-NOINET
|
|
echo "nodevice netmap" >> ${.TARGET}-NOINET
|
|
echo "include ${.TARGET}" > ${.TARGET}-NOINET6
|
|
echo "ident ${.TARGET}-NOINET6" >> ${.TARGET}-NOINET6
|
|
echo 'makeoptions MKMODULESENV+="WITHOUT_INET6_SUPPORT="' >> ${.TARGET}-NOINET6
|
|
echo "nooptions INET6" >> ${.TARGET}-NOINET6
|
|
echo "include ${.TARGET}" > ${.TARGET}-NOIP
|
|
echo "ident ${.TARGET}-NOIP" >> ${.TARGET}-NOIP
|
|
echo 'makeoptions MKMODULESENV+="WITHOUT_INET_SUPPORT="' >> ${.TARGET}-NOIP
|
|
echo 'makeoptions MKMODULESENV+="WITHOUT_INET6_SUPPORT="' >> ${.TARGET}-NOIP
|
|
echo "nooptions INET" >> ${.TARGET}-NOIP
|
|
echo "nooptions INET6" >> ${.TARGET}-NOIP
|
|
echo "nodevice age" >> ${.TARGET}-NOIP
|
|
echo "nodevice alc" >> ${.TARGET}-NOIP
|
|
echo "nodevice ale" >> ${.TARGET}-NOIP
|
|
echo "nodevice bxe" >> ${.TARGET}-NOIP
|
|
echo "nodevice em" >> ${.TARGET}-NOIP
|
|
echo "nodevice fxp" >> ${.TARGET}-NOIP
|
|
echo "nodevice jme" >> ${.TARGET}-NOIP
|
|
echo "nodevice msk" >> ${.TARGET}-NOIP
|
|
echo "nodevice mxge" >> ${.TARGET}-NOIP
|
|
echo "nodevice sge" >> ${.TARGET}-NOIP
|
|
echo "nodevice sk" >> ${.TARGET}-NOIP
|
|
echo "nodevice txp" >> ${.TARGET}-NOIP
|
|
echo "nodevice netmap" >> ${.TARGET}-NOIP
|
|
.endif
|
|
.if ${TARGET} == "arm"
|
|
cat ${NOTES} ${.CURDIR}/NOTES.armv7 | sed -E -n -f ${MAKELINT_SED} > \
|
|
${.TARGET}-V7
|
|
rm ${.TARGET}
|
|
.endif
|
|
.if ${TARGET} == "mips"
|
|
echo "machine ${TARGET} ${TARGET_ARCH}" >> ${.TARGET}
|
|
.endif
|
|
.if ${TARGET} == "powerpc"
|
|
# cat is available, not sure if cp is?
|
|
cat ${.TARGET} > ${.TARGET}64
|
|
echo "machine ${TARGET} powerpc" >> ${.TARGET}
|
|
echo "machine ${TARGET} powerpc64" >> ${.TARGET}64
|
|
# mlx5 needs 64-bit atomics, so exclude from 32-bit PPC
|
|
echo "nodevice mlx5" >> ${.TARGET}
|
|
echo "nodevice mlx5en" >> ${.TARGET}
|
|
echo "nodevice mlx5ib" >> ${.TARGET}
|
|
echo "nooptions RATELIMIT" >> ${.TARGET}
|
|
.endif
|