Add support for dependent options

Reviewed by:	imp
This commit is contained in:
sjg 2015-06-06 01:18:28 +00:00
parent d19d4db4e2
commit 0d3ee8cc3b

View File

@ -70,3 +70,16 @@ MK_${var}:= no
.for var in ${BROKEN_OPTIONS}
MK_${var}:= no
.endfor
.for vv in ${__DEFAULT_DEPENDENT_OPTIONS}
.if defined(WITH_${vv:H}) && defined(WITHOUT_${vv:H})
MK_${vv:H}?= no
.elif defined(WITH_${vv:H})
MK_${vv:H}?= yes
.elif defined(WITHOUT_${vv:H})
MK_${vv:H}?= no
.else
MK_${vv:H}?= ${MK_${vv:T}}
.endif
.endfor
.undef __DEFAULT_DEPENDENT_OPTIONS