From a364b45738c1fc2e937a8d845f419b8c5c64d751 Mon Sep 17 00:00:00 2001
From: rjstone <rjston...@pm.me>
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(+)

diff --git a/drivers/video/Makefile b/drivers/video/Makefile
index ebe4a3961fc..a1a408da2fb 100644
--- a/drivers/video/Makefile
+++ b/drivers/video/Makefile
@@ -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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to