summaryrefslogtreecommitdiffstats
path: root/sys/modules/cxgb
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2014-08-04 22:37:02 +0000
committerimp <imp@FreeBSD.org>2014-08-04 22:37:02 +0000
commit661b96f06e13e80cbb17562fe9f9672c7759429d (patch)
treec03685b1d6ae030d6a0c9b2f8902e105aa1e4fd4 /sys/modules/cxgb
parent3877f6fdd81180378e6905f1936d6023c2012037 (diff)
downloadFreeBSD-src-661b96f06e13e80cbb17562fe9f9672c7759429d.zip
FreeBSD-src-661b96f06e13e80cbb17562fe9f9672c7759429d.tar.gz
Move most of the 15 variations on generating opt_inet.h and
opt_inet6.h into kmod.mk by forcing almost everybody to eat the same dogfood. While at it, consolidate the opt_bpf.h and opt_mroute.h targets here too.
Diffstat (limited to 'sys/modules/cxgb')
-rw-r--r--sys/modules/cxgb/cxgb/Makefile15
-rw-r--r--sys/modules/cxgb/iw_cxgb/Makefile10
-rw-r--r--sys/modules/cxgb/tom/Makefile10
3 files changed, 0 insertions, 35 deletions
diff --git a/sys/modules/cxgb/cxgb/Makefile b/sys/modules/cxgb/cxgb/Makefile
index 3f0f68a..911f2bb 100644
--- a/sys/modules/cxgb/cxgb/Makefile
+++ b/sys/modules/cxgb/cxgb/Makefile
@@ -1,7 +1,5 @@
# $FreeBSD$
-.include <src.opts.mk>
-
CXGB = ${.CURDIR}/../../../dev/cxgb
.PATH: ${CXGB} ${CXGB}/common ${CXGB}/sys
@@ -15,17 +13,4 @@ SRCS+= uipc_mvec.c
CFLAGS+= -g -DDEFAULT_JUMBO -I${CXGB}
-.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>
diff --git a/sys/modules/cxgb/iw_cxgb/Makefile b/sys/modules/cxgb/iw_cxgb/Makefile
index 2ee4990..8df1ffc 100644
--- a/sys/modules/cxgb/iw_cxgb/Makefile
+++ b/sys/modules/cxgb/iw_cxgb/Makefile
@@ -1,7 +1,5 @@
# $FreeBSD$
-.include <src.opts.mk>
-
CXGB = ${.CURDIR}/../../../dev/cxgb
.PATH: ${CXGB}/ulp/iw_cxgb
@@ -13,12 +11,4 @@ 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${CXGB} -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
-.endif
-
.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgb/tom/Makefile b/sys/modules/cxgb/tom/Makefile
index f4a2776..64eecaf 100644
--- a/sys/modules/cxgb/tom/Makefile
+++ b/sys/modules/cxgb/tom/Makefile
@@ -1,7 +1,5 @@
# $FreeBSD$
-.include <src.opts.mk>
-
CXGB = ${.CURDIR}/../../../dev/cxgb
.PATH: ${CXGB}/ulp/tom
@@ -14,12 +12,4 @@ CFLAGS+= -g -I${CXGB}
#CFLAGS+= -DDEBUG_PRINT -DDEBUG
-.if !defined(KERNBUILDDIR)
-.if ${MK_INET_SUPPORT} != "no"
-opt_inet.h:
- echo "#define INET 1" > ${.TARGET}
- echo "#define TCP_OFFLOAD 1" >> ${.TARGET}
-.endif
-.endif
-
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud