From: Samuel Dionne-Riel Date: Tue, 18 Jul 2023 08:57:36 +0000 (+0530) Subject: common: Kconfig: Fix CMD_BMP/BMP dependency X-Git-Tag: v2025.01-rc5-pxa1908~929^2 X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=373991d6939b01c47b352b1f620ef772419a9cf4;p=u-boot.git common: Kconfig: Fix CMD_BMP/BMP dependency Using `default y` will not select BMP when CMD_BMP has been enabled, if it was already configured. By using `select`, if `CMD_BMP` is turned on, it will force the presence of `BMP`. Fixes: 072b0e16c4 ("common: Kconfig: Add BMP configs") Signed-off-by: Samuel Dionne-Riel Signed-off-by: Nikhil M Jain --- diff --git a/cmd/Kconfig b/cmd/Kconfig index ecfd575237..2d6e5f993f 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -2005,6 +2005,7 @@ config CMD_2048 config CMD_BMP bool "Enable 'bmp' command" depends on VIDEO + select BMP help This provides a way to obtain information about a BMP-format image and to display it. BMP (which presumably stands for BitMaP) is a diff --git a/common/Kconfig b/common/Kconfig index f5ad63ce16..973482f075 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -1167,7 +1167,6 @@ config IO_TRACE config BMP bool "Enable bmp image display" - default y if CMD_BMP help Enable bmp functions to display bmp image and get bmp info.