Date: Mon, 7 Jan 2019 05:49:27 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r342840 - in head: share/mk stand tools/build/options Message-ID: <201901070549.x075nRIG080118@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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. +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901070549.x075nRIG080118>