diff options
| author | Navdeep Parhar <np@FreeBSD.org> | 2013-10-17 18:37:25 +0000 |
|---|---|---|
| committer | Navdeep Parhar <np@FreeBSD.org> | 2013-10-17 18:37:25 +0000 |
| commit | fb93f5c47f1983aeabf4e9ec25df47d64ddda266 (patch) | |
| tree | ec33d90d5b28563f1d4441d20afa33d00811db10 /sys/modules | |
| parent | 1b182736a687da97b08c7c5e0c87c554c3c1b1f4 (diff) | |
Notes
Diffstat (limited to 'sys/modules')
| -rw-r--r-- | sys/modules/cxgbe/Makefile | 9 | ||||
| -rw-r--r-- | sys/modules/cxgbe/iw_cxgbe/Makefile | 27 |
2 files changed, 35 insertions, 1 deletions
diff --git a/sys/modules/cxgbe/Makefile b/sys/modules/cxgbe/Makefile index fb7548584ad1..d7ce6471ba0c 100644 --- a/sys/modules/cxgbe/Makefile +++ b/sys/modules/cxgbe/Makefile @@ -6,9 +6,16 @@ SUBDIR = if_cxgbe SUBDIR+= t4_firmware SUBDIR+= t5_firmware SUBDIR+= ${_tom} +SUBDIR+= ${_iw_cxgbe} -.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" +.if ${MACHINE_CPUARCH} == "amd64" _tom= tom +_iw_cxgbe= iw_cxgbe .endif +.if ${MACHINE_CPUARCH} == "i386" +_tom= tom +.endif + + .include <bsd.subdir.mk> diff --git a/sys/modules/cxgbe/iw_cxgbe/Makefile b/sys/modules/cxgbe/iw_cxgbe/Makefile new file mode 100644 index 000000000000..7704650ed05f --- /dev/null +++ b/sys/modules/cxgbe/iw_cxgbe/Makefile @@ -0,0 +1,27 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +CXGBE = ${.CURDIR}/../../../dev/cxgbe +.PATH: ${CXGBE}/iw_cxgbe + +KMOD= iw_cxgbe +SRCS= device.c cm.c provider.c mem.c cq.c qp.c resource.c ev.c id_table.c +SRCS+= bus_if.h device_if.h opt_sched.h pci_if.h pcib_if.h opt_ktr.h +SRCS+= opt_inet.h opt_ofed.h vnode_if.h +CFLAGS+= -I${CXGBE} -I${.CURDIR}/../../../ofed/include -DLINUX_TYPES_DEFINED + +.if !defined(KERNBUILDDIR) +.if ${MK_INET_SUPPORT} != "no" +opt_inet.h: + @echo "#define INET 1" > ${.TARGET} + @echo "#define TCP_OFFLOAD 1" >> ${.TARGET} +.endif + +.if ${MK_INET6_SUPPORT} != "no" +opt_inet6.h: + @echo "#define INET6 1" > ${.TARGET} +.endif +.endif + +.include <bsd.kmod.mk> |
