Create MK_LOADER_VERBOSE and connect it to ELF_VERBOSE in the loader

code.

PR: 18498
Submitted by: mellon at pobox dot com
This commit is contained in:
Warner Losh 2019-01-07 05:49:27 +00:00
parent d91cc9dd63
commit f871c5d99d
3 changed files with 10 additions and 0 deletions

View File

@ -204,6 +204,7 @@ __DEFAULT_NO_OPTIONS = \
LIBSOFT \
LOADER_FIREWIRE \
LOADER_FORCE_LE \
LOADER_VERBOSE \
NAND \
OFED_EXTRA \
OPENLDAP \

View File

@ -155,6 +155,10 @@ vers.c: ${LDRSRC}/newvers.sh ${VERSION_FILE}
sh ${LDRSRC}/newvers.sh ${REPRO_FLAG} ${VERSION_FILE} \
${NEWVERSWHAT}
.if ${MK_LOADER_VERBOSE} != "no"
CFLAGS+= -DELF_VERBOSE
.endif
.if !empty(HELP_FILES)
HELP_FILES+= ${LDRSRC}/help.common

View File

@ -0,0 +1,5 @@
.\" $FreeBSD$
Set to build with extra verbose debugging in the loader.
May explode already nearly too large loader over the limit.
Use with care.