From 6c88dba4a477aa31abc507f9de59f9090d78b647 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 2 Nov 2020 16:09:55 +0000 Subject: [PATCH] arm/optee-test: don't attempt to build with musl optee-test doesn't build on musl (or bionic) because libstdc++.a under musl depends on libc providing the pthread functions, but TAs are built without a libc. Until this is fixed upstream (see https://github.com/OP-TEE/optee_test/issues/458) simply refuse to build optee-test with musl. Change-Id: If73fd43683e19e2943bf54f4027806786fb1dc7d Signed-off-by: Ross Burton Signed-off-by: Jon Mason --- meta-arm/recipes-security/optee/optee-test.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-arm/recipes-security/optee/optee-test.inc b/meta-arm/recipes-security/optee/optee-test.inc index 467e6876..eb11a124 100644 --- a/meta-arm/recipes-security/optee/optee-test.inc +++ b/meta-arm/recipes-security/optee/optee-test.inc @@ -8,6 +8,10 @@ LIC_FILES_CHKSUM = "file://${S}/LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa" inherit python3native require optee.inc +# Linking fails on musl due to C++/threads +# https://github.com/OP-TEE/optee_test/issues/458#issuecomment-720540834 +COMPATIBLE_HOST_libc-musl = 'null' + DEPENDS = "optee-client optee-os python3-pycryptodomex-native" SRC_URI = "git://github.com/OP-TEE/optee_test.git \