On 25.08.23 21:55, 'Peter Marko' via EFI Boot Guard wrote: > Since 16f8ec282d44fa2e0d21e94e0d85a433a9a1a827 Fail build on warnings in efi > sources > the bootloader build fails when toolchain enbles SSE via -mfpmath=sse" with > > cc1: error: SSE instruction set disabled, using 387 arithmetics [-Werror] > > I want to have all optimizations enabled for non-bootloader part > so explicitly disable sse via additional compiler flag. > > Signed-off-by: Peter Marko <[email protected]> > --- > Makefile.am | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Makefile.am b/Makefile.am > index 92bd916..61d4481 100644 > --- a/Makefile.am > +++ b/Makefile.am > @@ -221,6 +221,7 @@ efi_cflags = \ > if ARCH_X86_64 > efi_cflags += \ > -mno-sse \ > + -mfpmath=387 \ > -mno-mmx \ > -mno-red-zone > endif
Looking at how systemd-boot meanwhile handles this, I guess we can adopt that and switch to -mgeneral-regs-only for most archs (all except riscv64), unconditionally (drop CFLAGS_MGENERAL_REGS_ONLY test). Jan -- Siemens AG, Technology Linux Expert Center -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/b1b9949d-71d0-4fe9-91b0-531e957add61%40siemens.com.
