1# $FreeBSD$ 2 3# Options set in the build system that affect the kernel somehow. 4 5# 6# Define MK_* variables (which are either "yes" or "no") for users 7# to set via WITH_*/WITHOUT_* in /etc/src.conf and override in the 8# make(1) environment. 9# These should be tested with `== "no"' or `!= "no"' in makefiles. 10# The NO_* variables should only be set by makefiles for variables 11# that haven't been converted over. 12# 13 14# These options are used by the kernel build process (kern.mk and kmod.mk) 15# They have to be listed here so we can build modules outside of the 16# src tree. 17 18__DEFAULT_YES_OPTIONS = \ 19 ARM_EABI \ 20 FORMAT_EXTENSIONS \ 21 INET \ 22 INET6 \ 23 KERNEL_SYMBOLS 24 25# expanded inline from bsd.mkopt.mk: 26 27.for var in ${__DEFAULT_YES_OPTIONS} 28.if !defined(MK_${var}) 29.if defined(WITHOUT_${var}) # WITHOUT always wins 30MK_${var}:= no 31.else 32MK_${var}:= yes 33.endif 34.endif 35.endfor 36.undef __DEFAULT_YES_OPTIONS 37 38# 39# MK_*_SUPPORT options which default to "yes" unless their corresponding 40# MK_* variable is set to "no". 41# 42.for var in \ 43 INET \ 44 INET6 45.if defined(WITHOUT_${var}_SUPPORT) || ${MK_${var}} == "no" 46MK_${var}_SUPPORT:= no 47.else 48MK_${var}_SUPPORT:= yes 49.endif 50.endfor 51