kbuild: dummy-tools: Add python3
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.
--- 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
@@ -0,0 +1,5 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0-only +# + +true
Signature · 1 line
2.51.0
Nathan Chancellor
maintainerQuoted 6 lines · Michal Suchanek
DRM_MSM_VALIDATE_XMLdepends 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 <[email protected]>
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/python3scripts/dummy-tools/python3 new file +5
-0@@ -0,0 +1,5 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0-only +# + +trueSignature · 1 line
2.51.0
Rob Clark
Acked-byQuoted 9 lines · Nathan Chancellor
Quoted 6 lines · Michal Suchanek
DRM_MSM_VALIDATE_XMLdepends 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 <[email protected]>
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_XMLmentions 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/python3scripts/dummy-tools/python3 new file +5
-1@@ -0,0 +1,5 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0-only +# + +true --2.51.0
Nathan Chancellor
maintainerQuoted 5 lines · Michal Suchanek
DRM_MSM_VALIDATE_XMLdepends 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]>
Quoted 23 lines · Nathan Chancellor
Quoted 5 lines · Michal Suchanek
DRM_MSM_VALIDATE_XMLdepends 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/76c73cfde7988Please 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
Nathan Chancellor
maintainerQuoted 24 lines · Masahiro Yamada
Quoted 23 lines · Nathan Chancellor
Quoted 5 lines · Michal Suchanek
DRM_MSM_VALIDATE_XMLdepends 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/76c73cfde7988Please 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
Quoted 34 lines · Nathan Chancellor
Quoted 24 lines · Masahiro Yamada
Quoted 23 lines · Nathan Chancellor
Quoted 5 lines · Michal Suchanek
DRM_MSM_VALIDATE_XMLdepends 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/76c73cfde7988Please 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-toolsto 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=trueor whatever (at least, that is probably what I would do if I was using this).
Cheers,
Nathan
Signature · 2 lines
Best Regards Masahiro Yamada