scripts/dummy-tools/python3 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 scripts/dummy-tools/python3
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
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>
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
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
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
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
>
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
> >
© 2016 - 2026 Red Hat, Inc.