Article View: linux.kernel
Article #8[PATCH v1 10/10] kconfig: Introduce OVERLAY= for make checkconfig
From: Ahmed S. Darwish
Date: Fri, 06 Nov 2026 09:50
Date: Fri, 06 Nov 2026 09:50
73 lines
5173 bytes
5173 bytes
For the kconfig checkconfig target, allow passing a rules overlay file through an OVERLAY= parameter. This is mostly intended for distribution kernel packaging scripts, CI systems, and board support packages. Document this parameter at the kernel's administration guide. Note, the detailed overlay semantics are already explained at Documentation/tools/kconfig_checker.rst Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de> --- Documentation/admin-guide/README.rst | 7 ++++++- scripts/kconfig/Makefile | 6 ++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Documentation/admin-guide/README.rst b/Documentation/admin-guide/README.rst index 77ffe4dcb85b..b62689bcda6b 100644 --- a/Documentation/admin-guide/README.rst +++ b/Documentation/admin-guide/README.rst @@ -263,7 +263,7 @@ The kconfig build system can validate the generated kernel ``.config`` against a selected rules profile. Running ``make checkconfig`` prints usage information and the available profiles:: - Usage: make RULES=<profile> checkconfig + Usage: make RULES=<profile> [OVERLAY=<overlay>] checkconfig Available RULES: preempt_rt For example, to validate the current configuration against the PREEMPT_RT @@ -278,6 +278,11 @@ selected rules profile. Each diagnostic includes a severity, such as Apply the reported changes as needed and run ``make checkconfig`` again, against the same rules, until no relevant diagnostics remain. +The ``OVERLAY=`` parameter specifies an overlay file whose rules overrides +the built-in mainline profile selected by ``RULES=``. It is intended for +distributions kernel packaging scripts, CI systems, and board support +packages. + For more information, see Documentation/tools/kconfig_checker.rst Compiling the kernel diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index d67a23730259..faaa8c16ab03 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -126,6 +126,8 @@ testconfig: $(obj)/conf clean-files += tests/.cache checkconfig := $(PYTHON3) -B $(srctree)/tools/kconfig-checker/check.py +checkconfig_overlay = $(if $(OVERLAY),-o "$(OVERLAY)") + list_checkconfig_rules = \ echo -n >&2 "Available RULES: "; \ $(checkconfig) list-rules >&2; \ @@ -134,7 +136,7 @@ list_checkconfig_rules = \ PHONY += checkconfig checkconfig: $(Q)if [ -z "$(RULES)" ]; then \ - echo >&2 "Usage: make RULES=<profile> checkconfig"; \ + echo >&2 "Usage: make RULES=<profile> [OVERLAY=<overlay>] checkconfig"; \ $(list_checkconfig_rules); \ exit 2; \ fi @@ -143,7 +145,7 @@ checkconfig: $(list_checkconfig_rules); \ exit 2; \ fi - $(Q)$(checkconfig) check -r "$(RULES)" -c "$(KCONFIG_CONFIG)" + $(Q)$(checkconfig) check -r "$(RULES)" -c "$(KCONFIG_CONFIG)" $(checkconfig_overlay) # Help text used by make help help: -- 2.56.0
Technical Details
Message-ID:
<NWoK6-aaez-35@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomodReferences:
<NWoK5-aaez-7@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod From: "Ahmed S. Darwish" <darwi@linutronix.de> Newsgroups: linux.debian.kernel,linux.kernel Subject: [PATCH v1 10/10] kconfig: Introduce OVERLAY= for make checkconfig Date: Fri, 06 Nov 2026 10:50:02 +0100 Message-ID: <NWoK6-aaez-35@gated-at.bofh.it> References: <NWoK5-aaez-7@gated-at.bofh.it> X-Mailbox-Line: From debian-kernel-request@lists.debian.org Fri Nov 6 09:42:52 2026 Old-Return-Path: <darwi@linutronix.de> X-Amavis-Spam-Status: No, score=-2.8 tagged_above=-10000 required=5.3 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailing-List: <debian-kernel@lists.debian.org> archive/latest/158073 List-ID: <debian-kernel.lists.debian.org> List-URL: <https://lists.debian.org/debian-kernel/> List-Archive: https://lists.debian.org/msgid-search/20261106091922.7560-11-darwi@linutronix.de Approved: robomod@news.nic.it Lines: 73 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>, Frederic Weisbecker <frederic@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jonathan Corbet <corbet@lwn.net>, John Ogness <john.ogness@linutronix.de>, Derek Barbosa <debarbos@redhat.com>, Zbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>, Daan De Meyer <daan.j.demeyer@gmail.com>, Luca Boccassi <luca.boccassi@gmail.com>, linux-rt-devel@lists.linux.dev, debian-kernel@lists.debian.org, linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, "Ahmed S. Darwish" <darwi@linutronix.de> X-Original-Date: Fri, 6 Nov 2026 10:19:22 +0100 X-Original-Message-ID: <20261106091922.7560-11-darwi@linutronix.de> X-Original-References: <20261106091922.7560-1-darwi@linutronix.de>