[PATCH] Makefile: fully disable sse for bootloader

12 views
Skip to first unread message

Peter Marko

unread,
Aug 25, 2023, 3:56:25 PM8/25/23
to efibootg...@googlegroups.com, Peter Marko
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 <peter...@siemens.com>
---
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
--
2.30.2

Jan Kiszka

unread,
Aug 25, 2023, 5:08:39 PM8/25/23
to Peter Marko, efibootg...@googlegroups.com
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

JEMS EBERHARD HORBEL

unread,
Dec 11, 2023, 6:16:54 PM12/11/23
to EFI Boot Guard
DIRECT SENDER IS HERE LETS DEAL.

JENS EBERHARD



MT103/202 DIRECT WIRE TRANSFER
PAYPAL TRANSFER
CASHAPP TRANSFER
ZELLE TRANSFER
TRANSFER WISE
WESTERN UNION TRANSFER
BITCOIN FLASHING 
BANK ACCOUNT LOADING/FLASHING
IBAN TO IBAN TRANSFER
MONEYGRAM TRANSFER
SLBC PROVIDER
CREDIT CARD TOP UP
SEPA TRANSFER
WIRE TRANSFER
GLOBALPAY INC US

Thanks.


NOTE; ONLY SERIOUS / RELIABLE RECEIVERS CAN CONTACT.

DM ME ON WHATSAPP FOR A SERIOUS DEAL.

+447405129573
Reply all
Reply to author
Forward
0 new messages