]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dummycon: only build module if there are users
authorArnd Bergmann <arnd@arndb.de>
Tue, 25 Feb 2025 16:44:21 +0000 (17:44 +0100)
committerHelge Deller <deller@gmx.de>
Wed, 26 Mar 2025 21:39:20 +0000 (22:39 +0100)
Dummycon is used as a fallback conswitchp for vgacon and fbcon
in the VT code, and there are no references to it if all three
are disabled, so just leave it out of the kernel image for
configurations without those.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/console/Kconfig

index bc31db6ef7d262a7bdf1bd9c72934b7c5fcb29bf..1c4263c164ce8054009395cb7f56867924a616b2 100644 (file)
@@ -47,8 +47,7 @@ config SGI_NEWPORT_CONSOLE
          card of your Indy.  Most people say Y here.
 
 config DUMMY_CONSOLE
-       bool
-       default y
+       def_bool VT || VGA_CONSOLE || FRAMEBUFFER_CONSOLE
 
 config DUMMY_CONSOLE_COLUMNS
        int "Initial number of console screen columns"