summaryrefslogtreecommitdiff
path: root/include/configs/coreboot.h
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2011-10-25 18:41:29 -0700
committerGabe Black <gabeblack@chromium.org>2011-10-28 14:05:28 -0700
commitbd6d2d8bae1544863b6290cf853dd207fa825c05 (patch)
treec926e5372ba089f13b70c1cc2f643fe1da4ad516 /include/configs/coreboot.h
parent8f4d9ed5eae0b2901ad852dd13c393472e5a2ce0 (diff)
Refactor the coreboot config to separate out command line options
Also disable those options. This way they can be enabled when needed, but when you aren't expecting to use the command line (most of the time) they can be excluded to reduce u-boot's size and load time. BUG=chrome-os-partner:6585 TEST=Built and booted on Stumpy. Change-Id: I7ea0f02a1aa3537fa4282822bbc0d4976c2b1383 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/10752 Commit-Ready: Gabe Black <gabeblack@chromium.org> Reviewed-by: Gabe Black <gabeblack@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org>
Diffstat (limited to 'include/configs/coreboot.h')
-rw-r--r--include/configs/coreboot.h39
1 files changed, 25 insertions, 14 deletions
diff --git a/include/configs/coreboot.h b/include/configs/coreboot.h
index 58f05d6562..bdb1ab9d42 100644
--- a/include/configs/coreboot.h
+++ b/include/configs/coreboot.h
@@ -33,6 +33,7 @@
*/
#define CONFIG_SYS_COREBOOT
#define CONFIG_SHOW_BOOT_PROGRESS
+#define BUILD_CMD_LINE_STUFF 0
/* FDT support */
#define CONFIG_OF_LIBFDT /* Device tree support */
@@ -88,9 +89,11 @@
#define CONFIG_CBMEM_CONSOLE
/* turn on command-line edit/hist/auto */
+#if BUILD_CMD_LINE_STUFF
#define CONFIG_CMDLINE_EDITING 1
#define CONFIG_COMMAND_HISTORY
#define CONFIG_AUTOCOMPLETE
+#endif
#define CONFIG_SYS_CONSOLE_IS_IN_ENV
#define CONFIG_STD_DEVICES_SETTINGS "stdin=vga,serial\0" \
@@ -151,11 +154,14 @@
* Miscellaneous configurable options
*/
#define V_PROMPT "boot > "
-#define CONFIG_SYS_LONGHELP
-#define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */
#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
#define CONFIG_SYS_PROMPT V_PROMPT
#define CONFIG_SILENT_CONSOLE
+
+#if BUILD_CMD_LINE_STUFF
+#define CONFIG_SYS_LONGHELP
+#define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */
+#endif
/*
* Increasing the size of the IO buffer as default nfsargs size is more
* than 256 and so it is not possible to edit it
@@ -258,42 +264,47 @@
/*-----------------------------------------------------------------------
* Command line configuration.
*/
+#if BUILD_CMD_LINE_STUFF
#include <config_cmd_default.h>
#undef CONFIG_CMD_BDI
+#undef CONFIG_CMD_FPGA
+#undef CONFIG_CMD_IMI
+#undef CONFIG_CMD_FLASH
+#undef CONFIG_CMD_IMLS
+#undef CONFIG_CMD_LOADB
+#undef CONFIG_CMD_LOADS
+#undef CONFIG_CMD_NFS
+#undef CONFIG_CMD_SETGETDCR
+#undef CONFIG_CMD_XIMG
+
#define CONFIG_CMD_BOOTD
#define CONFIG_CMD_CONSOLE
#define CONFIG_CMD_DATE
#define CONFIG_CMD_DHCP
#define CONFIG_CMD_ECHO
#define CONFIG_CMD_EDITENV
-#undef CONFIG_CMD_FPGA
-#undef CONFIG_CMD_IMI
-#undef CONFIG_CMD_FLASH
-#undef CONFIG_CMD_IMLS
#define CONFIG_CMD_IRQ
#define CONFIG_CMD_ITEST
-#undef CONFIG_CMD_LOADB
-#undef CONFIG_CMD_LOADS
#define CONFIG_CMD_MEMORY
#define CONFIG_CMD_MISC
-#define CONFIG_CMD_NET
-#undef CONFIG_CMD_NFS
#define CONFIG_CMD_PCI
#define CONFIG_CMD_PING
#define CONFIG_CMD_RUN
#define CONFIG_CMD_SAVEENV
-#undef CONFIG_CMD_SETGETDCR
#define CONFIG_CMD_SOURCE
-#define CONFIG_CMD_SCSI
#define CONFIG_CMD_SF
-#define CONFIG_CMD_SPI
#define CONFIG_CMD_TIME
#define CONFIG_CMD_CBFS
#define CONFIG_CMD_FAT
#define CONFIG_CMD_EXT2
+#endif
+
+/* These also control whether some generic support is built. */
+#define CONFIG_CMD_SPI
#define CONFIG_CMD_USB
-#undef CONFIG_CMD_XIMG
+#define CONFIG_CMD_SCSI
+#define CONFIG_CMD_NET
/* Board specific late time init */
#define CONFIG_MISC_INIT_R