Changeset View
Changeset View
Standalone View
Standalone View
head/sys/conf/config.mk
Show All 38 Lines | opt_ratelimit.h: | ||||
@echo "#define RATELIMIT 1" > ${.TARGET} | @echo "#define RATELIMIT 1" > ${.TARGET} | ||||
.endif | .endif | ||||
opt_mrouting.h: | opt_mrouting.h: | ||||
echo "#define MROUTING 1" > ${.TARGET} | echo "#define MROUTING 1" > ${.TARGET} | ||||
opt_printf.h: | opt_printf.h: | ||||
echo "#define PRINTF_BUFR_SIZE 128" > ${.TARGET} | echo "#define PRINTF_BUFR_SIZE 128" > ${.TARGET} | ||||
opt_scsi.h: | opt_scsi.h: | ||||
echo "#define SCSI_DELAY 15000" > ${.TARGET} | echo "#define SCSI_DELAY 15000" > ${.TARGET} | ||||
.if ${MK_SCTP_SUPPORT} != "no" | |||||
opt_sctp.h: | |||||
@echo "#define SCTP_SUPPORT 1" > ${.TARGET} | |||||
.endif | |||||
opt_wlan.h: | opt_wlan.h: | ||||
echo "#define IEEE80211_DEBUG 1" > ${.TARGET} | echo "#define IEEE80211_DEBUG 1" > ${.TARGET} | ||||
echo "#define IEEE80211_SUPPORT_MESH 1" >> ${.TARGET} | echo "#define IEEE80211_SUPPORT_MESH 1" >> ${.TARGET} | ||||
KERN_OPTS.i386=NEW_PCIB DEV_PCI | KERN_OPTS.i386=NEW_PCIB DEV_PCI | ||||
KERN_OPTS.amd64=NEW_PCIB DEV_PCI | KERN_OPTS.amd64=NEW_PCIB DEV_PCI | ||||
KERN_OPTS.powerpc=NEW_PCIB DEV_PCI | KERN_OPTS.powerpc=NEW_PCIB DEV_PCI | ||||
KERN_OPTS=MROUTING IEEE80211_DEBUG \ | KERN_OPTS=MROUTING IEEE80211_DEBUG \ | ||||
IEEE80211_SUPPORT_MESH DEV_BPF \ | IEEE80211_SUPPORT_MESH DEV_BPF \ | ||||
${KERN_OPTS.${MACHINE}} ${KERN_OPTS_EXTRA} | ${KERN_OPTS.${MACHINE}} ${KERN_OPTS_EXTRA} | ||||
.if ${MK_BHYVE_SNAPSHOT} != "no" | .if ${MK_BHYVE_SNAPSHOT} != "no" | ||||
KERN_OPTS+= BHYVE_SNAPSHOT | KERN_OPTS+= BHYVE_SNAPSHOT | ||||
.endif | .endif | ||||
.if ${MK_INET_SUPPORT} != "no" | .if ${MK_INET_SUPPORT} != "no" | ||||
KERN_OPTS+= INET TCP_OFFLOAD | KERN_OPTS+= INET TCP_OFFLOAD | ||||
.endif | .endif | ||||
.if ${MK_INET6_SUPPORT} != "no" | .if ${MK_INET6_SUPPORT} != "no" | ||||
KERN_OPTS+= INET6 | KERN_OPTS+= INET6 | ||||
.endif | .endif | ||||
.if ${MK_IPSEC_SUPPORT} != "no" | .if ${MK_IPSEC_SUPPORT} != "no" | ||||
KERN_OPTS+= IPSEC_SUPPORT | KERN_OPTS+= IPSEC_SUPPORT | ||||
.endif | |||||
.if ${MK_SCTP_SUPPORT} != "no" | |||||
KERN_OPTS+= SCTP_SUPPORT | |||||
.endif | .endif | ||||
.elif !defined(KERN_OPTS) | .elif !defined(KERN_OPTS) | ||||
# Add all the options that are mentioned in any opt_*.h file when we | # Add all the options that are mentioned in any opt_*.h file when we | ||||
# have a kernel build directory to pull them from. | # have a kernel build directory to pull them from. | ||||
KERN_OPTS!=cat ${KERNBUILDDIR}/opt*.h | awk '{print $$2;}' | sort -u | KERN_OPTS!=cat ${KERNBUILDDIR}/opt*.h | awk '{print $$2;}' | sort -u | ||||
.export KERN_OPTS | .export KERN_OPTS | ||||
.endif | .endif | ||||
.if !defined(NO_MODULES) && !defined(__MPATH) && !make(install) && \ | .if !defined(NO_MODULES) && !defined(__MPATH) && !make(install) && \ | ||||
(empty(.MAKEFLAGS:M-V) || defined(NO_SKIP_MPATH)) | (empty(.MAKEFLAGS:M-V) || defined(NO_SKIP_MPATH)) | ||||
__MPATH!=find ${SYSDIR:tA}/ -name \*_if.m | __MPATH!=find ${SYSDIR:tA}/ -name \*_if.m | ||||
.export __MPATH | .export __MPATH | ||||
.endif | .endif |