summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/Kconfig.debug
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <linux@treblig.org>2023-08-25 15:27:54 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2023-10-01 23:09:02 +1100
commit0ebc7feae79ac07772a20382eebd8c3503313714 (patch)
tree6d0f6f37d33952d5a420aeb38e35de221bfdce84 /arch/powerpc/Kconfig.debug
parentc945e6f453a361b0e9daddd2be9c099d1b80d6f8 (diff)
downloadlinux-0ebc7feae79ac07772a20382eebd8c3503313714.tar.gz
linux-0ebc7feae79ac07772a20382eebd8c3503313714.tar.bz2
linux-0ebc7feae79ac07772a20382eebd8c3503313714.zip
powerpc: Use shared font data
PowerPC has a 'btext' font used for the console which is almost identical to the shared font_sun8x16, so use it rather than duplicating the data. They were actually identical until about a decade ago when commit bcfbeecea11c ("drivers: console: font_: Change a glyph from "broken bar" to "vertical line"") which changed the | in the shared font to be a solid bar rather than a broken bar. That's the only difference. This was originally spotted by the PMF source code analyser, which noticed that sparc does the same thing with the same data, and they also share a bunch of functions to manipulate the data. I've previously posted a near identical patch for sparc. Tested very lightly with a boot without FS in qemu. Signed-off-by: "Dr. David Alan Gilbert" <linux@treblig.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230825142754.1487900-1-linux@treblig.org
Diffstat (limited to 'arch/powerpc/Kconfig.debug')
-rw-r--r--arch/powerpc/Kconfig.debug2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug
index 2a54fadbeaf5..50ff3359cde9 100644
--- a/arch/powerpc/Kconfig.debug
+++ b/arch/powerpc/Kconfig.debug
@@ -147,6 +147,8 @@ config BDI_SWITCH
config BOOTX_TEXT
bool "Support for early boot text console (BootX or OpenFirmware only)"
depends on PPC_BOOK3S
+ select FONT_SUN8x16
+ select FONT_SUPPORT
help
Say Y here to see progress messages from the boot firmware in text
mode. Requires either BootX or Open Firmware.