boot/optee-os: add support to build with python-cryptography
Newer version of optee-os (>= 3.16) uses python-cryptography instead of python-pycryptodomex in python scripts. Add support to build these newer versions by adding a new BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_CRYPTOGRAPHY option which will select host-python-cryptography dependency when building optee-os. Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com> [yann.morin.1998@free.fr: - move the _ARCH_DEPENDS option from the main symbol to thus new symbol ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
c1b25c32a2
commit
752f478aff
@ -61,6 +61,15 @@ config BR2_TARGET_OPTEE_OS_NEEDS_DTC
|
||||
Select this option if your OP-TEE OS platform configuration
|
||||
requires the Device Tree compiler to be available.
|
||||
|
||||
config BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_CRYPTOGRAPHY
|
||||
bool "OP-TEE OS needs host-python-cryptography"
|
||||
depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
|
||||
help
|
||||
OP-TEE OS version below 3.16 used python-pycryptodomex
|
||||
package in python scripts. Newer version uses
|
||||
python-cryptography. Select this option if optee-os needs
|
||||
python-cryptography to be built.
|
||||
|
||||
config BR2_TARGET_OPTEE_OS_CORE
|
||||
bool "Build core"
|
||||
default y
|
||||
|
@ -21,7 +21,13 @@ else
|
||||
OPTEE_OS_SITE = $(call github,OP-TEE,optee_os,$(OPTEE_OS_VERSION))
|
||||
endif
|
||||
|
||||
OPTEE_OS_DEPENDENCIES = host-openssl host-python3 host-python-pycryptodomex host-python-pyelftools
|
||||
OPTEE_OS_DEPENDENCIES = host-openssl host-python3 host-python-pyelftools
|
||||
|
||||
ifeq ($(BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_CRYPTOGRAPHY),y)
|
||||
OPTEE_OS_DEPENDENCIES += host-python-cryptography
|
||||
else
|
||||
OPTEE_OS_DEPENDENCIES += host-python-pycryptodomex
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TARGET_OPTEE_OS_NEEDS_DTC),y)
|
||||
OPTEE_OS_DEPENDENCIES += host-dtc
|
||||
|
Loading…
Reference in New Issue
Block a user