diff options
author | Dr. David Alan Gilbert <linux@treblig.org> | 2023-08-25 16:27:54 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-10-01 14:09:02 +0200 |
commit | 0ebc7feae79ac07772a20382eebd8c3503313714 (patch) | |
tree | 6d0f6f37d33952d5a420aeb38e35de221bfdce84 /lib | |
parent | powerpc/configs: Remove ReiserFS from defconfig (diff) | |
download | linux-0ebc7feae79ac07772a20382eebd8c3503313714.tar.xz 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 'lib')
-rw-r--r-- | lib/fonts/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fonts/Kconfig b/lib/fonts/Kconfig index c035fde66aeb..7ee468ef21ec 100644 --- a/lib/fonts/Kconfig +++ b/lib/fonts/Kconfig @@ -98,7 +98,7 @@ config FONT_10x18 config FONT_SUN8x16 bool "Sparc console 8x16 font" - depends on FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC) + depends on (FRAMEBUFFER_CONSOLE && (FONTS || SPARC)) || BOOTX_TEXT help This is the high resolution console font for Sun machines. Say Y. |