🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.kernel
Article #545

Re: [PATCH v1 04/10] kconfig: Introduce checkconfig target

#545
From: Nicolas Schier
Date: Wed, 11 Nov 2026 07:10
40 lines
5340 bytes
On Mon, Nov 09, 2026 at 02:18:49PM +0100, Ahmed S. Darwish wrote:
> On Sun, 08 Nov 2026, Nathan Chancellor wrote:
> >
> > On Sun, Nov 08, 2026 at 06:59:45PM +0000, Julian Braha wrote:
> > >
> > > I think this tool may belong in scripts/ due to the kbuild integration,
> > > as was mentioned in the past on another tool review:
> > >
> > > https://lore.kernel.org/linux-kbuild/20260428183101.GA3304253@ax162/
> >
> > Yeah, while I would prefer for the script to live in scripts/ due to
> > being called from Kbuild, I am not sure if the rules/schemas belong
> > there?
> >
> > It might be better to keep everything in tools/ for that reason,
> > especially if this may be called externally, but I am open to other
> > thoughts.
> >
> 
> I would prefer to keep it under tools/ as well.  Because of the PREEMPT_RT
> policy, and the possible extra policies from ELISA, etc.
> 
> This is why one of the development rules at the top of the Python script,
> at patch 03/10, is:
> 
>   The tool must not depend on being run inside the kernel source tree.
>   This simplifies invocation, testing and possible future packaging.

Then, please move the argument checking from Makefile to the script
itself.  Handling wrong arguments is good native feature for the script.

As far as I have seen when skimming through the kconfig policy checker
code, it does not use any Kbuild variables.  So, if it is being placed
below tools/ and does not use Kbuild at all, and is expected to be run
w/o Linux tree context at all: why do we need an additional top-level
Makefile target for it at all (alongside of
'make tools/kconfig-policy-checker')?

-- 
Nicolas
Technical Details
Message-ID: <NYaD0-bb7t-7@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!robomod
References: <NWoK5-aaez-7@gated-at.bofh.it> <NWoK5-aaez-5@gated-at.bofh.it> <NXm3v-aILv-5@gated-at.bofh.it> <NXm3v-aILv-3@gated-at.bofh.it> <NXxLj-aP1f-3@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 04/10] kconfig: Introduce checkconfig target
Date: Wed, 11 Nov 2026 08:10:02 +0100
Message-ID: <NYaD0-bb7t-7@gated-at.bofh.it>
References: <NWoK5-aaez-7@gated-at.bofh.it> <NWoK5-aaez-5@gated-at.bofh.it> <NXm3v-aILv-5@gated-at.bofh.it> <NXm3v-aILv-3@gated-at.bofh.it> <NXxLj-aP1f-3@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:24 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 389 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>,
	Nathan Chancellor <nathan@kernel.org>,
	Julian Braha <julianbraha@gmail.com>,
	Clark Williams <clrkwllms@kernel.org>,
	Steven Rostedt <rostedt@goodmis.org>,
	Ingo Molnar <mingo@redhat.com>,
	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/158202
List-ID: <debian-kernel.lists.debian.org>
List-URL: <https://lists.debian.org/debian-kernel/>
List-Archive: https://lists.debian.org/msgid-search/avQNfFbeoMImmtre@derry.ads.avm.de
Approved: robomod@news.nic.it
Lines: 40
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: Nathan Chancellor <nathan@kernel.org>,
	Julian Braha <julianbraha@gmail.com>,
	Clark Williams <clrkwllms@kernel.org>,
	Steven Rostedt <rostedt@goodmis.org>,
	Ingo Molnar <mingo@redhat.com>,
	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:52 +0100
X-Original-Message-ID: <avQNfFbeoMImmtre@derry.ads.avm.de>
X-Original-References: <20261106091922.7560-1-darwi@linutronix.de>
 <20261106091922.7560-5-darwi@linutronix.de>
 <3dd2bb0d-8486-4630-b496-e92e4ac37c29@gmail.com>
 <20261109003909.GB3429615@ax162>
 <avHIOS9NHwCCMITd@lx-t490>