config: enable CMD_BMP when API+LCD is enabled
authorStephen Warren <swarren@nvidia.com>
Fri, 18 Apr 2014 17:15:55 +0000 (11:15 -0600)
committerAnatolij Gustschin <agust@denx.de>
Mon, 5 May 2014 09:42:37 +0000 (11:42 +0200)
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.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/config_fallbacks.h

index e6fb47be0bd71fe2dd9ca06b7586ca82a3d57b21..b304a4103def4c334347fb9f66542411422b13cb 100644 (file)
 #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