1# $FreeBSD$ 2 3.PATH: ${SRCTOP}/sys/dev/hyperv/vmbus \ 4 ${SRCTOP}/sys/dev/hyperv/vmbus/${MACHINE_CPUARCH} \ 5 ${SRCTOP}/sys/dev/hyperv/vmbus/x86 6 7KMOD= hv_vmbus 8SRCS= hyperv.c \ 9 hyperv_busdma.c \ 10 hyperv_machdep.c \ 11 vmbus.c \ 12 vmbus_br.c \ 13 vmbus_chan.c \ 14 vmbus_if.c \ 15 vmbus_res.c \ 16 vmbus_xact.c 17 18.if ${MACHINE_CPUARCH} != "i386" && ${MACHINE_CPUARCH} != "aarch64" 19SRCS+= vmbus_vector.S 20.endif 21.if ${MACHINE_CPUARCH} != "aarch64" 22SRCS+= vmbus_et.c hyperv_x86.c vmbus_x86.c 23.else 24SRC+= hyperv_aarch64.c vmbus_aarch64.c 25.endif 26SRCS+= acpi_if.h bus_if.h device_if.h opt_acpi.h pci_if.h pcib_if.h vmbus_if.h 27 28# XXX: for assym.inc 29SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h 30.if ${MACHINE_CPUARCH} == "i386" 31SRCS+= opt_apic.h 32.endif 33 34DPSRCS= assym.inc 35 36vmbus_vector.o: 37 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ 38 ${.IMPSRC} -o ${.TARGET} 39 40CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/include \ 41 -I${SRCTOP}/sys/dev/hyperv/vmbus 42 43EXPORT_SYMS= YES 44 45.include <bsd.kmod.mk> 46