drivers: remove -mgeneral-regs-only for truetype
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, butconsole_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
@@ -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
Quoted 8 lines · Robert Stone
From
a364b45738c1fc2e937a8d845f419b8c5c64d751Mon 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 truetypeFor almost everything, -mgeneral-regs-only is a good optimization, but
console_truetype.cdoes 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
Quoted 11 lines · Robert Stone
From
a364b45738c1fc2e937a8d845f419b8c5c64d751Mon 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 truetypeFor almost everything, -mgeneral-regs-only is a good optimization, but
console_truetype.cdoes 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