Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/config.mk
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# Common code to marry kernel config(8) goo and module building goo. | # Common code to marry kernel config(8) goo and module building goo. | ||||
# | # | ||||
# Generate options files that otherwise would be built | # Generate options files that otherwise would be built | ||||
# in substantially similar ways through the tree. Move | # in substantially similar ways through the tree. Move | ||||
# the code here when they all produce identical results | # the code here when they all produce identical results | ||||
# (or should) | # (or should) | ||||
.if !defined(KERNBUILDDIR) | .if !defined(KERNBUILDDIR) | ||||
.if ${MK_BHYVE_SNAPSHOT} != "no" | |||||
opt_bhyve_snapshot.h: | |||||
@echo "#define BHYVE_SNAPSHOT 1" > ${.TARGET} | |||||
.endif | |||||
opt_bpf.h: | opt_bpf.h: | ||||
echo "#define DEV_BPF 1" > ${.TARGET} | echo "#define DEV_BPF 1" > ${.TARGET} | ||||
.if ${MK_INET_SUPPORT} != "no" | .if ${MK_INET_SUPPORT} != "no" | ||||
opt_inet.h: | opt_inet.h: | ||||
@echo "#define INET 1" > ${.TARGET} | @echo "#define INET 1" > ${.TARGET} | ||||
@echo "#define TCP_OFFLOAD 1" >> ${.TARGET} | @echo "#define TCP_OFFLOAD 1" >> ${.TARGET} | ||||
.endif | .endif | ||||
.if ${MK_INET6_SUPPORT} != "no" | .if ${MK_INET6_SUPPORT} != "no" | ||||
Show All 14 Lines | 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" | |||||
KERN_OPTS+= BHYVE_SNAPSHOT | |||||
.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 | ||||
.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 | ||||
Show All 10 Lines |