kern.opts.mk (280728) | kern.opts.mk (280766) |
---|---|
1# $FreeBSD: head/sys/conf/kern.opts.mk 280728 2015-03-27 02:35:25Z imp $ | 1# $FreeBSD: head/sys/conf/kern.opts.mk 280766 2015-03-27 17:36:22Z imp $ |
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. --- 36 unchanged lines hidden (view full) --- 46__DEFAULT_NO_OPTIONS = \ 47 EISA \ 48 NAND \ 49 OFED 50 51# Some options are totally broken on some architectures. We disable 52# them. If you need to enable them on an experimental basis, you 53# must change this code. | 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. --- 36 unchanged lines hidden (view full) --- 46__DEFAULT_NO_OPTIONS = \ 47 EISA \ 48 NAND \ 49 OFED 50 51# Some options are totally broken on some architectures. We disable 52# them. If you need to enable them on an experimental basis, you 53# must change this code. |
54# Note: These only apply to the list of modules we build by default 55# and sometimes what is in the opt_*.h files by default. 56# Kernel config files are unaffected, though some targets can be 57# affected by KERNEL_SYMBOLS, FORMAT_EXTENSIONS, CTF and SSP. |
|
54 55# Things that don't work based on the CPU 56.if ${MACHINE_CPUARCH} == "arm" 57BROKEN_OPTIONS+= CDDL ZFS 58.endif 59 60.if ${MACHINE_CPUARCH} == "mips" 61BROKEN_OPTIONS+= CDDL ZFS --- 8 unchanged lines hidden (view full) --- 70.if ${MACHINE} != "i386" 71BROKEN_OPTIONS+= EISA 72.endif 73 74.if ${MACHINE} != "i386" && ${MACHINE} != "amd64" 75BROKEN_OPTIONS+= OFED 76.endif 77 | 58 59# Things that don't work based on the CPU 60.if ${MACHINE_CPUARCH} == "arm" 61BROKEN_OPTIONS+= CDDL ZFS 62.endif 63 64.if ${MACHINE_CPUARCH} == "mips" 65BROKEN_OPTIONS+= CDDL ZFS --- 8 unchanged lines hidden (view full) --- 74.if ${MACHINE} != "i386" 75BROKEN_OPTIONS+= EISA 76.endif 77 78.if ${MACHINE} != "i386" && ${MACHINE} != "amd64" 79BROKEN_OPTIONS+= OFED 80.endif 81 |
78# Options that cannot be turned on this architecture, usually because 79# of compilation or other issues so severe it cannot be used even 80# on an experimental basis 81__ALWAYS_NO_OPTIONS= 82 83# Things that don't work based on the CPU 84.if ${MACHINE_CPUARCH} == "arm" 85__ALWAYS_NO_OPTIONS+= CDDL ZFS 86.endif 87 88.if ${MACHINE_CPUARCH} == "mips" 89__ALWAYS_NO_OPTIONS+= CDDL ZFS 90.endif 91 92.if ${MACHINE_CPUARCH} == "powerpc" && ${MACHINE_ARCH} != "powerpc64" 93__ALWAYS_NO_OPTIONS+= ZFS 94.endif 95 96# Things that don't work because the kernel doesn't have the support 97# for them. 98.if ${MACHINE} != "i386" 99__ALWAYS_NO_OPTIONS+= EISA 100.endif 101 102.if ${MACHINE} != "i386" && ${MACHINE} != "amd64" 103__ALWAYS_NO_OPTIONS+= OFED 104.endif 105 | |
106# expanded inline from bsd.mkopt.mk to avoid share/mk dependency 107 108# Those that default to yes 109.for var in ${__DEFAULT_YES_OPTIONS} 110.if !defined(MK_${var}) 111.if defined(WITHOUT_${var}) # WITHOUT always wins 112MK_${var}:= no 113.else --- 29 unchanged lines hidden (view full) --- 143# 144.for var in ${BROKEN_OPTIONS} 145MK_${var}:= no 146.endfor 147.undef BROKEN_OPTIONS 148#end of bsd.mkopt.mk expanded inline. 149 150# | 82# expanded inline from bsd.mkopt.mk to avoid share/mk dependency 83 84# Those that default to yes 85.for var in ${__DEFAULT_YES_OPTIONS} 86.if !defined(MK_${var}) 87.if defined(WITHOUT_${var}) # WITHOUT always wins 88MK_${var}:= no 89.else --- 29 unchanged lines hidden (view full) --- 119# 120.for var in ${BROKEN_OPTIONS} 121MK_${var}:= no 122.endfor 123.undef BROKEN_OPTIONS 124#end of bsd.mkopt.mk expanded inline. 125 126# |
151# MK_* options which are always no, usually because they are 152# unsupported/badly broken on this architecture. 153# 154.for var in ${__ALWAYS_NO_OPTIONS} 155MK_${var}:= no 156.endfor 157.undef __ALWAYS_NO_OPTIONS 158#end of bsd.mkopt.mk expanded inline. 159 160# | |
161# MK_*_SUPPORT options which default to "yes" unless their corresponding 162# MK_* variable is set to "no". 163# 164.for var in \ 165 INET \ 166 INET6 167.if defined(WITHOUT_${var}_SUPPORT) || ${MK_${var}} == "no" 168MK_${var}_SUPPORT:= no --- 13 unchanged lines hidden --- | 127# MK_*_SUPPORT options which default to "yes" unless their corresponding 128# MK_* variable is set to "no". 129# 130.for var in \ 131 INET \ 132 INET6 133.if defined(WITHOUT_${var}_SUPPORT) || ${MK_${var}} == "no" 134MK_${var}_SUPPORT:= no --- 13 unchanged lines hidden --- |