git: a1bf1a1a7513 - main - showconfig - ignore options that do not start with A-Z
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 23 Apr 2023 23:52:33 UTC
The branch main has been updated by sjg: URL: https://cgit.FreeBSD.org/src/commit/?id=a1bf1a1a75131196940ac3ca8a3dd2a82e84ce63 commit a1bf1a1a75131196940ac3ca8a3dd2a82e84ce63 Author: Simon J. Gerraty <sjg@FreeBSD.org> AuthorDate: 2023-04-23 23:52:12 +0000 Commit: Simon J. Gerraty <sjg@FreeBSD.org> CommitDate: 2023-04-23 23:52:12 +0000 showconfig - ignore options that do not start with A-Z When building on various hosts it can be handy to create pseudo options like MK_host_egacy - building on a host that needs libegacy. Such options should be ignored by showconfig Reviewed by: emaste --- Makefile.inc1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 60956d58fd9b..d059d5dd9fea 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -3405,9 +3405,11 @@ check-old: check-old-files check-old-libs check-old-dirs .PHONY # # showconfig - show build configuration. # +# ignore lower case knobs (not for use with WITH*) +# 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_ | sort -u + ${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 .if !empty(KRNLOBJDIR) && !empty(KERNCONF) DTBOUTPUTPATH= ${KRNLOBJDIR}/${KERNCONF}/