aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/hyperv
diff options
context:
space:
mode:
Diffstat (limited to 'sys/modules/hyperv')
-rw-r--r--sys/modules/hyperv/Makefile3
-rw-r--r--sys/modules/hyperv/hid/Makefile10
-rw-r--r--sys/modules/hyperv/hvsock/Makefile12
-rw-r--r--sys/modules/hyperv/netvsc/Makefile11
-rw-r--r--sys/modules/hyperv/pcib/Makefile10
-rw-r--r--sys/modules/hyperv/storvsc/Makefile13
-rw-r--r--sys/modules/hyperv/utilities/Makefile14
-rw-r--r--sys/modules/hyperv/vmbus/Makefile43
8 files changed, 116 insertions, 0 deletions
diff --git a/sys/modules/hyperv/Makefile b/sys/modules/hyperv/Makefile
new file mode 100644
index 000000000000..170564a730ac
--- /dev/null
+++ b/sys/modules/hyperv/Makefile
@@ -0,0 +1,3 @@
+SUBDIR = vmbus netvsc storvsc utilities hvsock hid
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/hyperv/hid/Makefile b/sys/modules/hyperv/hid/Makefile
new file mode 100644
index 000000000000..f714ec3756af
--- /dev/null
+++ b/sys/modules/hyperv/hid/Makefile
@@ -0,0 +1,10 @@
+.PATH: ${SRCTOP}/sys/dev/hyperv/input
+
+KMOD= hv_hid
+SRCS= hv_hid.c
+SRCS+= bus_if.h device_if.h hid_if.h vmbus_if.h
+
+CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/include \
+ -I${SRCTOP}/sys/dev/hyperv/vmbus
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/hyperv/hvsock/Makefile b/sys/modules/hyperv/hvsock/Makefile
new file mode 100644
index 000000000000..b168a044775e
--- /dev/null
+++ b/sys/modules/hyperv/hvsock/Makefile
@@ -0,0 +1,12 @@
+.PATH: ${SRCTOP}/sys/dev/hyperv/hvsock
+
+KMOD= hv_sock
+SRCS= hv_sock.c
+SRCS+= hv_sock.h
+SRCS+= device_if.h bus_if.h
+
+CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/include \
+ -I${SRCTOP}/sys/dev/hyperv/vmbus \
+ -I${SRCTOP}/sys/dev/hyperv/hvsock
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/hyperv/netvsc/Makefile b/sys/modules/hyperv/netvsc/Makefile
new file mode 100644
index 000000000000..37b398de1f4f
--- /dev/null
+++ b/sys/modules/hyperv/netvsc/Makefile
@@ -0,0 +1,11 @@
+.PATH: ${SRCTOP}/sys/dev/hyperv/netvsc \
+ ${SRCTOP}/sys/dev/hyperv/vmbus
+
+KMOD= hv_netvsc
+SRCS= hn_nvs.c hn_rndis.c if_hn.c
+SRCS+= bus_if.h device_if.h vmbus_if.h
+SRCS+= opt_hn.h opt_inet.h opt_inet6.h opt_rss.h
+
+CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/netvsc
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/hyperv/pcib/Makefile b/sys/modules/hyperv/pcib/Makefile
new file mode 100644
index 000000000000..be0a905aab80
--- /dev/null
+++ b/sys/modules/hyperv/pcib/Makefile
@@ -0,0 +1,10 @@
+.PATH: ${SRCTOP}/sys/dev/hyperv/pcib \
+ ${SRCTOP}/sys/dev/hyperv/vmbus
+
+KMOD= vmbus_pcib
+SRCS= vmbus_pcib.c
+SRCS+= bus_if.h device_if.h pci_if.h pcib_if.h vmbus_if.h
+
+CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/pcib
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/hyperv/storvsc/Makefile b/sys/modules/hyperv/storvsc/Makefile
new file mode 100644
index 000000000000..3c96db8e3d62
--- /dev/null
+++ b/sys/modules/hyperv/storvsc/Makefile
@@ -0,0 +1,13 @@
+.PATH: ${SRCTOP}/sys/dev/hyperv/storvsc \
+ ${SRCTOP}/sys/dev/hyperv/vmbus \
+
+KMOD= hv_storvsc
+SRCS = hv_storvsc_drv_freebsd.c \
+ hv_vstorage.h
+SRCS+= bus_if.h device_if.h opt_cam.h vmbus_if.h
+
+CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/include \
+ -I${SRCTOP}/sys/dev/hyperv/vmbus \
+ -I${SRCTOP}/sys/dev/hyperv/storvsc
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/hyperv/utilities/Makefile b/sys/modules/hyperv/utilities/Makefile
new file mode 100644
index 000000000000..42b314e1f156
--- /dev/null
+++ b/sys/modules/hyperv/utilities/Makefile
@@ -0,0 +1,14 @@
+.PATH: ${SRCTOP}/sys/dev/hyperv/utilities
+
+KMOD= hv_utils
+SRCS= vmbus_ic.c
+SRCS+= hv_kvp.c
+SRCS+= vmbus_heartbeat.c
+SRCS+= vmbus_shutdown.c
+SRCS+= vmbus_timesync.c
+SRCS+= bus_if.h device_if.h vmbus_if.h
+
+CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/include \
+ -I${SRCTOP}/sys/dev/hyperv/vmbus
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/hyperv/vmbus/Makefile b/sys/modules/hyperv/vmbus/Makefile
new file mode 100644
index 000000000000..5cd9535585d3
--- /dev/null
+++ b/sys/modules/hyperv/vmbus/Makefile
@@ -0,0 +1,43 @@
+.PATH: ${SRCTOP}/sys/dev/hyperv/vmbus \
+ ${SRCTOP}/sys/dev/hyperv/vmbus/${MACHINE_CPUARCH} \
+ ${SRCTOP}/sys/dev/hyperv/vmbus/x86
+
+KMOD= hv_vmbus
+SRCS= hyperv.c \
+ hyperv_busdma.c \
+ hyperv_machdep.c \
+ vmbus.c \
+ vmbus_br.c \
+ vmbus_chan.c \
+ vmbus_if.c \
+ vmbus_res.c \
+ vmbus_xact.c
+
+.if ${MACHINE_CPUARCH} == "amd64"
+SRCS+= vmbus_vector.S hyperv_mmu.c
+.endif
+.if ${MACHINE_CPUARCH} != "aarch64"
+SRCS+= vmbus_et.c hyperv_x86.c vmbus_x86.c
+.else
+SRC+= hyperv_aarch64.c vmbus_aarch64.c
+.endif
+SRCS+= acpi_if.h bus_if.h device_if.h opt_acpi.h pci_if.h pcib_if.h vmbus_if.h
+
+# XXX: for assym.inc
+SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h
+.if ${MACHINE_CPUARCH} == "i386"
+SRCS+= opt_apic.h
+.endif
+
+DPSRCS= assym.inc
+
+vmbus_vector.o:
+ ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
+ ${.IMPSRC} -o ${.TARGET}
+
+CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/include \
+ -I${SRCTOP}/sys/dev/hyperv/vmbus
+
+EXPORT_SYMS= YES
+
+.include <bsd.kmod.mk>