diff options
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/kern.opts.mk | 16 | ||||
-rw-r--r-- | sys/conf/kmod.mk | 28 |
2 files changed, 44 insertions, 0 deletions
diff --git a/sys/conf/kern.opts.mk b/sys/conf/kern.opts.mk index c7842b6..aab1808 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 diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 2399c4c..090031c 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -315,6 +315,34 @@ unload: ${KMODUNLOAD} -v ${PROG} .endif +# Generate options files that otherwise would be built +# in substantially similar ways through the tree. Move +# the code here when they all produce identical results +# (or should) +.if !defined(KERNBUILDDIR) +opt_bpf.h: + echo "#define DEV_BPF 1" > ${.TARGET} +.if ${MK_INET_SUPPORT} != "no" +opt_inet.h: + @echo "#define INET 1" > ${.TARGET} + @echo "#define TCP_OFFLOAD 1" >> ${.TARGET} +.endif +.if ${MK_INET6_SUPPORT} != "no" +opt_inet6.h: + @echo "#define INET6 1" > ${.TARGET} +.endif +opt_mrouting.h: + echo "#define MROUTING 1" > ${.TARGET} +opt_natm.h: + echo "#define NATM 1" > ${.TARGET} +opt_scsi.h: + echo "#define SCSI_DELAY 15000" > ${.TARGET} +opt_wlan.h: + echo "#define IEEE80211_DEBUG 1" > ${.TARGET} + echo "#define IEEE80211_AMPDU_AGE 1" >> ${.TARGET} + echo "#define IEEE80211_SUPPORT_MESH 1" >> ${.TARGET} +.endif + .if defined(KERNBUILDDIR) .PATH: ${KERNBUILDDIR} CFLAGS+= -I${KERNBUILDDIR} |