git: bd016ad227b0 - main - Teach make showconfig about group options

From: Brooks Davis <brooks_at_FreeBSD.org>
Date: Fri, 01 Sep 2023 16:54:55 UTC
The branch main has been updated by brooks:

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

commit bd016ad227b06830ac24a8f9035b904a138a5d3e
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2023-09-01 16:42:27 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2023-09-01 16:54:23 +0000

    Teach make showconfig about group options
    
    Output OPT_ variables in addition to MK_ variables.
    
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D41682
---
 Makefile.inc1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.inc1 b/Makefile.inc1
index f740cc5abcca..7c6981f0f890 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -3470,7 +3470,7 @@ check-old: check-old-files check-old-libs check-old-dirs .PHONY
 #
 showconfig: .PHONY
 	@(${MAKE} -n -f ${.CURDIR}/sys/conf/kern.opts.mk -V dummy -dg1 UPDATE_DEPENDFILE=no NO_OBJ=yes MACHINE=${TARGET} MACHINE_ARCH=${TARGET_ARCH}; \
-	  ${MAKE} -n -f ${.CURDIR}/share/mk/src.opts.mk -V dummy -dg1 UPDATE_DEPENDFILE=no NO_OBJ=yes) 2>&1 | grep '^MK_[A-Z]' | sort -u
+	  ${MAKE} -n -f ${.CURDIR}/share/mk/src.opts.mk -V dummy -dg1 UPDATE_DEPENDFILE=no NO_OBJ=yes) 2>&1 | grep -E '^(MK|OPT)_[A-Z]' | sort -u
 
 .if !empty(KRNLOBJDIR) && !empty(KERNCONF)
 DTBOUTPUTPATH= ${KRNLOBJDIR}/${KERNCONF}/