Honor opt_ipsec.h from kernel builds.

To make this simpler, set the default contents of opt_ipsec.h
for standalone modules in sys/conf/config.mk.

Reviewed by:	imp
MFC after:	2 weeks
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D25046
This commit is contained in:
John Baldwin 2020-05-29 19:21:35 +00:00
parent ec18cf79e6
commit 4bcbd26ff8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361632
3 changed files with 2 additions and 6 deletions

View file

@ -30,6 +30,8 @@ opt_inet.h:
opt_inet6.h:
@echo "#define INET6 1" > ${.TARGET}
.endif
opt_ipsec.h:
@echo "#define IPSEC_SUPPORT 1" > ${.TARGET}
.if ${MK_RATELIMIT} != "no"
opt_ratelimit.h:
@echo "#define RATELIMIT 1" > ${.TARGET}

View file

@ -8,7 +8,4 @@ SRCS= if_ipsec.c ipsec.c ipsec_input.c ipsec_mbuf.c ipsec_mod.c \
opt_inet.h opt_inet6.h opt_ipsec.h opt_sctp.h
SRCS.INET= udpencap.c
opt_ipsec.h:
@echo "#define IPSEC_SUPPORT 1" > ${.TARGET}
.include <bsd.kmod.mk>

View file

@ -5,7 +5,4 @@
KMOD= tcpmd5
SRCS= xform_tcp.c opt_inet.h opt_inet6.h opt_ipsec.h
opt_ipsec.h:
@echo "#define IPSEC_SUPPORT 1" > ${.TARGET}
.include <bsd.kmod.mk>