summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Mason <jon.mason@arm.com>2025-07-01 09:27:23 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-07-03 10:40:17 +0100
commit39c22500c1e303770b3c3ff0b46d79a73c47bbf5 (patch)
tree5c3e2d0834420522ab72183ee2de2c5706c56edb
parent35c7f98770eebffc93145f10fce88b2b656e91d2 (diff)
downloadpoky-39c22500c1e303770b3c3ff0b46d79a73c47bbf5.tar.gz
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. (From OE-Core rev: 61c54f169db74b818f587b3147c9abb611f64e0d) 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>
-rw-r--r--meta/recipes-core/musl/libucontext_1.3.2.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-core/musl/libucontext_1.3.2.bb b/meta/recipes-core/musl/libucontext_1.3.2.bb
index 2362cba5c8..c5b802207b 100644
--- a/meta/recipes-core/musl/libucontext_1.3.2.bb
+++ b/meta/recipes-core/musl/libucontext_1.3.2.bb
@@ -48,3 +48,9 @@ def map_kernel_arch(a, d):
48 48
49EXTRA_OEMESON = "-Dcpu=${@map_kernel_arch(d.getVar('TARGET_ARCH'), d)}" 49EXTRA_OEMESON = "-Dcpu=${@map_kernel_arch(d.getVar('TARGET_ARCH'), d)}"
50inherit meson 50inherit meson
51
52ARM_TARGET_CPPFLAGS = ""
53ARM_TARGET_CPPFLAGS:append:arm = "${@bb.utils.contains('TARGET_FPU', 'hard', ' -DFORCE_HARD_FLOAT', '', d)}"
54ARM_TARGET_CPPFLAGS:append:arm = "${@bb.utils.contains('TARGET_FPU', 'soft', ' -DFORCE_SOFT_FLOAT', '', d)}"
55
56TARGET_CPPFLAGS .= "${ARM_TARGET_CPPFLAGS}"