Message ID | 20250311102934.63753-1-mikko.rapeli@linaro.org |
---|---|
State | New |
Headers | show |
Series | [1/2] optee: support genericarm64 | expand |
diff --git a/meta-arm/recipes-security/optee/optee.inc b/meta-arm/recipes-security/optee/optee.inc index c5514f56..cd25d0e5 100644 --- a/meta-arm/recipes-security/optee/optee.inc +++ b/meta-arm/recipes-security/optee/optee.inc @@ -1,11 +1,13 @@ UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+(\.\d+)+)$" COMPATIBLE_MACHINE ?= "invalid" +COMPATIBLE_MACHINE:genericarm64 ?= "genericarm64" COMPATIBLE_MACHINE:qemuarm64 ?= "qemuarm64" COMPATIBLE_MACHINE:qemuarm ?= "qemuarm" # Please add supported machines below or set it in .bbappend or .conf OPTEEMACHINE ?= "${MACHINE}" +OPTEEMACHINE:genericarm64 ?= "vexpress-qemu_armv8a" OPTEEMACHINE:aarch64:qemuall ?= "vexpress-qemu_armv8a" OPTEEMACHINE:arm:qemuall ?= "vexpress-qemu_virt"
optee-client/tee-supplicant, optee-os-tadevkit and optee-test can be compiled for genericarm64 and these detect firmware optee support at runtime. Using qemuarm64 compatible config for them. optee-os itself may need HW specific config for different boards and SoCs but these components work with same config on multiple boards. Tested on qemu and AMD kv260 with Linaro Trusted Substrate firmware (https://gitlab.com/Linaro/trustedsubstrate/meta-ts). Note: optee-test version in userspace and optee-os version in firmware must match for tests to pass. Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> --- meta-arm/recipes-security/optee/optee.inc | 2 ++ 1 file changed, 2 insertions(+)