svn commit: r342840 - in head: share/mk stand tools/build/options
Warner Losh
imp at FreeBSD.org
Mon Jan 7 05:49:28 UTC 2019
Author: imp
Date: Mon Jan 7 05:49:27 2019
New Revision: 342840
URL: https://svnweb.freebsd.org/changeset/base/342840
Log:
Create MK_LOADER_VERBOSE and connect it to ELF_VERBOSE in the loader
code.
PR: 18498
Submitted by: mellon at pobox dot com
Added:
head/tools/build/options/WITH_LOADER_VERBOSE (contents, props changed)
Modified:
head/share/mk/src.opts.mk
head/stand/loader.mk
Modified: head/share/mk/src.opts.mk
==============================================================================
--- head/share/mk/src.opts.mk Mon Jan 7 05:31:40 2019 (r342839)
+++ head/share/mk/src.opts.mk Mon Jan 7 05:49:27 2019 (r342840)
@@ -204,6 +204,7 @@ __DEFAULT_NO_OPTIONS = \
LIBSOFT \
LOADER_FIREWIRE \
LOADER_FORCE_LE \
+ LOADER_VERBOSE \
NAND \
OFED_EXTRA \
OPENLDAP \
Modified: head/stand/loader.mk
==============================================================================
--- head/stand/loader.mk Mon Jan 7 05:31:40 2019 (r342839)
+++ head/stand/loader.mk Mon Jan 7 05:49:27 2019 (r342840)
@@ -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
Added: head/tools/build/options/WITH_LOADER_VERBOSE
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/tools/build/options/WITH_LOADER_VERBOSE Mon Jan 7 05:49:27 2019 (r342840)
@@ -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.
+
More information about the svn-src-all
mailing list