]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
libucontext: use hard/soft float
authorJon Mason <jon.mason@arm.com>
Tue, 1 Jul 2025 13:27:23 +0000 (09:27 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Jul 2025 09:38:25 +0000 (10:38 +0100)
commit61c54f169db74b818f587b3147c9abb611f64e0d
tree9547aba16db7f558bc752e1f3799b938f4ae8ce8
parent4278b9dde47957393fee46dfcc6620c3838cc73d
libucontext: use hard/soft float

When building for qemuarm-secureboot in meta-arn with musl and clang,
the following compile error is seen:
- | ../sources/libucontext-1.3.2/arch/arm/swapcontext.S:23:11: error: unknown token in expression
- |  ldr r4, =#0x56465001
- |           ^

This is happening because 1.3 added ifdefs for assembly code for both
hard and soft float, and bcause neither is being defined, it is taking
this path with the issue.

Since we can tell if soft or hard float is being used via the TARGET_FPU
variable, use that and set the relevant makefile flag.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/musl/libucontext_1.3.2.bb