diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-06-01 13:03:44 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-06-10 15:59:29 +0100 |
commit | d6afc28dee7f7c7adfdac12e770deb9a9c04b116 (patch) | |
tree | 40b1beabc6cab4b2eb87101775b6ffe664991e15 /meta/recipes-bsp/grub/grub2.inc | |
parent | 582b2627a80f20e641e39141962a2ea972f729f0 (diff) | |
download | poky-d6afc28dee7f7c7adfdac12e770deb9a9c04b116.tar.gz |
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 <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/grub/grub2.inc')
-rw-r--r-- | meta/recipes-bsp/grub/grub2.inc | 4 |
1 files changed, 4 insertions, 0 deletions
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" | |||
51 | inherit autotools gettext texinfo pkgconfig | 51 | inherit autotools gettext texinfo pkgconfig |
52 | 52 | ||
53 | CFLAGS:remove = "-O2" | 53 | CFLAGS:remove = "-O2" |
54 | # It doesn't support sse, its make.defaults sets: | ||
55 | # CFLAGS += -mno-mmx -mno-sse | ||
56 | # So also remove -mfpmath=sse from TUNE_CCARGS | ||
57 | TUNE_CCARGS:remove = "-mfpmath=sse" | ||
54 | 58 | ||
55 | EXTRA_OECONF = "--with-platform=${GRUBPLATFORM} \ | 59 | EXTRA_OECONF = "--with-platform=${GRUBPLATFORM} \ |
56 | --disable-grub-mkfont \ | 60 | --disable-grub-mkfont \ |