nativesdk-packagegroup-sdk-host: only include optee dependencies when needed

Both python3-cryptography and python3-pyelftools are needed to compile optee-os
with a Yocto-generated SDK, but we were adding these packages to all i.MX SDKs,
even for platforms that don't use optee. This wouldn't be a problem if it
weren't for the fact that python3-cryptography is implemented in rust, and its
inclusion in the SDKs forces bitbake to generate the rust compiler just for
that package.

Only include these python packages for platforms that use optee.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
Gabriel Valcazar 2025-01-09 14:04:37 +01:00
parent 7e51909ef5
commit b143804dbb
1 changed files with 4 additions and 5 deletions

View File

@ -1,9 +1,8 @@
# Copyright (C) 2016-2023, Digi International Inc. # Copyright (C) 2016-2025, Digi International Inc.
IMX_OPTEE_SDK_RDEPENDS ?= " \ IMX_OPTEE_SDK_RDEPENDS ?= "${@bb.utils.contains('MACHINE_FEATURES', 'optee', \
nativesdk-python3-cryptography \ 'nativesdk-python3-cryptography nativesdk-python3-pyelftools', \
nativesdk-python3-pyelftools \ '', d)}"
"
IMX_TRUSTFENCE_SDK_TOOLS ?= " \ IMX_TRUSTFENCE_SDK_TOOLS ?= " \
nativesdk-trustfence-cst \ nativesdk-trustfence-cst \