summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authorbryanv <bryanv@FreeBSD.org>2013-09-01 04:33:47 +0000
committerbryanv <bryanv@FreeBSD.org>2013-09-01 04:33:47 +0000
commitc4011595924e79ff02f7f896f09c0b57011ce00d (patch)
tree3e1b266e931116c1d854704fde099d838a45bb58 /sys/modules
parent4174a823010710068b29ea7f013486fc98f3ffbe (diff)
downloadFreeBSD-src-c4011595924e79ff02f7f896f09c0b57011ce00d.zip
FreeBSD-src-c4011595924e79ff02f7f896f09c0b57011ce00d.tar.gz
Import multiqueue VirtIO net driver from my user/bryanv/vtnetmq branch
This is a significant rewrite of much of the previous driver; lots of misc. cleanup was also performed, and support for a few other minor features was also added.
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/virtio/network/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/modules/virtio/network/Makefile b/sys/modules/virtio/network/Makefile
index 8463309c..f124d99 100644
--- a/sys/modules/virtio/network/Makefile
+++ b/sys/modules/virtio/network/Makefile
@@ -23,14 +23,29 @@
# SUCH DAMAGE.
#
+.include <bsd.own.mk>
+
.PATH: ${.CURDIR}/../../../dev/virtio/network
KMOD= if_vtnet
SRCS= if_vtnet.c
SRCS+= virtio_bus_if.h virtio_if.h
SRCS+= bus_if.h device_if.h
+SRCS+= opt_inet.h opt_inet6.h
MFILES= kern/bus_if.m kern/device_if.m \
dev/virtio/virtio_bus_if.m dev/virtio/virtio_if.m
+.if !defined(KERNBUILDDIR)
+.if ${MK_INET_SUPPORT} != "no"
+opt_inet.h:
+ @echo "#define INET 1" > ${.TARGET}
+.endif
+
+.if ${MK_INET6_SUPPORT} != "no"
+opt_inet6.h:
+ @echo "#define INET6 1" > ${.TARGET}
+.endif
+.endif
+
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud