summaryrefslogtreecommitdiff
path: root/include/config_fallbacks.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2014-04-18 11:15:55 -0600
committerAnatolij Gustschin <agust@denx.de>2014-05-05 11:42:37 +0200
commit264e0e591bbd1c66d6bd5fb8f2438f17c3ba17ea (patch)
treee8b309f51eade5b30ce225148f96bcaa77db6de4 /include/config_fallbacks.h
parente1ae71d8f4dd8e3f366f341e8a309e95e79945a0 (diff)
downloadu-boot-264e0e591bbd1c66d6bd5fb8f2438f17c3ba17ea.tar.gz
config: enable CMD_BMP when API+LCD is enabled
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>
Diffstat (limited to 'include/config_fallbacks.h')
-rw-r--r--include/config_fallbacks.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/config_fallbacks.h b/include/config_fallbacks.h
index e6fb47be0b..b304a4103d 100644
--- a/include/config_fallbacks.h
+++ b/include/config_fallbacks.h
@@ -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