svn commit: r198193 - user/eri/pf45/head/sys/modules/pf

Ermal Luçi eri at FreeBSD.org
Sat Oct 17 23:04:05 UTC 2009


Author: eri
Date: Sat Oct 17 23:04:04 2009
New Revision: 198193
URL: http://svn.freebsd.org/changeset/base/198193

Log:
  Allow pf(4) module to be built as module with vimage options enabled.
  It is off by default.
  To enable just define VIMAGE variable.

Modified:
  user/eri/pf45/head/sys/modules/pf/Makefile

Modified: user/eri/pf45/head/sys/modules/pf/Makefile
==============================================================================
--- user/eri/pf45/head/sys/modules/pf/Makefile	Sat Oct 17 23:01:29 2009	(r198192)
+++ user/eri/pf45/head/sys/modules/pf/Makefile	Sat Oct 17 23:04:04 2009	(r198193)
@@ -9,7 +9,7 @@ KMOD=	pf
 SRCS = 	pf.c pf_if.c pf_lb.c pf_osfp.c pf_ioctl.c pf_norm.c pf_table.c \
 	pf_ruleset.c \
 	in4_cksum.c \
-	opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h
+	opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h opt_global.h
 
 CFLAGS+=  -I${.CURDIR}/../../contrib/pf
 
@@ -33,6 +33,11 @@ opt_pf.h:
 	echo "#define DEV_PFSYNC 1" >> ${.TARGET}
 	echo "#define DEV_PFLOW 1" >> ${.TARGET}
 
+.if defined(VIMAGE)
+opt_global.h:
+	echo "#define VIMAGE 1" >> ${.TARGET}
+.endif
+
 .endif
 
 .include <bsd.kmod.mk>


More information about the svn-src-user mailing list