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