Article View: linux.debian.kernel
Article #546Re: [PATCH v1 10/10] kconfig: Introduce OVERLAY= for make checkconfig
From: Nicolas Schier
Date: Wed, 11 Nov 2026 07:10
Date: Wed, 11 Nov 2026 07:10
82 lines
6775 bytes
6775 bytes
On Fri, Nov 06, 2026 at 10:19:22AM +0100, Ahmed S. Darwish wrote: > 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) Please add the optional overlay arguments right here: $(Q)$(checkconfig) check -r "$(RULES)" -c "$(KCONFIG_CONFIG)" $(addprefix -o , "$(OVERLAY)") <bike-shedding> ... or let kconfig-policy-checker read the 'OVERLAY' environment variable itself. </bike-shedding> -- Nicolas
Technical Details
Message-ID:
<NYaD0-bb7t-9@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomodReferences:
<NWoK5-aaez-7@gated-at.bofh.it> <NWoK6-aaez-35@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod From: Nicolas Schier <nsc@kernel.org> Newsgroups: linux.debian.kernel,linux.kernel Subject: Re: [PATCH v1 10/10] kconfig: Introduce OVERLAY= for make checkconfig Date: Wed, 11 Nov 2026 08:10:02 +0100 Message-ID: <NYaD0-bb7t-9@gated-at.bofh.it> References: <NWoK5-aaez-7@gated-at.bofh.it> <NWoK6-aaez-35@gated-at.bofh.it> X-Original-To: "Ahmed S. Darwish" <darwi@linutronix.de> X-Mailbox-Line: From debian-kernel-request@lists.debian.org Wed Nov 11 07:06:12 2026 Old-Return-Path: <nsc@kernel.org> X-Amavis-Spam-Status: No, score=-4.401 tagged_above=-10000 required=5.3 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -5.5 X-Greylist: delayed 395 seconds by postgrey-1.37 at bendel; Wed, 11 Nov 2026 06:48:44 UTC Mail-Followup-To: Nicolas Schier <nsc@kernel.org>, "Ahmed S. Darwish" <darwi@linutronix.de>, Clark Williams <clrkwllms@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Ingo Molnar <mingo@redhat.com>, Nathan Chancellor <nathan@kernel.org>, 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 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailing-List: <debian-kernel@lists.debian.org> archive/latest/158201 List-ID: <debian-kernel.lists.debian.org> List-URL: <https://lists.debian.org/debian-kernel/> List-Archive: https://lists.debian.org/msgid-search/avQNgXSWhODyc5Fc@derry.ads.avm.de Approved: robomod@news.nic.it Lines: 82 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Clark Williams <clrkwllms@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Ingo Molnar <mingo@redhat.com>, Nathan Chancellor <nathan@kernel.org>, 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 X-Original-Date: Wed, 11 Nov 2026 07:38:57 +0100 X-Original-Message-ID: <avQNgXSWhODyc5Fc@derry.ads.avm.de> X-Original-References: <20261106091922.7560-1-darwi@linutronix.de> <20261106091922.7560-11-darwi@linutronix.de>