[meta-arm] arm/optee-test: don't attempt to build with musl

Submitted by Ross Burton on Nov. 2, 2020, 4:09 p.m. | Patch ID: 178081

Details

Message ID 20201102160955.2845447-1-ross.burton@arm.com
State New
Headers show

Commit Message

Ross Burton Nov. 2, 2020, 4:09 p.m.
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 <ross.burton@arm.com>

---
 meta-arm/recipes-security/optee/optee-test.inc | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#1313): https://lists.yoctoproject.org/g/meta-arm/message/1313
Mute This Topic: https://lists.yoctoproject.org/mt/77984620/1003190
Group Owner: meta-arm+owner@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub [mhalstead@linuxfoundation.org]
-=-=-=-=-=-=-=-=-=-=-=-

Patch hide | download patch | download mbox

diff --git a/meta-arm/recipes-security/optee/optee-test.inc b/meta-arm/recipes-security/optee/optee-test.inc
index 467e687..eb11a12 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 \

Comments

Jon Mason Nov. 3, 2020, 2:12 a.m.
On Mon, Nov 02, 2020 at 04:09:55PM +0000, Ross Burton wrote:
> 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 <ross.burton@arm.com>


Applied to master.

Thanks,
Jon

> ---

>  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 467e687..eb11a12 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 \

> -- 

> 2.25.1

> 


> 

> 

>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#1319): https://lists.yoctoproject.org/g/meta-arm/message/1319
Mute This Topic: https://lists.yoctoproject.org/mt/77984620/1003190
Group Owner: meta-arm+owner@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub [mhalstead@linuxfoundation.org]
-=-=-=-=-=-=-=-=-=-=-=-