mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Enforce that MK_foo options shall be either "yes" or "no" and nothing
else.
This commit is contained in:
parent
3b33679869
commit
a469e551a4
2 changed files with 16 additions and 0 deletions
|
|
@ -33,7 +33,11 @@ MK_${var}:= no
|
|||
.else
|
||||
MK_${var}:= yes
|
||||
.endif
|
||||
.else
|
||||
.if ${MK_${var}} != "yes" && ${MK_${var}} != "no"
|
||||
.error "Illegal value for MK_${var}: ${MK_${var}}"
|
||||
.endif
|
||||
.endif # !defined(MK_${var})
|
||||
.endfor
|
||||
.undef __DEFAULT_YES_OPTIONS
|
||||
|
||||
|
|
@ -47,6 +51,10 @@ MK_${var}:= yes
|
|||
.else
|
||||
MK_${var}:= no
|
||||
.endif
|
||||
.else
|
||||
.if ${MK_${var}} != "yes" && ${MK_${var}} != "no"
|
||||
.error "Illegal value for MK_${var}: ${MK_${var}}"
|
||||
.endif
|
||||
.endif # !defined(MK_${var})
|
||||
.endfor
|
||||
.undef __DEFAULT_NO_OPTIONS
|
||||
|
|
|
|||
|
|
@ -58,7 +58,11 @@ MK_${var}:= no
|
|||
.else
|
||||
MK_${var}:= yes
|
||||
.endif
|
||||
.else
|
||||
.if ${MK_${var}} != "yes" && ${MK_${var}} != "no"
|
||||
.error "Illegal value for MK_${var}: ${MK_${var}}"
|
||||
.endif
|
||||
.endif # !defined(MK_${var})
|
||||
.endfor
|
||||
.undef __DEFAULT_YES_OPTIONS
|
||||
|
||||
|
|
@ -70,7 +74,11 @@ MK_${var}:= yes
|
|||
.else
|
||||
MK_${var}:= no
|
||||
.endif
|
||||
.else
|
||||
.if ${MK_${var}} != "yes" && ${MK_${var}} != "no"
|
||||
.error "Illegal value for MK_${var}: ${MK_${var}}"
|
||||
.endif
|
||||
.endif # !defined(MK_${var})
|
||||
.endfor
|
||||
.undef __DEFAULT_NO_OPTIONS
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue