From patchwork Fri Mar 4 04:00:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 85367 X-Patchwork-Delegate: wd@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 6EAB6B7043 for ; Fri, 4 Mar 2011 15:00:56 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CDCDF28085; Fri, 4 Mar 2011 05:00:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l5sRO88r4nBp; Fri, 4 Mar 2011 05:00:54 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A744128088; Fri, 4 Mar 2011 05:00:52 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2B9EA28088 for ; Fri, 4 Mar 2011 05:00:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oB5feHOwwgmD for ; Fri, 4 Mar 2011 05:00:50 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by theia.denx.de (Postfix) with ESMTPS id AF40F28085 for ; Fri, 4 Mar 2011 05:00:49 +0100 (CET) Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 39DB81B400B for ; Fri, 4 Mar 2011 04:00:45 +0000 (UTC) From: Mike Frysinger To: u-boot@lists.denx.de Date: Thu, 3 Mar 2011 23:00:52 -0500 Message-Id: <1299211252-16787-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.7.4.1 Subject: [U-Boot] [PATCH] make `go` optional X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Mike Frysinger --- README | 1 + common/cmd_boot.c | 4 ++++ include/config_cmd_defaults.h | 1 + 3 files changed, 6 insertions(+), 0 deletions(-) diff --git a/README b/README index 1773f00..49a5bb9 100644 --- a/README +++ b/README @@ -639,6 +639,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 7b603d3..0afd939 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 6adebdb..79c0495 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