boot/optee-os: Depend on host-python3
v2 cover boot/optee-os: Depend on host-python3
Hi all,
This series makes OP-TEE OS properly build with Python 3 by using host-python3 as a configurable interpreter enabled by a recent upstream patch[1].
Along with this, python-pycryptodomex was bumped to the latest version and a accompanying new package python3-pycryptodomex was added as a dependency.
These changes also enable some nice cleanup in qemu_arm_vexpress_tz_defconfig which previously had to work around these Python 3 issues in the defconfig.
I documented[2] briefly some of the testing I've done with the upstream patch.
[1]: https://github.com/OP-TEE/optee_os/pull/3984
[2]: https://github.com/OP-TEE/optee_os/pull/3984#issuecomment-662271300
Dick Olsson (4):
package/python-pycryptodomex: bump to version 3.9.8 package/python3-pycryptodomex: new package boot/optee-os: Depend on host-python3 configs/qemu_arm_vexpress_tz_defconfig: bump ATF version, cleanup
config
...e-ta-Configurable-Python-interpreter.patch | 249 ++++++++++++++++++ boot/optee-os/optee-os.mk | 5 +- configs/qemu_arm_vexpress_tz_defconfig | 7 +- .../python-pycryptodomex.hash | 4 +- .../python-pycryptodomex.mk | 5 +- package/python3-pycryptodomex/Config.in | 6 + .../python3-pycryptodomex.hash | 4 + .../python3-pycryptodomex.mk | 21 ++ 8 files changed, 288 insertions(+), 13 deletions(-) create mode 100644 boot/optee-os/0003-mk-core-ta-Configurable-Python-interpreter.patch create mode 100644 package/python3-pycryptodomex/Config.in create mode 100644 package/python3-pycryptodomex/python3-pycryptodomex.hash create mode 100644 package/python3-pycryptodomex/python3-pycryptodomex.mk
Signature · 1 line
2.20.1
PATCH v2 1/4 package/python-pycryptodomex: bump to version 3.9.8
Changelog: https://www.pycryptodome.org/en/latest/src/changelog.html#june-2020
--- package/python-pycryptodomex/python-pycryptodomex.hash | 4 +--- package/python-pycryptodomex/python-pycryptodomex.mk | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-)
package/python-pycryptodomex/python-pycryptodomex.hash +1 -3
@@ -1,6 +1,4 @@ -# md5, sha256 from https://pypi.org/pypi/pycryptodomex/json -md5 c55b52fc81cbf795fb7c302b0cc19b9f pycryptodomex-3.9.6.tar.gz -sha256 c021b66f5b3c4ea0c45422ec3241bfea4a16651e1ee5459a136639d0716ccb3c pycryptodomex-3.9.6.tar.gz # Locally computed sha256 checksums sha256 d1af3fab2ef8cc53b6c7f48bdeb178ac874b04faf4ba0159a96b6109f1d393e2 LICENSE.rst sha256 8e563c767164faa0831a333b57d23d4311cf566eb1b15d93250f4606be4eb549 Doc/LEGAL/COPYRIGHT.pycrypto +sha256 48cc2cfc251f04a6142badeb666d1ff49ca6fdfc303fd72579f62b768aaa52b9 pycryptodomex-3.9.8.tar.gz
package/python-pycryptodomex/python-pycryptodomex.mk +2 -2
@@ -4,9 +4,9 @@ # ################################################################################ -PYTHON_PYCRYPTODOMEX_VERSION = 3.9.6 +PYTHON_PYCRYPTODOMEX_VERSION = 3.9.8 PYTHON_PYCRYPTODOMEX_SOURCE = pycryptodomex-$(PYTHON_PYCRYPTODOMEX_VERSION).tar.gz -PYTHON_PYCRYPTODOMEX_SITE = https://files.pythonhosted.org/packages/d7/4f/20258a48e6760cff6523a176ecec671c85cad3f199754a8b89728d130aa8 +PYTHON_PYCRYPTODOMEX_SITE = https://files.pythonhosted.org/packages/f5/79/9d9206688385d1e7a5ff925e7aab1d685636256e34a409037aa7adbbe611 PYTHON_PYCRYPTODOMEX_SETUP_TYPE = setuptools PYTHON_PYCRYPTODOMEX_LICENSE = \ BSD-2-Clause, \
Signature · 1 line
2.20.1
PATCH v2 1/4 package/python-pycryptodomex: bump to version 3.9.8
Quoted 7 lines · On Wed, 22 Jul 2020 07:11:08 +0000 Dick Olsson <[email protected]> wrote:
Changelog: https://www.pycryptodome.org/en/latest/src/changelog.html#june-2020
Signed-off-by Dick Olsson <[email protected]>--- package/python-pycryptodomex/python-pycryptodomex.hash | 4 +--- package/python-pycryptodomex/python-pycryptodomex.mk | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-)
Thanks for this contribution. However, in the mean time, another similar patch was merged, which was more correct (i.e the changes in the hash file were not completely correct in your submission).
However, I'll go ahead and apply the rest of your series. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com