Skip to contentSkip to conversation

optee-ftpm: Limit to supported machines

PATCH Applied Khem Raj 2 participants 2 messages Dec 4, 2021 – Dec 6, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 optee-ftpm: Limit to supported machines

If we build aarch64 based machines living outside meta-arm then these recipes report as unsupported e.g.

ERROR: Nothing PROVIDES 'optee-os-tadevkit' (but /mnt/b/yoe/master/sources/meta-arm/meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb DEPENDS on or otherwise requires it) optee-os-tadevkit was skipped: incompatible with machine rock-pi-4b (not in COMPATIBLE_MACHINE)
ERROR: Nothing RPROVIDES 'optee-ftpm' (but /mnt/b/yoe/master/sources/meta-arm/meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb RDEPENDS on or otherwise requires it) No eligible RPROVIDERs exist for 'optee-ftpm'
NOTE: Runtime target 'optee-ftpm' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['optee-ftpm']
ERROR: Nothing RPROVIDES 'optee-ftpm-dev' (but /mnt/b/yoe/master/sources/meta-arm/meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb RDEPENDS on or otherwise requires it) No eligible RPROVIDERs exist for 'optee-ftpm-dev'
NOTE: Runtime target 'optee-ftpm-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['optee-ftpm-dev']

Therefore its better to limit this recipe to machines supporting optee-os

---
 meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb +2 -1
index 22b51f4..e30e13a 100644
@@ -3,8 +3,9 @@ DESCRIPTION = "TCG reference implementation of the TPM 2.0 Specification."
 HOMEPAGE = "https://github.com/microsoft/ms-tpm-20-ref/"
 
 COMPATIBLE_MACHINE ?= "invalid"
-COMPATIBLE_MACHINE:aarch64 = "(.*)"
+COMPATIBLE_MACHINE:qemuarm64 = "qemuarm64"
 COMPATIBLE_MACHINE:qemuarm64-secureboot = "qemuarm64"
+COMPATIBLE_MACHINE:qemu-generic-arm64 = "qemu-generic-arm64"
 
 #FIXME - doesn't currently work with clang
 TOOLCHAIN = "gcc"
Signature · 1 line
2.34.1
Applied
#1 lore raw
Quoted 14 lines · Khem Raj

If we build aarch64 based machines living outside meta-arm then these recipes report as unsupported e.g.

ERROR: Nothing PROVIDES 'optee-os-tadevkit' (but /mnt/b/yoe/master/sources/meta-arm/meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb DEPENDS on or otherwise requires it) optee-os-tadevkit was skipped: incompatible with machine rock-pi-4b (not in COMPATIBLE_MACHINE)
ERROR: Nothing RPROVIDES 'optee-ftpm' (but /mnt/b/yoe/master/sources/meta-arm/meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb RDEPENDS on or otherwise requires it) No eligible RPROVIDERs exist for 'optee-ftpm'
NOTE: Runtime target 'optee-ftpm' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['optee-ftpm']
ERROR: Nothing RPROVIDES 'optee-ftpm-dev' (but /mnt/b/yoe/master/sources/meta-arm/meta-arm/recipes-security/optee-ftpm/optee-ftpm_git.bb RDEPENDS on or otherwise requires it) No eligible RPROVIDERs exist for 'optee-ftpm-dev'
NOTE: Runtime target 'optee-ftpm-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['optee-ftpm-dev']

Quoted 1 line

[...]

Applied, thanks!

[1/1] optee-ftpm: Limit to supported machines

      commit: bf0b41be6a40f4fe9ddb2336d63c33d966d5287f

Best regards,

Signature · 1 line
Jon Mason <[email protected]>