diff options
author | Warner Losh <imp@FreeBSD.org> | 2019-01-07 05:49:27 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2019-01-07 05:49:27 +0000 |
commit | f871c5d99d1efb11136a7f39b640e25afa971df9 (patch) | |
tree | 6c7801e26cb49b90625fde8d2d35f2dfa3a49146 | |
parent | d91cc9dd63f4a646eb50781733539b680bdc0d15 (diff) | |
download | src-f871c5d99d1efb11136a7f39b640e25afa971df9.tar.gz src-f871c5d99d1efb11136a7f39b640e25afa971df9.zip |
Create MK_LOADER_VERBOSE and connect it to ELF_VERBOSE in the loader
code.
PR: 18498
Submitted by: mellon at pobox dot com
Notes
Notes:
svn path=/head/; revision=342840
-rw-r--r-- | share/mk/src.opts.mk | 1 | ||||
-rw-r--r-- | stand/loader.mk | 4 | ||||
-rw-r--r-- | tools/build/options/WITH_LOADER_VERBOSE | 5 |
3 files changed, 10 insertions, 0 deletions
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk index 54fcdff9d83f..7aa53f35e5f4 100644 --- a/share/mk/src.opts.mk +++ b/share/mk/src.opts.mk @@ -204,6 +204,7 @@ __DEFAULT_NO_OPTIONS = \ LIBSOFT \ LOADER_FIREWIRE \ LOADER_FORCE_LE \ + LOADER_VERBOSE \ NAND \ OFED_EXTRA \ OPENLDAP \ diff --git a/stand/loader.mk b/stand/loader.mk index f0d6859764ea..e5149191fb47 100644 --- a/stand/loader.mk +++ b/stand/loader.mk @@ -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 diff --git a/tools/build/options/WITH_LOADER_VERBOSE b/tools/build/options/WITH_LOADER_VERBOSE new file mode 100644 index 000000000000..a859c7a1952c --- /dev/null +++ b/tools/build/options/WITH_LOADER_VERBOSE @@ -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. + |