config.mk: Add MK_VIMAGE knob

Default to VIMAGE as yes.
Add VIMAGE to __DEFAULT_DEPENDENT_OPTIONS (to define VIMAGE_SUPPORT)

Only output VIMAGE to opt_global.h when VIMAGE support is wanted.

Obtained from:	Juniper Networks, Inc.
Differential Revision:	https://reviews.freebsd.org/D39636
This commit is contained in:
Stephen J. Kiernan
2024-04-09 13:04:24 -04:00
parent 841cf52595
commit 22ca6db50f
3 changed files with 7 additions and 1 deletions
+2
View File
@@ -184,6 +184,7 @@ __DEFAULT_YES_OPTIONS = \
USB \
UTMPX \
VI \
VIMAGE \
VT \
WIRELESS \
WPA_SUPPLICANT_EAPOL \
@@ -249,6 +250,7 @@ __LIBC_MALLOC_DEFAULT= jemalloc
NETGRAPH \
PAM \
TESTS \
VIMAGE \
WIRELESS
__DEFAULT_DEPENDENT_OPTIONS+= ${var}_SUPPORT/${var}
.endfor