Skip to contentSkip to conversation

drm/log: select CONFIG_FONT_SUPPORT

PATCH In review Arnd Bergmann 2 participants 3 messages Dec 12, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/log: select CONFIG_FONT_SUPPORT

From: Arnd Bergmann <[email protected]>

Without fonts, this fails to link:

drivers/gpu/drm/clients/drm_log.o: in function `drm_log_init_client':
drm_log.c:(.text+0x3d4): undefined reference to `get_default_font'

Select this, like the other users do.

Fixes f7b42442c4ac ("drm/log: Introduce a new boot logger to draw the kmsg on the screen")
---
 drivers/gpu/drm/clients/Kconfig | 1 +
 lib/fonts/Kconfig               | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/clients/Kconfig +1 -0
index c18decc90200..7b81fd0f4cae 100644
@@ -77,6 +77,7 @@ config DRM_CLIENT_LOG
 	select DRM_CLIENT
 	select DRM_CLIENT_SETUP
 	select DRM_DRAW
+	select FONT_SUPPORT
 	help
 	  This enable a drm logger, that will print the kernel messages to the
 	  screen until the userspace is ready to take over.
lib/fonts/Kconfig +1 -1
index 3ac26bdbc3ff..ae59b5b4e225 100644
@@ -10,7 +10,7 @@ if FONT_SUPPORT
 
 config FONTS
 	bool "Select compiled-in fonts"
-	depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE || DRM_PANIC
+	depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE || DRM_PANIC || DRM_CLIENT_LOG
 	help
 	  Say Y here if you would like to use fonts other than the default
 	  your frame buffer console usually use.
Signature · 1 line
2.39.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

Without fonts, this fails to link:

drivers/gpu/drm/clients/drm_log.o: in function `drm_log_init_client':
drm_log.c:(.text+0x3d4): undefined reference to `get_default_font'

Select this, like the other users do.

Thanks for the fix, I'm sorry I missed that dependency.

Quoted 33 lines
Fixes f7b42442c4ac ("drm/log: Introduce a new boot logger to draw the kmsg on the screen")
---
  drivers/gpu/drm/clients/Kconfig | 1 +
  lib/fonts/Kconfig               | 2 +-
  2 files changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/clients/Kconfig +1 -0
index c18decc90200..7b81fd0f4cae 100644
@@ -77,6 +77,7 @@ config DRM_CLIENT_LOG
  	select DRM_CLIENT
  	select DRM_CLIENT_SETUP
  	select DRM_DRAW
+	select FONT_SUPPORT
  	help
  	  This enable a drm logger, that will print the kernel messages to the
  	  screen until the userspace is ready to take over.
lib/fonts/Kconfig +1 -1
index 3ac26bdbc3ff..ae59b5b4e225 100644
@@ -10,7 +10,7 @@ if FONT_SUPPORT
 
  config FONTS
  	bool "Select compiled-in fonts"
-	depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE || DRM_PANIC
+	depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE || DRM_PANIC || DRM_CLIENT_LOG
  	help
  	  Say Y here if you would like to use fonts other than the default
  	  your frame buffer console usually use.
#2 lore raw
Quoted 5 lines · Jocelyn Falempe
Quoted 4 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

Without fonts, this fails to link:

Quoted 8 lines
Quoted 4 lines

drivers/gpu/drm/clients/drm_log.o: in function `drm_log_init_client':
drm_log.c:(.text+0x3d4): undefined reference to `get_default_font'

Select this, like the other users do.

Thanks for the fix, I'm sorry I missed that dependency.

I just pushed it to drm-misc-next, as it can break the build.

Best regards,

Signature · 1 line
Jocelyn
Quoted 35 lines
Quoted 34 lines
Fixes f7b42442c4ac ("drm/log: Introduce a new boot logger to draw the kmsg on the screen")

---
  drivers/gpu/drm/clients/Kconfig | 1 +
  lib/fonts/Kconfig               | 2 +-

  2 files changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/clients/Kconfig +0 -0
index c18decc90200..7b81fd0f4cae 100644
@@ -77,6 +77,7 @@ config DRM_CLIENT_LOG

      select DRM_CLIENT
      select DRM_CLIENT_SETUP
      select DRM_DRAW
+    select FONT_SUPPORT
      help
        This enable a drm logger, that will print the kernel messages to the screen until the userspace is ready to take over.

lib/fonts/Kconfig +0 -0
index 3ac26bdbc3ff..ae59b5b4e225 100644
@@ -10,7 +10,7 @@ if FONT_SUPPORT

  config FONTS
      bool "Select compiled-in fonts"

-    depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE || DRM_PANIC
+    depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE || DRM_PANIC || 

DRM_CLIENT_LOG
      help
        Say Y here if you would like to use fonts other than the default your frame buffer console usually use.