mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-16 12:16:59 +02:00
video: make vidconsole commands optional
Converting some boards to DM_VIDEO results in build breakage due to increased code size. Make video console specific commands optional to reduce binary size. Signed-off-by: Anatolij Gustschin <agust@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
ffd955c488
commit
39b95556f9
@ -35,6 +35,14 @@ config BACKLIGHT_GPIO
|
|||||||
it understands the standard device tree
|
it understands the standard device tree
|
||||||
(leds/backlight/gpio-backlight.txt)
|
(leds/backlight/gpio-backlight.txt)
|
||||||
|
|
||||||
|
config CMD_VIDCONSOLE
|
||||||
|
bool "Enable vidconsole commands lcdputs and setcurs"
|
||||||
|
depends on DM_VIDEO
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Enabling this will provide 'setcurs' and 'lcdputs' commands which
|
||||||
|
support cursor positioning and drawing strings on video framebuffer.
|
||||||
|
|
||||||
config VIDEO_BPP8
|
config VIDEO_BPP8
|
||||||
bool "Support 8-bit-per-pixel displays"
|
bool "Support 8-bit-per-pixel displays"
|
||||||
depends on DM_VIDEO
|
depends on DM_VIDEO
|
||||||
|
@ -613,6 +613,7 @@ UCLASS_DRIVER(vidconsole) = {
|
|||||||
.per_device_auto_alloc_size = sizeof(struct vidconsole_priv),
|
.per_device_auto_alloc_size = sizeof(struct vidconsole_priv),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if CONFIG_IS_ENABLED(CMD_VIDCONSOLE)
|
||||||
void vidconsole_position_cursor(struct udevice *dev, unsigned col, unsigned row)
|
void vidconsole_position_cursor(struct udevice *dev, unsigned col, unsigned row)
|
||||||
{
|
{
|
||||||
struct vidconsole_priv *priv = dev_get_uclass_priv(dev);
|
struct vidconsole_priv *priv = dev_get_uclass_priv(dev);
|
||||||
@ -673,3 +674,4 @@ U_BOOT_CMD(
|
|||||||
"print string on video framebuffer",
|
"print string on video framebuffer",
|
||||||
" <string>"
|
" <string>"
|
||||||
);
|
);
|
||||||
|
#endif /* CONFIG_IS_ENABLED(CMD_VIDCONSOLE) */
|
||||||
|
Loading…
Reference in New Issue
Block a user