[Buildroot] [PATCH 1/4] configs/qemu_arm_vexpress_tz_defconfig: optee needs host-python3 w/ modules

Romain Naour romain.naour at smile.fr
Sun Mar 8 18:35:32 UTC 2020

optee-os needs host-python-pycrypto build for python3. The only way we can
force building host-python modules for python3 is to select python3 package
for the target.

Since we want to avoid adding more host-python3-<modules>
(host-python-pycrypto host-python-pyelftools), select python3 package
even if it's not used.

This problem will be fixed as soon as python2 is removed.

File "scripts/pem_to_pub_c.py", line 24, in main
from Crypto.PublicKey import RSA
ImportError: No module named 'Crypto'


Signed-off-by: Romain Naour <romain.naour at smile.fr>
Cc: Etienne Carriere <etienne.carriere at linaro.org>
 configs/qemu_arm_vexpress_tz_defconfig | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/configs/qemu_arm_vexpress_tz_defconfig b/configs/qemu_arm_vexpress_tz_defconfig
index ccc0dca3ec..374612e549 100644
--- a/configs/qemu_arm_vexpress_tz_defconfig
+++ b/configs/qemu_arm_vexpress_tz_defconfig
@@ -38,6 +38,13 @@ BR2_PACKAGE_OPTEE_BENCHMARK=y
+# OP-TEE components needs host-python3 interpreter and it's modules
+# Select python3 on the target to make sure Buildroot build host-python using
+# python3 and build all python modules for python3.
 # U-boot for booting the dear Linux kernel

More information about the buildroot mailing list