freebsd-dev/sys/conf/makeLINT.mk
Sean Bruno f2d6ace4a6 Migrate e1000 to the IFLIB framework:
- em(4) igb(4) and lem(4)
- deprecate the igb device from kernel configurations
- create a symbolic link in /boot/kernel from if_em.ko to if_igb.ko

Devices tested:
- 82574L
- I218-LM
- 82546GB
- 82579LM
- I350
- I217

Please report problems to freebsd-net@freebsd.org

Partial review from jhb and suggestions on how to *not* brick folks who
originally would have lost their igbX device.

Submitted by:	mmacy@nextbsd.org
MFC after:	2 weeks
Relnotes:	yes
Sponsored by:	Limelight Networks and Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D8299
2017-01-10 03:23:22 +00:00

59 lines
2.2 KiB
Makefile

# $FreeBSD$
all:
@echo "make LINT only"
clean:
rm -f LINT
.if ${TARGET} == "amd64" || ${TARGET} == "i386"
rm -f LINT-VIMAGE LINT-NOINET LINT-NOINET6 LINT-NOIP
.endif
NOTES= ../../conf/NOTES NOTES
LINT: ${NOTES} ../../conf/makeLINT.sed
cat ${NOTES} | sed -E -n -f ../../conf/makeLINT.sed > ${.TARGET}
.if ${TARGET} == "amd64" || ${TARGET} == "i386"
echo "include ${.TARGET}" > ${.TARGET}-VIMAGE
echo "ident ${.TARGET}-VIMAGE" >> ${.TARGET}-VIMAGE
echo "options VIMAGE" >> ${.TARGET}-VIMAGE
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 vxge" >> ${.TARGET}-NOIP
echo "nodevice netmap" >> ${.TARGET}-NOIP
.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
.endif