]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Drop various features when the command line is not available
authorSimon Glass <sjg@chromium.org>
Mon, 14 Mar 2016 01:07:35 +0000 (19:07 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 22 Mar 2016 16:16:11 +0000 (12:16 -0400)
Some features are only useful or meaningful when the command line is
present. Ensure that these features are not compiled in when CONFIG_CMDLINE
is not enabled.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
include/config_fallbacks.h

index ddfe0450d21c780e44cacf4f26b91d1e15a059a9..6b6ec00a9a943dee3e1014a27b3a5140650b0aa2 100644 (file)
 # endif
 #endif
 
+#ifndef CONFIG_CMDLINE
+#undef CONFIG_CMDLINE_EDITING
+#undef CONFIG_SYS_LONGHELP
+#undef CONFIG_CMD_BOOTD
+#undef CONFIG_CMD_RUN
+#undef CONFIG_SYS_HUSH_PARSER
+#undef CONFIG_CMD_ASKENV
+#undef CONFIG_MENU
+#endif
+
 #endif /* __CONFIG_FALLBACKS_H */