Stefan Reinauer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/42321 )
Change subject: util/exynos: Port *_cksum.py to python3 ......................................................................
util/exynos: Port *_cksum.py to python3
Manually changed shebang to reflect python3, no further porting needed.
Tested by calling the scripts on the command line.
Change-Id: I116696576081460a7d503ee4a032c5430a430888 Signed-off-by: Stefan Reinauer stefan.reinauer@coreboot.org --- M util/exynos/fixed_cksum.py M util/exynos/variable_cksum.py 2 files changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/21/42321/1
diff --git a/util/exynos/fixed_cksum.py b/util/exynos/fixed_cksum.py index c6a9ddae..25537de 100755 --- a/util/exynos/fixed_cksum.py +++ b/util/exynos/fixed_cksum.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 # # SPDX-License-Identifier: BSD-3-Clause
diff --git a/util/exynos/variable_cksum.py b/util/exynos/variable_cksum.py index 62a76cc..f908049 100755 --- a/util/exynos/variable_cksum.py +++ b/util/exynos/variable_cksum.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 # # SPDX-License-Identifier: BSD-3-Clause
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/42321 )
Change subject: util/exynos: Port *_cksum.py to python3 ......................................................................
Patch Set 1: Code-Review+2
Felix Singer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/42321 )
Change subject: util/exynos: Port *_cksum.py to python3 ......................................................................
Patch Set 2: Code-Review+2
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/42321 )
Change subject: util/exynos: Port *_cksum.py to python3 ......................................................................
Patch Set 3:
Leave it with `python`, as it’s compatible with both?
Stefan Reinauer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/42321 )
Change subject: util/exynos: Port *_cksum.py to python3 ......................................................................
Patch Set 3:
Patch Set 3:
Leave it with `python`, as it’s compatible with both?
No, we should explicitly specify the version to create reproducible behavior (and that should be the version that we are shipping with the coreboot-sdk)
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/42321 )
Change subject: util/exynos: Port *_cksum.py to python3 ......................................................................
Patch Set 4:
Leave it with `python`, as it’s compatible with both?
No, we should explicitly specify the version to create reproducible behavior (and that should be the version that we are shipping with the coreboot-sdk)
Do we ship Python with the SDK? Because I don't think we do, right?
Python has this sort of weird state in the coreboot build system where it's really "banned" because people don't want it as a dependency (for issues like these, for example), but individual platforms can still choose to use it (because vendors often have Python build tools already and nobody wants to rewrite it all in C). But I don't think we have an officially supported version or anything. (We don't have an officially supported HOSTCC either, after all... we're trying to just vaguely support what most people have and hope that the compiler for build tools shouldn't have an effect on the final firmware binary, which it shouldn't unless we write really bad code.)
So maybe for simple stuff that both Python 2 and 3 should be able to run (which I think should be true for most of what we have... I think the Python guys intentionally tried to backport the most stuff that needs to be changed for Python 3 to Python 2), Paul is right and we should leave the version unspecified to give it the best chance that it will run on either?
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/42321 )
Change subject: util/exynos: Port *_cksum.py to python3 ......................................................................
Patch Set 4: Code-Review+2
Stefan Reinauer has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/42321 )
Change subject: util/exynos: Port *_cksum.py to python3 ......................................................................
Abandoned