common: Kconfig: Fix CMD_BMP/BMP dependency
PATCH 1/1 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.
--- cmd/Kconfig | 1 + common/Kconfig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
cmd/Kconfig +1 -0
@@ -1988,6 +1988,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
common/Kconfig +1 -1
@@ -1157,7 +1157,7 @@ config IO_TRACE config BMP bool "Enable bmp image display" - default y if CMD_BMP + default n help Enable bmp functions to display bmp image and get bmp info.
Signature · 1 line
2.41.0
Quoted 7 lines · Samuel Dionne-Riel
Using
default ywill not select BMP whenCMD_BMPhas been enabled, if it was already configured.By using
select, ifCMD_BMPis turned on, it will force the presence ofBMP.Fixes 072b0e16c482114d242580dd7a3197db5966705f
The fixes tag should be the "git log -n1 --oneline" version of the commit, btw.
Quoted 23 lines
Signed-off-by Samuel Dionne-Riel <[email protected]>--- cmd/Kconfig | 1 + common/Kconfig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)cmd/Kconfig +1
-0@@ -1988,6 +1988,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 acommon/Kconfig +0
-0
common/Kconfig config IO_TRACE · line 1162
Quoted 7 lines
common/Kconfig +1
-1@@ -1157,7 +1157,7 @@ config IO_TRACE config BMP bool "Enable bmp image display" - default y if CMD_BMP + default n help Enable bmp functions to display bmp image and get bmp info.
Since this is something that can be resolved by correcting the resulting .config file (or storing a new defconfig in your build system, or what have you) I'm not grabbing this for the release I'll be doing later today. Also in a v2, "default n" is the default. And I'm not entirely sure if BMP (and SPL_BMP) end up being things that should be asked, or should be select'd because they're library functions. Finally, this should perhaps be part of
https://patchwork.ozlabs.org/project/uboot/list/?series=360683&state=*
but I'm not sure and will wait for Nikhil to chime in.
Signature · 1 line
Tom
Quoted 37 lines · Tom Rini
Quoted 7 lines · Samuel Dionne-Riel
Using
default ywill not select BMP whenCMD_BMPhas been enabled, if it was already configured.By using
select, ifCMD_BMPis turned on, it will force the presence ofBMP.Fixes 072b0e16c482114d242580dd7a3197db5966705fThe fixes tag should be the "git log -n1 --oneline" version of the commit, btw.
Quoted 24 lines
Signed-off-by Samuel Dionne-Riel <[email protected]>--- cmd/Kconfig | 1 + common/Kconfig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)cmd/Kconfig +1
-0@@ -1988,6 +1988,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 acommon/Kconfig +0
-0@@ -1157,7 +1157,7 @@ config IO_TRACE
Quoted 17 lines
common/Kconfig config IO_TRACE · line 1162
Quoted 6 lines
common/Kconfig +1
-1config BMP bool "Enable bmp image display" - default y if CMD_BMP + default n help Enable bmp functions to display bmp image and get bmp info.Since this is something that can be resolved by correcting the resulting .config file (or storing a new defconfig in your build system, or what have you) I'm not grabbing this for the release I'll be doing later today. Also in a v2, "default n" is the default. And I'm not entirely sure if BMP (and
SPL_BMP) end up being things that should be asked, or should be select'd because they're library functions. Finally, this should perhaps be part of
https://patchwork.ozlabs.org/project/uboot/list/?series=360683&state=*
but I'm not sure and will wait for Nikhil to chime in.
@Samuel, is it okay if I pick this patch and send it as a patch as part of my above mentioned series with the changes suggested by Tom?
Please do!
Quoted 60 lines · Nikhil M Jain
Quoted 37 lines · Tom Rini
Quoted 7 lines · Samuel Dionne-Riel
Using
default ywill not select BMP whenCMD_BMPhas been enabled, if it was already configured.By using
select, ifCMD_BMPis turned on, it will force the presence ofBMP.Fixes 072b0e16c482114d242580dd7a3197db5966705fThe fixes tag should be the "git log -n1 --oneline" version of the commit, btw.
Quoted 24 lines
Signed-off-by Samuel Dionne-Riel <[email protected]>--- cmd/Kconfig | 1 + common/Kconfig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)cmd/Kconfig +1
-0@@ -1988,6 +1988,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 acommon/Kconfig +0
-0@@ -1157,7 +1157,7 @@ config IO_TRACEQuoted 17 lines
common/Kconfig config IO_TRACE · line 1162
Quoted 6 lines
common/Kconfig +1
-1config BMP bool "Enable bmp image display" - default y if CMD_BMP + default n help Enable bmp functions to display bmp image and get bmp info.Since this is something that can be resolved by correcting the resulting .config file (or storing a new defconfig in your build system, or what have you) I'm not grabbing this for the release I'll be doing later today. Also in a v2, "default n" is the default. And I'm not entirely sure if BMP (and
SPL_BMP) end up being things that should be asked, or should be select'd because they're library functions. Finally, this should perhaps be part of
https://patchwork.ozlabs.org/project/uboot/list/?series=360683&state=*
but I'm not sure and will wait for Nikhil to chime in.@Samuel, is it okay if I pick this patch and send it as a patch as part of my above mentioned series with the changes suggested by Tom?
Signature · 1 line
— Samuel Dionne-Riel