summaryrefslogtreecommitdiffstats
path: root/sys/modules/cxgbe
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2013-10-18 09:17:35 +0000
committertrasz <trasz@FreeBSD.org>2013-10-18 09:17:35 +0000
commit70d0c3d521d0c722e3ee89aea43c0efa5775caaf (patch)
treea040b5c416eda0fe2a2539ccb7d89d4f3996aee5 /sys/modules/cxgbe
parentfb4e4700a1f8739e351f49e3736cc363564e891e (diff)
downloadFreeBSD-src-70d0c3d521d0c722e3ee89aea43c0efa5775caaf.zip
FreeBSD-src-70d0c3d521d0c722e3ee89aea43c0efa5775caaf.tar.gz
Don't build krping.ko, iw_cxgb.ko, and iw_cxgbe.ko, if MK_OFED=no
(the default). They build, but are unloadable, due to missing ibcore.ko. Sponsored by: FreeBSD Foundation
Diffstat (limited to 'sys/modules/cxgbe')
-rw-r--r--sys/modules/cxgbe/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/modules/cxgbe/Makefile b/sys/modules/cxgbe/Makefile
index d7ce647..86ce82e 100644
--- a/sys/modules/cxgbe/Makefile
+++ b/sys/modules/cxgbe/Makefile
@@ -2,6 +2,8 @@
# $FreeBSD$
#
+.include <bsd.own.mk>
+
SUBDIR = if_cxgbe
SUBDIR+= t4_firmware
SUBDIR+= t5_firmware
@@ -10,12 +12,13 @@ SUBDIR+= ${_iw_cxgbe}
.if ${MACHINE_CPUARCH} == "amd64"
_tom= tom
+.if ${MK_OFED} != "no" || defined(ALL_MODULES)
_iw_cxgbe= iw_cxgbe
.endif
+.endif
.if ${MACHINE_CPUARCH} == "i386"
_tom= tom
.endif
-
.include <bsd.subdir.mk>
OpenPOWER on IntegriCloud