diff options
| author | Khem Raj <raj.khem@gmail.com> | 2024-06-01 13:03:44 -0700 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-08-01 06:08:09 -0700 |
| commit | e97af1ca2cdf5ed39aaadfeaa7090ba05286e70d (patch) | |
| tree | ebd475fb892aaf593958e93a3d9e4365478becb4 | |
| parent | beed6f316378eedbc866a2984924a5399be70b67 (diff) | |
| download | poky-e97af1ca2cdf5ed39aaadfeaa7090ba05286e70d.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: 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>
| -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 bb9aacb478..54c0e9bdd5 100644 --- a/meta/recipes-bsp/grub/grub2.inc +++ b/meta/recipes-bsp/grub/grub2.inc | |||
| @@ -52,6 +52,10 @@ GRUBPLATFORM ??= "pc" | |||
| 52 | inherit autotools gettext texinfo pkgconfig | 52 | inherit autotools gettext texinfo pkgconfig |
| 53 | 53 | ||
| 54 | CFLAGS:remove = "-O2" | 54 | CFLAGS:remove = "-O2" |
| 55 | # It doesn't support sse, its make.defaults sets: | ||
| 56 | # CFLAGS += -mno-mmx -mno-sse | ||
| 57 | # So also remove -mfpmath=sse from TUNE_CCARGS | ||
| 58 | TUNE_CCARGS:remove = "-mfpmath=sse" | ||
| 55 | 59 | ||
| 56 | EXTRA_OECONF = "--with-platform=${GRUBPLATFORM} \ | 60 | EXTRA_OECONF = "--with-platform=${GRUBPLATFORM} \ |
| 57 | --disable-grub-mkfont \ | 61 | --disable-grub-mkfont \ |
