video: add opt out option for VIDEO_BBP selection
PATCH 1/1 video: add opt out option for VIDEO_BBP selection
Enable all BPP options by default to avoid empty video console output (this was the case before commit 2cc393f32fd9 ("video: make BPP and ANSI configs optional")). But also support optional selection of only required VIDEO_BBP settings.
--- drivers/video/Kconfig | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
drivers/video/Kconfig +14 -1
@@ -35,9 +35,21 @@ config BACKLIGHT_GPIO it understands the standard device tree (leds/backlight/gpio-backlight.txt) +config VIDEO_BPP_OPT_OUT + bool "Support manual selection of video console BPP" + depends on DM_VIDEO + help + Enabling this option allows manual selection of the required + VIDEO_BPPxx configuration. By default all BPP options are + enabled to avoid empty console output. Some boards do not use + all BPP options and want to avoid dead code to reduce binary + image size. Let them opt out and select the needed BPP in the + board defconfig file. + config VIDEO_BPP8 bool "Support 8-bit-per-pixel displays" depends on DM_VIDEO + default y if DM_VIDEO && !VIDEO_BPP_OPT_OUT help Support drawing text and bitmaps onto a 8-bit-per-pixel display. Enabling this will include code to support this display. Without
@@ -47,6 +59,7 @@ config VIDEO_BPP8 config VIDEO_BPP16 bool "Support 16-bit-per-pixel displays" depends on DM_VIDEO + default y if DM_VIDEO && !VIDEO_BPP_OPT_OUT help Support drawing text and bitmaps onto a 16-bit-per-pixel display. Enabling this will include code to support this display. Without
@@ -56,7 +69,7 @@ config VIDEO_BPP16 config VIDEO_BPP32 bool "Support 32-bit-per-pixel displays" depends on DM_VIDEO - default y if X86 + default y if DM_VIDEO && !VIDEO_BPP_OPT_OUT help Support drawing text and bitmaps onto a 32-bit-per-pixel display. Enabling this will include code to support this display. Without
Signature · 1 line
2.17.1
PATCH 1/1 video: add opt out option for VIDEO_BBP selection
Quoted 45 lines · Anatolij Gustschin
Enable all BPP options by default to avoid empty video console output (this was the case before commit
2cc393f32fd9("video: make BPP and ANSI configs optional")). But also support optional selection of only requiredVIDEO_BBPsettings.Signed-off-by Anatolij Gustschin <[email protected]>--- drivers/video/Kconfig | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)drivers/video/Kconfig +13
-0@@ -35,9 +35,21 @@ config BACKLIGHT_GPIO it understands the standard device tree (leds/backlight/gpio-backlight.txt) +config VIDEO_BPP_OPT_OUT + bool "Support manual selection of video console BPP" + depends on DM_VIDEO + help + Enabling this option allows manual selection of the required + VIDEO_BPPxx configuration. By default all BPP options are + enabled to avoid empty console output. Some boards do not use + all BPP options and want to avoid dead code to reduce binary + image size. Let them opt out and select the needed BPP in the + board defconfig file. + config VIDEO_BPP8 bool "Support 8-bit-per-pixel displays" depends on DM_VIDEO + default y if DM_VIDEO && !VIDEO_BPP_OPT_OUT help Support drawing text and bitmaps onto a 8-bit-per-pixel display. Enabling this will include code to support this display. Without@@ -47,6 +59,7 @@ config VIDEO_BPP8 config VIDEO_BPP16 bool "Support 16-bit-per-pixel displays" depends on DM_VIDEO + default y if DM_VIDEO && !VIDEO_BPP_OPT_OUT help Support drawing text and bitmaps onto a 16-bit-per-pixel display. Enabling this will include code to support this display. Without
drivers/video/Kconfig config VIDEO_BPP16 · line 75
Quoted 8 lines
drivers/video/Kconfig +1
-1@@ -56,7 +69,7 @@ config VIDEO_BPP16 config VIDEO_BPP32 bool "Support 32-bit-per-pixel displays" depends on DM_VIDEO - default y if X86 + default y if DM_VIDEO && !VIDEO_BPP_OPT_OUT help Support drawing text and bitmaps onto a 32-bit-per-pixel display. Enabling this will include code to support this display. Without
I think this is more complex than it needs to be, honestly. The old behavior was that all of these options were essentially "default y" but it also wasn't possible to remove them (in some cases?). Now that we can let boards pick what they want, I think we should just go back to the old behavior of in essence "default y" (and they already have depends on DM_VIDEO). Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200204/a29fe779/attachment.sig>
PATCH 1/1 video: add opt out option for VIDEO_BBP selection
On Tue, 4 Feb 2020 11:49:59 -0500
Tom Rini trini at konsulko.com wrote:
...
Quoted 7 lines
Quoted 7 lines
config
VIDEO_BPP32drivers/video/Kconfig +1
-1bool "Support 32-bit-per-pixel displays" depends on DM_VIDEO - default y if X86 + default y if DM_VIDEO && !VIDEO_BPP_OPT_OUT help Support drawing text and bitmaps onto a 32-bit-per-pixel display.
Quoted 8 lines
Quoted 1 line
Enabling this will include code to support this display. Without
I think this is more complex than it needs to be, honestly. The old behavior was that all of these options were essentially "default y" but it also wasn't possible to remove them (in some cases?). Now that we can let boards pick what they want, I think we should just go back to the old behavior of in essence "default y" (and they already have depends on
DM_VIDEO). Thanks!
you mean we can go with
default y if !VIDEO_BPP_OPT_OUT
?
--
Anatolij
Viele Grüße,
Anatolij Gustschin
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-50 Fax: +49-8142-66989-80 Email: agust at denx.de
PATCH 1/1 video: add opt out option for VIDEO_BBP selection
Quoted 19 lines · Anatolij Gustschin
On Tue, 4 Feb 2020 11:49:59 -0500
Tom Rini trini at konsulko.com wrote:
...Quoted 7 lines
Quoted 7 lines
config
VIDEO_BPP32drivers/video/Kconfig +1
-1bool "Support 32-bit-per-pixel displays" depends on DM_VIDEO - default y if X86 + default y if DM_VIDEO && !VIDEO_BPP_OPT_OUT help Support drawing text and bitmaps onto a 32-bit-per-pixel display.Quoted 8 lines
Quoted 1 line
Enabling this will include code to support this display. Without
I think this is more complex than it needs to be, honestly. The old behavior was that all of these options were essentially "default y" but it also wasn't possible to remove them (in some cases?). Now that we can let boards pick what they want, I think we should just go back to the old behavior of in essence "default y" (and they already have depends on
DM_VIDEO). Thanks!
Quoted 2 lines
you mean we can go with
default y if !VIDEO_BPP_OPT_OUT
I mean we don't need VIDEO_BPP_OPT_OUT as a symbol. All of the VIDEO_BPPx options should just be default y and boards can disable as desired. Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200204/2b6be4f7/attachment.sig>