From d6afc28dee7f7c7adfdac12e770deb9a9c04b116 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 1 Jun 2024 13:03:44 -0700 Subject: grub,grub-efi: Remove -mfpmath=sse on x86 This option fails with clang compiler when testing for soft-float because OE enforces this option via CCARGS however, gtub's makefile/configure does disable all sse options when checking for soft-float support, but it can not disable -mfpmath=sse as its inserted by OE, therefore remove it in recipe Fixes build errors seen with clang/musl like on x86 error: the 'sse' unit is not supported with this instruction set (From OE-Core rev: ad76da4ff6d7110747b620621ae3728de9905465) Signed-off-by: Khem Raj Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/recipes-bsp/grub/grub2.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/recipes-bsp/grub/grub2.inc') diff --git a/meta/recipes-bsp/grub/grub2.inc b/meta/recipes-bsp/grub/grub2.inc index e2a2a84277..07b4000e04 100644 --- a/meta/recipes-bsp/grub/grub2.inc +++ b/meta/recipes-bsp/grub/grub2.inc @@ -51,6 +51,10 @@ GRUBPLATFORM ??= "pc" inherit autotools gettext texinfo pkgconfig CFLAGS:remove = "-O2" +# It doesn't support sse, its make.defaults sets: +# CFLAGS += -mno-mmx -mno-sse +# So also remove -mfpmath=sse from TUNE_CCARGS +TUNE_CCARGS:remove = "-mfpmath=sse" EXTRA_OECONF = "--with-platform=${GRUBPLATFORM} \ --disable-grub-mkfont \ -- cgit v1.2.3-54-g00ecf