From b143804dbb1f219b4c3de5253a634cc7bdf2bbc0 Mon Sep 17 00:00:00 2001 From: Gabriel Valcazar Date: Thu, 9 Jan 2025 14:04:37 +0100 Subject: [PATCH] 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 --- .../nativesdk-packagegroup-sdk-host.bbappend | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/meta-digi-arm/recipes-core/packagegroup/nativesdk-packagegroup-sdk-host.bbappend b/meta-digi-arm/recipes-core/packagegroup/nativesdk-packagegroup-sdk-host.bbappend index 0252e6330..1df3246f1 100644 --- a/meta-digi-arm/recipes-core/packagegroup/nativesdk-packagegroup-sdk-host.bbappend +++ b/meta-digi-arm/recipes-core/packagegroup/nativesdk-packagegroup-sdk-host.bbappend @@ -1,9 +1,8 @@ -# Copyright (C) 2016-2023, Digi International Inc. +# Copyright (C) 2016-2025, Digi International Inc. -IMX_OPTEE_SDK_RDEPENDS ?= " \ - nativesdk-python3-cryptography \ - nativesdk-python3-pyelftools \ -" +IMX_OPTEE_SDK_RDEPENDS ?= "${@bb.utils.contains('MACHINE_FEATURES', 'optee', \ + 'nativesdk-python3-cryptography nativesdk-python3-pyelftools', \ + '', d)}" IMX_TRUSTFENCE_SDK_TOOLS ?= " \ nativesdk-trustfence-cst \