mirror of
https://git.yoctoproject.org/poky
synced 2026-04-16 15:32:13 +02:00
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: 17273366f23702077fe7a270afc7b5d26a650bf7) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit ad76da4ff6d7110747b620621ae3728de9905465) Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
@@ -52,6 +52,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 \
|
||||
|
||||
Reference in New Issue
Block a user