config: enable CMD_BMP when API+LCD is enabled
PATCH 1/1 config: enable CMD_BMP when API+LCD is enabled
From: Stephen Warren <[email protected]>
When both CONFIG_API and CONFIG_LCD are enabled, the API code calls lcd_display_bitmap(). That isn't compiled unless either CONFIG_CMD_BMP or CONFIG_SPLASH_SCREEN is enabled. In order to prevent build problems, have config_fallbacks.h enable CONFIG_CMD_BMP when both API and LCD are enabled.
--- include/config_fallbacks.h | 4 ++++ 1 file changed, 4 insertions(+)
include/config_fallbacks.h +4 -0
@@ -71,6 +71,10 @@#define CONFIG_LIB_RAND #endif +#if defined(CONFIG_API ) && defined(CONFIG_LCD ) +#define CONFIG_CMD_BMP +#endif +#ifndef CONFIG_SYS_PROMPT #define CONFIG_SYS_PROMPT "=> "#endif
Signature · 1 line
1.8.1.5
PATCH 1/1 config: enable CMD_BMP when API+LCD is enabled
Hi Stephen,
Quoted 10 lines · Stephen Warren
From: Stephen Warren <[email protected]>
When both
CONFIG_APIandCONFIG_LCDare enabled, the API code callslcd_display_bitmap(). That isn't compiled unless eitherCONFIG_CMD_BMPorCONFIG_SPLASH_SCREENis enabled. In order to prevent build problems, haveconfig_fallbacks.henableCONFIG_CMD_BMPwhen both API and LCD are enabled.Signed-off-by Stephen Warren <[email protected]>
I do wonder whether it might be better to #error in this case?
Regards,
Simon
PATCH 1/1 config: enable CMD_BMP when API+LCD is enabled
Quoted 12 lines · Simon Glass
Hi Stephen,
Quoted 9 lines · Stephen Warren
From: Stephen Warren <[email protected]>
When both
CONFIG_APIandCONFIG_LCDare enabled, the API code callslcd_display_bitmap(). That isn't compiled unless eitherCONFIG_CMD_BMPorCONFIG_SPLASH_SCREENis enabled. In order to prevent build problems, haveconfig_fallbacks.henableCONFIG_CMD_BMPwhen both API and LCD are enabled.
Quoted 5 lines
Quoted 1 line
Signed-off-by Stephen Warren <[email protected]>Reviewed-by Simon Glass <[email protected]>I do wonder whether it might be better to #error in this case?
I see it rather like a "select" in Kconfig. (although perhaps this would end up being a depends rather than a select)
PATCH 1/1 config: enable CMD_BMP when API+LCD is enabled
In reply to Stephen WarrenQuoted 8 lines · On Fri, 18 Apr 2014 11:15:55 -0600 Stephen Warren <[email protected]> wrote:
From: Stephen Warren <[email protected]>
When both
CONFIG_APIandCONFIG_LCDare enabled, the API code callslcd_display_bitmap(). That isn't compiled unless eitherCONFIG_CMD_BMPorCONFIG_SPLASH_SCREENis enabled. In order to prevent build problems, haveconfig_fallbacks.henableCONFIG_CMD_BMPwhen both API and LCD are enabled.
Quoted 4 lines
Signed-off-by Stephen Warren <[email protected]>--- include/config_fallbacks.h | 4 ++++ 1 file changed, 4 insertions(+)
applied to u-boot-video/master. Thanks!
Anatolij