🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel
Article #47

Re: [PATCH v1 10/10] kconfig: Introduce OVERLAY= for make checkconfig

#47
From: Nicolas Schier
Date: Mon, 16 Nov 2026 16:10
51 lines
5126 bytes
On Thu, Nov 12, 2026 at 10:31:22PM +0100, Ahmed S. Darwish wrote:
> Hi Nicolas,
> 
> On Thu, 12 Nov 2026, Ahmed S. Darwish wrote:
> >
> > On Wed, 11 Nov 2026, Nicolas Schier wrote:
> > >
> > > Please add the optional overlay arguments right here:
> > >
> > > 	$(Q)$(checkconfig) check -r "$(RULES)" -c "$(KCONFIG_CONFIG)" $(addprefix -o , "$(OVERLAY)")
> > >
> >
> > Sure, will do.
> >
> 
> I've just tried the suggested addprefix function:
> 
>     $ make V=1 RULES=preempt_rt checkconfig
>     ...
>     python3 -B ./tools/kconfig-check/check.py check -c ".config" -p "preempt_rt" -o ""
> 
> Notice the breakage due to -o "".
> 
> Unquoting OVERLAY will make it work:
> 
>     $(Q)$(checkconfig) check -r "$(RULES)" -c "$(KCONFIG_CONFIG)" $(addprefix -o , $(OVERLAY))
> 
> But it breaks the consistent pattern of quoting all passed variables.
> 
> So, can we keep it as it was originally done?
> 
> Namely:
> 
>     checkconfig_overlay = $(if $(OVERLAY),-o "$(OVERLAY)")
>     ...
> 
>     checkconfig:
> 	...
> 	$(Q)$(checkconfig) check -r "$(RULES)" -c "$(KCONFIG_CONFIG)" $(checkconfig_overlay)

well, ok.

I still do not think that a top-level make target is a good idea.  Any
important extension to checkconfig's arguments needs to be properly
mapped, and as you won't have the 'checkconfig' target in the middle of
a series of other targets, I still don't see a good reason for
implementing a top-level Makefile integration.  Thus, I still recommend
to skip the top-level Makefile integration.

-- 
Nicolas
Technical Details
Message-ID: <O07rk-chw5-11@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.nntp4.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NWoK5-aaez-7@gated-at.bofh.it> <NWoK6-aaez-35@gated-at.bofh.it> <NYaD0-bb7t-9@gated-at.bofh.it> <NYBMS-bqmY-5@gated-at.bofh.it> <NYKQ9-bv9N-3@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.nntp4.net!news.samoylyk.net!gothmog.csi.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: Mon, 16 Nov 2026 17:10:02 +0100
Message-ID: <O07rk-chw5-11@gated-at.bofh.it>
References: <NWoK5-aaez-7@gated-at.bofh.it> <NWoK6-aaez-35@gated-at.bofh.it> <NYaD0-bb7t-9@gated-at.bofh.it> <NYBMS-bqmY-5@gated-at.bofh.it> <NYKQ9-bv9N-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-kernel-request@lists.debian.org  Mon Nov 16 16:09:08 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: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .kernel. - helo: .sea.source.kernel. - helo-domain: .kernel.)  FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5
Mail-Followup-To: "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/158392
List-ID: <debian-kernel.lists.debian.org>
List-URL: <https://lists.debian.org/debian-kernel/>
List-Archive: https://lists.debian.org/msgid-search/avslrMXA7QkW_X8W@levanger
Approved: robomod@news.nic.it
Lines: 51
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: Mon, 16 Nov 2026 16:47:56 +0100
X-Original-Message-ID: <avslrMXA7QkW_X8W@levanger>
X-Original-References: <20261106091922.7560-1-darwi@linutronix.de>
 <20261106091922.7560-11-darwi@linutronix.de>
 <avQNgXSWhODyc5Fc@derry.ads.avm.de>
 <avWmzbh3rp7TawCn@lx-t490>
 <avYwKuCrHOHV_gOw@lx-t490>