public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kbuild: dummy-tools: Add python3
@ 2026-01-21 10:57 Michal Suchanek
  2026-01-21 23:16 ` Nathan Chancellor
  2026-01-30  0:17 ` Nathan Chancellor
  0 siblings, 2 replies; 7+ messages in thread
From: Michal Suchanek @ 2026-01-21 10:57 UTC (permalink / raw)
  To: linux-kbuild
  Cc: Michal Suchanek, Nathan Chancellor, Nicolas Schier, Rob Clark,
	Dmitry Baryshkov, Abhinav Kumar, linux-kernel

DRM_MSM_VALIDATE_XML depends on a python feature. Add a dummy python
interpreter to make it possible to configure this option with dummy
tools.

Fixes: b587f413ca47 ("drm/msm/gen_header: allow skipping the validation")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
---
 scripts/dummy-tools/python3 | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100755 scripts/dummy-tools/python3

diff --git a/scripts/dummy-tools/python3 b/scripts/dummy-tools/python3
new file mode 100755
index 000000000000..1f3ac6541dd3
--- /dev/null
+++ b/scripts/dummy-tools/python3
@@ -0,0 +1,5 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-only
+#
+
+true
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] kbuild: dummy-tools: Add python3
  2026-01-21 10:57 [PATCH] kbuild: dummy-tools: Add python3 Michal Suchanek
@ 2026-01-21 23:16 ` Nathan Chancellor
  2026-01-22  3:31   ` Rob Clark
  2026-01-30  0:17 ` Nathan Chancellor
  1 sibling, 1 reply; 7+ messages in thread
From: Nathan Chancellor @ 2026-01-21 23:16 UTC (permalink / raw)
  To: Michal Suchanek
  Cc: linux-kbuild, Nicolas Schier, Rob Clark, Dmitry Baryshkov,
	Abhinav Kumar, linux-kernel

On Wed, Jan 21, 2026 at 11:57:57AM +0100, Michal Suchanek wrote:
> DRM_MSM_VALIDATE_XML depends on a python feature. Add a dummy python
> interpreter to make it possible to configure this option with dummy
> tools.
> 
> Fixes: b587f413ca47 ("drm/msm/gen_header: allow skipping the validation")
> Signed-off-by: Michal Suchanek <msuchanek@suse.de>

Sure, this seems reasonable, as Python may become more used for various
parts of the kernel over time.

I was thinking this could qualify as a fix for Nicolas to take now but
the help text of CONFIG_DRM_MSM_VALIDATE_XML mentions this option is
mostly targeted at drm/msm developers, so we can probably just take this
via kbuild-next.

> ---
>  scripts/dummy-tools/python3 | 5 +++++
>  1 file changed, 5 insertions(+)
>  create mode 100755 scripts/dummy-tools/python3
> 
> diff --git a/scripts/dummy-tools/python3 b/scripts/dummy-tools/python3
> new file mode 100755
> index 000000000000..1f3ac6541dd3
> --- /dev/null
> +++ b/scripts/dummy-tools/python3
> @@ -0,0 +1,5 @@
> +#!/bin/sh
> +# SPDX-License-Identifier: GPL-2.0-only
> +#
> +
> +true
> -- 
> 2.51.0
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] kbuild: dummy-tools: Add python3
  2026-01-21 23:16 ` Nathan Chancellor
@ 2026-01-22  3:31   ` Rob Clark
  0 siblings, 0 replies; 7+ messages in thread
From: Rob Clark @ 2026-01-22  3:31 UTC (permalink / raw)
  To: Nathan Chancellor
  Cc: Michal Suchanek, linux-kbuild, Nicolas Schier, Dmitry Baryshkov,
	Abhinav Kumar, linux-kernel

On Wed, Jan 21, 2026 at 3:16 PM Nathan Chancellor <nathan@kernel.org> wrote:
>
> On Wed, Jan 21, 2026 at 11:57:57AM +0100, Michal Suchanek wrote:
> > DRM_MSM_VALIDATE_XML depends on a python feature. Add a dummy python
> > interpreter to make it possible to configure this option with dummy
> > tools.
> >
> > Fixes: b587f413ca47 ("drm/msm/gen_header: allow skipping the validation")
> > Signed-off-by: Michal Suchanek <msuchanek@suse.de>
>
> Sure, this seems reasonable, as Python may become more used for various
> parts of the kernel over time.
>
> I was thinking this could qualify as a fix for Nicolas to take now but
> the help text of CONFIG_DRM_MSM_VALIDATE_XML mentions this option is
> mostly targeted at drm/msm developers, so we can probably just take this
> via kbuild-next.

yes, this is a developers option

Acked-by: Rob Clark <robin.clark@oss.qualcomm.com>

>
> > ---
> >  scripts/dummy-tools/python3 | 5 +++++
> >  1 file changed, 5 insertions(+)
> >  create mode 100755 scripts/dummy-tools/python3
> >
> > diff --git a/scripts/dummy-tools/python3 b/scripts/dummy-tools/python3
> > new file mode 100755
> > index 000000000000..1f3ac6541dd3
> > --- /dev/null
> > +++ b/scripts/dummy-tools/python3
> > @@ -0,0 +1,5 @@
> > +#!/bin/sh
> > +# SPDX-License-Identifier: GPL-2.0-only
> > +#
> > +
> > +true
> > --
> > 2.51.0
> >

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] kbuild: dummy-tools: Add python3
  2026-01-21 10:57 [PATCH] kbuild: dummy-tools: Add python3 Michal Suchanek
  2026-01-21 23:16 ` Nathan Chancellor
@ 2026-01-30  0:17 ` Nathan Chancellor
  2026-02-04  7:10   ` Masahiro Yamada
  1 sibling, 1 reply; 7+ messages in thread
From: Nathan Chancellor @ 2026-01-30  0:17 UTC (permalink / raw)
  To: linux-kbuild, Michal Suchanek
  Cc: Nathan Chancellor, Nicolas Schier, Rob Clark, Dmitry Baryshkov,
	Abhinav Kumar, linux-kernel

On Wed, 21 Jan 2026 11:57:57 +0100, Michal Suchanek wrote:
> DRM_MSM_VALIDATE_XML depends on a python feature. Add a dummy python
> interpreter to make it possible to configure this option with dummy
> tools.
> 
> 

Applied to

  https://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux.git kbuild-next

Thanks!

[1/1] kbuild: dummy-tools: Add python3
      https://git.kernel.org/kbuild/c/76c73cfde7988

Please look out for regression or issue reports or other follow up
comments, as they may result in the patch/series getting dropped or
reverted. Patches applied to an "unstable" branch are accepted pending
wider testing in -next and any post-commit review; they will generally
be moved to the main branch in a week if no issues are found.

Best regards,
-- 
Nathan Chancellor <nathan@kernel.org>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] kbuild: dummy-tools: Add python3
  2026-01-30  0:17 ` Nathan Chancellor
@ 2026-02-04  7:10   ` Masahiro Yamada
  2026-02-04  7:45     ` Nathan Chancellor
  0 siblings, 1 reply; 7+ messages in thread
From: Masahiro Yamada @ 2026-02-04  7:10 UTC (permalink / raw)
  To: Nathan Chancellor
  Cc: linux-kbuild, Michal Suchanek, Nicolas Schier, Rob Clark,
	Dmitry Baryshkov, Abhinav Kumar, linux-kernel

On Fri, Jan 30, 2026 at 9:17 AM Nathan Chancellor <nathan@kernel.org> wrote:
>
> On Wed, 21 Jan 2026 11:57:57 +0100, Michal Suchanek wrote:
> > DRM_MSM_VALIDATE_XML depends on a python feature. Add a dummy python
> > interpreter to make it possible to configure this option with dummy
> > tools.
> >
> >
>
> Applied to
>
>   https://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux.git kbuild-next
>
> Thanks!
>
> [1/1] kbuild: dummy-tools: Add python3
>       https://git.kernel.org/kbuild/c/76c73cfde7988
>
> Please look out for regression or issue reports or other follow up
> comments, as they may result in the patch/series getting dropped or
> reverted. Patches applied to an "unstable" branch are accepted pending
> wider testing in -next and any post-commit review; they will generally
> be moved to the main branch in a week if no issues are found.
>
> Best regards,
> --
> Nathan Chancellor <nathan@kernel.org>


This was unneeded because we can pass PYTHON3=true
from the command line?


-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] kbuild: dummy-tools: Add python3
  2026-02-04  7:10   ` Masahiro Yamada
@ 2026-02-04  7:45     ` Nathan Chancellor
  2026-02-04  8:16       ` Masahiro Yamada
  0 siblings, 1 reply; 7+ messages in thread
From: Nathan Chancellor @ 2026-02-04  7:45 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: linux-kbuild, Michal Suchanek, Nicolas Schier, Rob Clark,
	Dmitry Baryshkov, Abhinav Kumar, linux-kernel

On Wed, Feb 04, 2026 at 04:10:24PM +0900, Masahiro Yamada wrote:
> On Fri, Jan 30, 2026 at 9:17 AM Nathan Chancellor <nathan@kernel.org> wrote:
> >
> > On Wed, 21 Jan 2026 11:57:57 +0100, Michal Suchanek wrote:
> > > DRM_MSM_VALIDATE_XML depends on a python feature. Add a dummy python
> > > interpreter to make it possible to configure this option with dummy
> > > tools.
> > >
> > >
> >
> > Applied to
> >
> >   https://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux.git kbuild-next
> >
> > Thanks!
> >
> > [1/1] kbuild: dummy-tools: Add python3
> >       https://git.kernel.org/kbuild/c/76c73cfde7988
> >
> > Please look out for regression or issue reports or other follow up
> > comments, as they may result in the patch/series getting dropped or
> > reverted. Patches applied to an "unstable" branch are accepted pending
> > wider testing in -next and any post-commit review; they will generally
> > be moved to the main branch in a week if no issues are found.
> >
> > Best regards,
> > --
> > Nathan Chancellor <nathan@kernel.org>
> 
> 
> This was unneeded because we can pass PYTHON3=true
> from the command line?

Hmmm yeah, I guess that is a fair point, I had not considered that
alternative. I had figured that some folks may add scripts/dummy-tools
to PATH like

  $ PATH=$PWD/scripts/dummy-tools:$PATH make ...

to have all relevant tools be used automatically from their default
values than having to specify

  $ make CROSS_COMPILE=scripts/dummy-tools/ PAHOLE=scripts/dummy-tools/pahole PYTHON3=true

or whatever (at least, that is probably what I would do if I was using
this).

Cheers,
Nathan

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] kbuild: dummy-tools: Add python3
  2026-02-04  7:45     ` Nathan Chancellor
@ 2026-02-04  8:16       ` Masahiro Yamada
  0 siblings, 0 replies; 7+ messages in thread
From: Masahiro Yamada @ 2026-02-04  8:16 UTC (permalink / raw)
  To: Nathan Chancellor
  Cc: linux-kbuild, Michal Suchanek, Nicolas Schier, Rob Clark,
	Dmitry Baryshkov, Abhinav Kumar, linux-kernel

On Wed, Feb 4, 2026 at 4:46 PM Nathan Chancellor <nathan@kernel.org> wrote:
>
> On Wed, Feb 04, 2026 at 04:10:24PM +0900, Masahiro Yamada wrote:
> > On Fri, Jan 30, 2026 at 9:17 AM Nathan Chancellor <nathan@kernel.org> wrote:
> > >
> > > On Wed, 21 Jan 2026 11:57:57 +0100, Michal Suchanek wrote:
> > > > DRM_MSM_VALIDATE_XML depends on a python feature. Add a dummy python
> > > > interpreter to make it possible to configure this option with dummy
> > > > tools.
> > > >
> > > >
> > >
> > > Applied to
> > >
> > >   https://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux.git kbuild-next
> > >
> > > Thanks!
> > >
> > > [1/1] kbuild: dummy-tools: Add python3
> > >       https://git.kernel.org/kbuild/c/76c73cfde7988
> > >
> > > Please look out for regression or issue reports or other follow up
> > > comments, as they may result in the patch/series getting dropped or
> > > reverted. Patches applied to an "unstable" branch are accepted pending
> > > wider testing in -next and any post-commit review; they will generally
> > > be moved to the main branch in a week if no issues are found.
> > >
> > > Best regards,
> > > --
> > > Nathan Chancellor <nathan@kernel.org>
> >
> >
> > This was unneeded because we can pass PYTHON3=true
> > from the command line?
>
> Hmmm yeah, I guess that is a fair point, I had not considered that
> alternative. I had figured that some folks may add scripts/dummy-tools
> to PATH like
>
>   $ PATH=$PWD/scripts/dummy-tools:$PATH make ...
>
> to have all relevant tools be used automatically from their default
> values than having to specify

Yeah, this seems to be a valid motivation for this patch.
Thanks.

>   $ make CROSS_COMPILE=scripts/dummy-tools/ PAHOLE=scripts/dummy-tools/pahole PYTHON3=true
>
> or whatever (at least, that is probably what I would do if I was using
> this).
>
> Cheers,
> Nathan



-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-02-04  8:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-21 10:57 [PATCH] kbuild: dummy-tools: Add python3 Michal Suchanek
2026-01-21 23:16 ` Nathan Chancellor
2026-01-22  3:31   ` Rob Clark
2026-01-30  0:17 ` Nathan Chancellor
2026-02-04  7:10   ` Masahiro Yamada
2026-02-04  7:45     ` Nathan Chancellor
2026-02-04  8:16       ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox