From a7cbb7b90a9eb9f8a98054f8613a8230472cf4a5 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 20 May 2025 23:19:46 -0700 Subject: [PATCH] systemd-boot: Remove -mfpmath=sse option from cflags EFI sources in systemd uses -mgeneral-regs-only which conflicts with -mfpmath=sse specified by OE via tune arguments. It needs to be removed, clang errors about it and fails the build Fixes error: the 'sse' unit is not supported with this instruction set Signed-off-by: Khem Raj Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- meta/recipes-core/systemd/systemd-boot_257.5.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta/recipes-core/systemd/systemd-boot_257.5.bb b/meta/recipes-core/systemd/systemd-boot_257.5.bb index 6a50ac05aa..151e4a9537 100644 --- a/meta/recipes-core/systemd/systemd-boot_257.5.bb +++ b/meta/recipes-core/systemd/systemd-boot_257.5.bb @@ -47,6 +47,11 @@ FILES:${PN} = "${EFI_FILES_PATH}/${SYSTEMD_BOOT_IMAGE}" RDEPENDS:${PN} += "virtual-systemd-bootconf" +# efi portions use -mgeneral-regs-only option which conflicts with SSE +# especially clang throws errors about it +# error: the 'sse' unit is not supported with this instruction set +TUNE_CCARGS:remove = "-mfpmath=sse" + CFLAGS:append:libc-musl = " -D__DEFINED_wchar_t" COMPATIBLE_HOST = "(aarch64.*|arm.*|x86_64.*|i.86.*|riscv.*)-linux" -- 2.47.2