From 5a09b855fbc0ca03baf25671268474a9cb8e15a1 Mon Sep 17 00:00:00 2001 From: jfv Date: Fri, 9 Aug 2013 16:34:12 +0000 Subject: [PATCH] Automate inet option file creation for module build, change module name to if_ixgbe, this sync's the Makefile with HEAD. Approved by: re git-svn-id: svn://svn.freebsd.org/base/releng/9.2@254149 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/modules/ixgbe/Makefile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/sys/modules/ixgbe/Makefile b/sys/modules/ixgbe/Makefile index add71c58..68d887e3 100644 --- a/sys/modules/ixgbe/Makefile +++ b/sys/modules/ixgbe/Makefile @@ -1,7 +1,12 @@ #$FreeBSD$ + +.include + .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 ixgbe_dcb_82599.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 -- 2.45.0