diff --git a/boot/optee-os/Config.in b/boot/optee-os/Config.in index fb8a189a75..0be6e68b0c 100644 --- a/boot/optee-os/Config.in +++ b/boot/optee-os/Config.in @@ -72,6 +72,13 @@ config BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_CRYPTOGRAPHY python-cryptography. Select this option if optee-os needs python-cryptography to be built. +config BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_PILLOW + bool "OP-TEE OS needs host-python-pillow" + help + Some specific OP-TEE OS versions may use python-pillow to + build the Trusted User Interface feature. Select this + option if optee-os need python-pillow to be built. + config BR2_TARGET_OPTEE_OS_CORE bool "Build core" default y diff --git a/boot/optee-os/optee-os.mk b/boot/optee-os/optee-os.mk index 5313a1badc..88f14b48e4 100644 --- a/boot/optee-os/optee-os.mk +++ b/boot/optee-os/optee-os.mk @@ -29,6 +29,10 @@ else OPTEE_OS_DEPENDENCIES += host-python-pycryptodomex endif +ifeq ($(BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_PILLOW),y) +OPTEE_OS_DEPENDENCIES += host-python-pillow +endif + ifeq ($(BR2_TARGET_OPTEE_OS_NEEDS_DTC),y) OPTEE_OS_DEPENDENCIES += host-dtc endif