Wojciech Macek f4aafb9ea6 Allow building VNIC as a module
Add directory structure and fix dependencies to be able to
build and use Cavium VNIC driver as a module.

Reviewed by:	zbb
Obtained from:	Semihalf
Sponsored by:	Cavium
Differential Revision:	https://reviews.freebsd.org/D6345
2016-05-20 11:00:06 +00:00

17 lines
305 B
Makefile

# $FreeBSD$
SYSDIR?=${.CURDIR}/../../..
.include "${SYSDIR}/conf/kern.opts.mk"
S= ${.CURDIR}/../../..
.PATH: $S/dev/vnic
KMOD= vnicpf
SRCS= pci_iov_if.h opt_platform.h device_if.h bus_if.h pci_if.h ofw_bus_if.h miibus_if.h lmac_if.h
SRCS+= nic_main.c
CFLAGS+= -DFDT -DPCI_IOV
.include <bsd.kmod.mk>