svn commit: r254149 - releng/9.2/sys/modules/ixgbe
Jack F Vogel
jfv at FreeBSD.org
Fri Aug 9 16:34:13 UTC 2013
Author: jfv
Date: Fri Aug 9 16:34:12 2013
New Revision: 254149
URL: http://svnweb.freebsd.org/changeset/base/254149
Log:
Automate inet option file creation for module build, change module name to
if_ixgbe, this sync's the Makefile with HEAD.
Approved by: re
Modified:
releng/9.2/sys/modules/ixgbe/Makefile
Directory Properties:
releng/9.2/sys/ (props changed)
releng/9.2/sys/modules/ (props changed)
releng/9.2/sys/modules/ixgbe/ (props changed)
Modified: releng/9.2/sys/modules/ixgbe/Makefile
==============================================================================
--- releng/9.2/sys/modules/ixgbe/Makefile Fri Aug 9 16:27:51 2013 (r254148)
+++ releng/9.2/sys/modules/ixgbe/Makefile Fri Aug 9 16:34:12 2013 (r254149)
@@ -1,7 +1,12 @@
#$FreeBSD$
+
+.include <bsd.own.mk>
+
.PATH: ${.CURDIR}/../../dev/ixgbe
-KMOD = ixgbe
+
+KMOD = if_ixgbe
SRCS = device_if.h bus_if.h pci_if.h
+SRCS += opt_inet.h opt_inet6.h
SRCS += ixgbe.c ixv.c
# Shared source
SRCS += ixgbe_common.c ixgbe_api.c ixgbe_phy.c ixgbe_mbx.c ixgbe_vf.c
@@ -9,4 +14,16 @@ SRCS += ixgbe_dcb.c ixgbe_dcb_82598.c
SRCS += ixgbe_82599.c ixgbe_82598.c ixgbe_x540.c
CFLAGS+= -I${.CURDIR}/../../dev/ixgbe -DSMP -DIXGBE_FDIR
+.if !defined(KERNBUILDDIR)
+.if ${MK_INET_SUPPORT} != "no"
+opt_inet.h:
+ @echo "#define INET 1" > ${.TARGET}
+.endif
+
+.if ${MK_INET6_SUPPORT} != "no"
+opt_inet6.h:
+ @echo "#define INET6 1" > ${.TARGET}
+.endif
+.endif
+
.include <bsd.kmod.mk>
More information about the svn-src-releng
mailing list