Skip to contentSkip to conversation

kbuild: dummy-tools: Add python3

PATCH In review Michal Suchanek 4 participants 7 messages Jan 21 – Feb 4 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: dummy-tools: Add 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")
---
 scripts/dummy-tools/python3 | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100755 scripts/dummy-tools/python3
scripts/dummy-tools/python3 new file +5 -0
new file mode 100755
index 000000000000..1f3ac6541dd3
@@ -0,0 +1,5 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-only
+#
+
+true
Signature · 1 line
2.51.0
#1 lore raw
Quoted 6 lines · Michal Suchanek

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")

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.

Quoted 19 lines
---
 scripts/dummy-tools/python3 | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100755 scripts/dummy-tools/python3
scripts/dummy-tools/python3 new file +5 -0
new file mode 100755
index 000000000000..1f3ac6541dd3
@@ -0,0 +1,5 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-only
+#
+
+true
Signature · 1 line
2.51.0
Acked-by
#2 lore raw
Quoted 9 lines · Nathan Chancellor
Quoted 6 lines · Michal Suchanek

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")
Quoted 7 lines

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

Quoted 20 lines
Quoted 20 lines
---
 scripts/dummy-tools/python3 | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100755 scripts/dummy-tools/python3
scripts/dummy-tools/python3 new file +5 -1
new file mode 100755
index 000000000000..1f3ac6541dd3
@@ -0,0 +1,5 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-only
+#
+
+true
--

2.51.0

#3 lore raw
In reply to Michal Suchanek
Quoted 5 lines · Michal Suchanek

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,

Signature · 1 line
Nathan Chancellor <[email protected]>
#4 lore raw
Quoted 23 lines · Nathan Chancellor
Quoted 5 lines · Michal Suchanek

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.

Quoted 3 lines

Best regards,
--
Nathan Chancellor <[email protected]>

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

Signature · 2 lines
Best Regards
Masahiro Yamada
#5 lore raw
Quoted 24 lines · Masahiro Yamada
Quoted 23 lines · Nathan Chancellor
Quoted 5 lines · Michal Suchanek

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.

Quoted 7 lines
Quoted 3 lines

Best regards,
--
Nathan Chancellor <[email protected]>

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

#6 lore raw
Quoted 34 lines · Nathan Chancellor
Quoted 24 lines · Masahiro Yamada
Quoted 23 lines · Nathan Chancellor
Quoted 5 lines · Michal Suchanek

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.

Quoted 7 lines
Quoted 3 lines

Best regards,
--
Nathan Chancellor <[email protected]>

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

Quoted 8 lines

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.

Quoted 7 lines
  $ 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

Signature · 2 lines
Best Regards
Masahiro Yamada