aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDzmitry Sankouski <dsankouski@gmail.com>2023-03-07 13:21:16 +0300
committerAnatolij Gustschin <agust@denx.de>2023-03-07 15:59:35 +0100
commite7ee1fd567b266214a3a413e76ae5cde84b11cb7 (patch)
tree8c414c17779e121b08198f66170df4d42e47e7c5 /cmd
parent4f6e34811db5ad0362843803930d1659a24e8da0 (diff)
downloadu-boot-e7ee1fd567b266214a3a413e76ae5cde84b11cb7.zip
u-boot-e7ee1fd567b266214a3a413e76ae5cde84b11cb7.tar.gz
u-boot-e7ee1fd567b266214a3a413e76ae5cde84b11cb7.tar.bz2
video console: allow font size configuration at runtime
Allow font size configuration at runtime for console_simple.c driver. This needed for unit testing different fonts. Configuring is done by `font` command, also used for font selection in true type console. Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/Kconfig8
-rw-r--r--cmd/Makefile2
2 files changed, 9 insertions, 1 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 2caa4af..a351283 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -2226,6 +2226,14 @@ config CMD_VIDCONSOLE
The name 'lcdputs' is a bit of a misnomer, but so named because the
video device is often an LCD.
+config CMD_SELECT_FONT
+ bool "select font size"
+ depends on VIDEO
+ default n
+ help
+ Enabling this will provide 'font' command.
+ Allows font selection at runtime.
+
endmenu
source "cmd/ti/Kconfig"
diff --git a/cmd/Makefile b/cmd/Makefile
index 36d2daf..2d8bb4f 100644
--- a/cmd/Makefile
+++ b/cmd/Makefile
@@ -78,7 +78,7 @@ obj-$(CONFIG_CMD_EXT2) += ext2.o
obj-$(CONFIG_CMD_FAT) += fat.o
obj-$(CONFIG_CMD_FDT) += fdt.o
obj-$(CONFIG_CMD_SQUASHFS) += sqfs.o
-obj-$(CONFIG_CONSOLE_TRUETYPE) += font.o
+obj-$(CONFIG_CMD_SELECT_FONT) += font.o
obj-$(CONFIG_CMD_FLASH) += flash.o
obj-$(CONFIG_CMD_FPGA) += fpga.o
obj-$(CONFIG_CMD_FPGAD) += fpgad.o