aboutsummaryrefslogtreecommitdiff
path: root/sys/conf/kern.opts.mk
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2014-08-04 22:37:02 +0000
committerWarner Losh <imp@FreeBSD.org>2014-08-04 22:37:02 +0000
commitaeaed508982227551b2748339033bb2483382b4d (patch)
treec03685b1d6ae030d6a0c9b2f8902e105aa1e4fd4 /sys/conf/kern.opts.mk
parentb0a8d404e5b942b4ccf1ad17137e33115202c1cf (diff)
downloadsrc-aeaed508982227551b2748339033bb2483382b4d.tar.gz
src-aeaed508982227551b2748339033bb2483382b4d.zip
Move most of the 15 variations on generating opt_inet.h and
opt_inet6.h into kmod.mk by forcing almost everybody to eat the same dogfood. While at it, consolidate the opt_bpf.h and opt_mroute.h targets here too.
Notes
Notes: svn path=/head/; revision=269540
Diffstat (limited to 'sys/conf/kern.opts.mk')
-rw-r--r--sys/conf/kern.opts.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/conf/kern.opts.mk b/sys/conf/kern.opts.mk
index c7842b65343f..aab1808eee62 100644
--- a/sys/conf/kern.opts.mk
+++ b/sys/conf/kern.opts.mk
@@ -18,6 +18,8 @@
__DEFAULT_YES_OPTIONS = \
ARM_EABI \
FORMAT_EXTENSIONS \
+ INET \
+ INET6 \
KERNEL_SYMBOLS
# expanded inline from bsd.mkopt.mk:
@@ -32,3 +34,17 @@ MK_${var}:= yes
.endif
.endfor
.undef __DEFAULT_YES_OPTIONS
+
+#
+# MK_*_SUPPORT options which default to "yes" unless their corresponding
+# MK_* variable is set to "no".
+#
+.for var in \
+ INET \
+ INET6
+.if defined(WITHOUT_${var}_SUPPORT) || ${MK_${var}} == "no"
+MK_${var}_SUPPORT:= no
+.else
+MK_${var}_SUPPORT:= yes
+.endif
+.endfor