From: Mike Frysinger Date: Mon, 27 Dec 2010 04:32:22 +0000 (-0500) Subject: make `go` optional X-Git-Tag: v2011.06-rc1~143^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a641b9794bc240b272008edf0309eb9dc9187bbc;p=u-boot make `go` optional Signed-off-by: Mike Frysinger --- diff --git a/README b/README index bc3e905828..f34cffa9c5 100644 --- a/README +++ b/README @@ -644,6 +644,7 @@ The following options need to be configured: CONFIG_CMD_FDOS * Dos diskette Support CONFIG_CMD_FLASH flinfo, erase, protect CONFIG_CMD_FPGA FPGA device initialization support + CONFIG_CMD_GO * the 'go' command (exec code) CONFIG_CMD_HWFLOW * RTS/CTS hw flow control CONFIG_CMD_I2C * I2C serial bus support CONFIG_CMD_IDE * IDE harddisk support diff --git a/common/cmd_boot.c b/common/cmd_boot.c index 7b603d3502..0afd93964d 100644 --- a/common/cmd_boot.c +++ b/common/cmd_boot.c @@ -28,6 +28,8 @@ #include #include +#ifdef CONFIG_CMD_GO + /* Allow ports to override the default behavior */ __attribute__((weak)) unsigned long do_go_exec (ulong (*entry)(int, char * const []), int argc, char * const argv[]) @@ -67,6 +69,8 @@ U_BOOT_CMD( " passing 'arg' as arguments" ); +#endif + U_BOOT_CMD( reset, 1, 0, do_reset, "Perform RESET of the CPU", diff --git a/include/config_cmd_defaults.h b/include/config_cmd_defaults.h index 6adebdbb1f..79c04955f8 100644 --- a/include/config_cmd_defaults.h +++ b/include/config_cmd_defaults.h @@ -11,6 +11,7 @@ #define CONFIG_CMD_BOOTM 1 #define CONFIG_CMD_EXPORTENV 1 +#define CONFIG_CMD_GO 1 #define CONFIG_CMD_IMPORTENV 1 #endif