Skip to contentSkip to conversation

drivers: remove -mgeneral-regs-only for truetype

PATCH In review Robert Stone 3 participants 3 messages Jul 6, 2025 – Jul 11, 2025 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: remove -mgeneral-regs-only for truetype

From a364b45738c1fc2e937a8d845f419b8c5c64d751 Mon Sep 17 00:00:00 2001
From: rjstone <[email protected]>
Date: Sat, 5 Jul 2025 11:22:09 -0700
Subject: [PATCH] drivers: remove -mgeneral-regs-only for truetype

For almost everything, -mgeneral-regs-only is a good optimization, but
console_truetype.c does using floating point, so the build will fail
unless it is compiled without -mgeneral-regs-only.
---
Sorry if this is formatted improperly. I had some trouble setting up patman and format-patch. Also having some email software problems.

 drivers/video/Makefile | 1 +
 1 file changed, 1 insertion(+)
drivers/video/Makefile +1 -0
index ebe4a3961fc..a1a408da2fb 100644
@@ -15,6 +15,7 @@ else ifdef CONFIG_CONSOLE_ROTATION
 obj-y += console_core.o
 endif
 obj-$(CONFIG_CONSOLE_ROTATION) += console_core.o
+CFLAGS_REMOVE_console_truetype.o = -mgeneral-regs-only
 obj-$(CONFIG_CONS

OLE_TRUETYPE) += console_truetype.o fonts/
obj-$(CONFIG_DISPLAY) += display-uclass.o obj-$(CONFIG_VIDEO_MIPI_DSI) += dsi-host-uclass.o
--
2.34.1

#1 lore raw
Quoted 8 lines · Robert Stone

From a364b45738c1fc2e937a8d845f419b8c5c64d751 Mon Sep 17 00:00:00 2001
From: rjstone <[email protected]>
Date: Sat, 5 Jul 2025 11:22:09 -0700
Subject: [PATCH] drivers: remove -mgeneral-regs-only for truetype

For almost everything, -mgeneral-regs-only is a good optimization, but console_truetype.c does using floating point, so the build will fail unless it is compiled without -mgeneral-regs-only.

commit f43312c974ea ARM: Prevent the compiler from using NEON registers

If drop mgeneral-regs-only, there might be issue.

Regards
Peng

#2 lore raw
In reply to Robert Stone
Quoted 11 lines · Robert Stone

From a364b45738c1fc2e937a8d845f419b8c5c64d751 Mon Sep 17 00:00:00 2001
From: rjstone <[email protected]>
Date: Sat, 5 Jul 2025 11:22:09 -0700
Subject: [PATCH] drivers: remove -mgeneral-regs-only for truetype

For almost everything, -mgeneral-regs-only is a good optimization, but console_truetype.c does using floating point, so the build will fail unless it is compiled without -mgeneral-regs-only.
---
Sorry if this is formatted improperly. I had some trouble setting up patman and format-patch. Also having some email software problems.

Can you please explain what config you're using that can lead to the failure to compile here? I suspect this might be some x86 related "fun". Thanks.

Signature · 1 line
Tom