git: 9b135747a326 - main - kern.pre.mk: allow to use and customize elfdump during kernel build

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 06 Dec 2021 18:48:17 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=9b135747a326080f0ffc96ddc3e0d7a4fbc1dfe1

commit 9b135747a326080f0ffc96ddc3e0d7a4fbc1dfe1
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-12-01 00:51:01 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-12-06 18:46:49 +0000

    kern.pre.mk: allow to use and customize elfdump during kernel build
    
    Reviewed by:    emaste
    Discussed with: jrtc27
    Tested by:      pho
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D32960
---
 Makefile.inc1        | 2 ++
 sys/conf/kern.pre.mk | 1 +
 2 files changed, 3 insertions(+)

diff --git a/Makefile.inc1 b/Makefile.inc1
index f0d0483e41d4..828de1bbbd84 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2630,6 +2630,7 @@ _dtrace_tools= cddl/lib/libctf cddl/lib/libspl cddl/usr.bin/ctfconvert \
 _elftctools=	lib/libelftc \
 		lib/libpe \
 		usr.bin/elfctl \
+		usr.bin/elfdump \
 		usr.bin/objcopy \
 		usr.bin/nm \
 		usr.bin/size \
@@ -2644,6 +2645,7 @@ _elftctools+=	usr.bin/addr2line
 _elftctools=	lib/libelftc \
 		lib/libpe \
 		usr.bin/elfctl \
+		usr.bin/elfdump \
 		usr.bin/objcopy
 .endif
 
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk
index 056963adcb2d..f947a9841a0f 100644
--- a/sys/conf/kern.pre.mk
+++ b/sys/conf/kern.pre.mk
@@ -46,6 +46,7 @@ M=		${MACHINE}
 
 AWK?=		awk
 CP?=		cp
+ELFDUMP?=	elfdump
 NM?=		nm
 OBJCOPY?=	objcopy
 SIZE?=		size