make glue to hook up the hyperv kmods to the build.

Modified from the original Microsoft versions to pull
code/headers in from the sys/contrib/dev directory.
This commit is contained in:
Peter Grehan 2013-06-15 06:21:17 +00:00
parent 9d3b2dabfb
commit 7d99ab9fd0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/hyperv/; revision=251777
6 changed files with 71 additions and 0 deletions

View File

@ -125,6 +125,7 @@ SUBDIR= \
${_hptmv} \
${_hptrr} \
hwpmc \
${_hyperv} \
${_i2c} \
${_ibcs2} \
${_ichwd} \
@ -661,6 +662,7 @@ _hptiop= hptiop
_hptmv= hptmv
_hptrr= hptrr
.endif
_hyperv= hyperv
_i2c= i2c
_ichwd= ichwd
_ida= ida

View File

@ -0,0 +1,5 @@
# $FreeBSD$
SUBDIR = vmbus netvsc storvsc utilities
.include <bsd.subdir.mk>

View File

@ -0,0 +1,15 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../../contrib/dev/hyperv/netvsc
KMOD = hv_netvsc
SRCS = hv_net_vsc.c \
hv_netvsc_drv_freebsd.c \
hv_rndis_filter.c
CFLAGS += -I${.CURDIR}/../../../contrib/dev/hyperv/include \
-I${.CURDIR}/../../../contrib/dev/hyperv/netvsc \
-I${.CURDIR}/../../../contrib
.include <bsd.kmod.mk>

View File

@ -0,0 +1,15 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../../contrib/dev/hyperv/storvsc
KMOD= hv_storvsc
SRCS = hv_storvsc_drv_freebsd.c \
hv_vstorage.h
CFLAGS+= -I${.CURDIR}/../../../contrib/dev/hyperv/include \
-I${.CURDIR}/../../../contrib/dev/hyperv/vmbus \
-I${.CURDIR}/../../../contrib/dev/hyperv/storvsc \
-I${.CURDIR}/../../../contrib
.include <bsd.kmod.mk>

View File

@ -0,0 +1,13 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../../contrib/dev/hyperv/utilities
KMOD= hv_utils
SRCS = hv_util.c
CFLAGS+= -I${.CURDIR}/../../../contrib/dev/hyperv/include \
-I${.CURDIR}/../../../contrib/dev/hyperv/vmbus \
-I${.CURDIR}/../../../contrib
.include <bsd.kmod.mk>

View File

@ -0,0 +1,21 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../../contrib/dev/hyperv/vmbus \
${.CURDIR}/../../../contrib/dev/hyperv/utilities
KMOD= hv_vmbus
SRCS = hv_channel.c \
hv_channel_mgmt.c \
hv_connection.c \
hv_hv.c \
hv_ring_buffer.c \
hv_vmbus_drv_freebsd.c \
hv_vmbus_priv.h
CFLAGS+= -I${.CURDIR}/../../../contrib/dev/hyperv/include \
-I${.CURDIR}/../../../contrib/dev/hyperv/vmbus \
-I${.CURDIR}/../../../contrib/dev/hyperv/utilities \
-I${.CURDIR}/../../../contrib
.include <bsd.kmod.mk>