From: McClintock Matthew-B29882 Date: Wed, 1 Jun 2011 15:55:03 +0000 Subject: [U-Boot] [PATCH v2 2/3] common/cmd_nand.c: add ifdef protection for do_bootm In-Reply-To: <201106011110.50651.vapier@gentoo.org> References: <201105232312.53322.vapier@gentoo.org> <1306252059-26770-1-git-send-email-msm@freescale.com> <201106011110.50651.vapier@gentoo.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Jun 1, 2011 at 10:10 AM, Mike Frysinger wrote: > actually, if you dont mind, i'd like to obsolete this patch with the one > below. ?what do you think ? > -mike > > diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c > index 18019d6..c5c169f 100644 > --- a/common/cmd_bootm.c > +++ b/common/cmd_bootm.c > @@ -707,6 +707,21 @@ int do_bootm (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) > ? ? ? ?return 1; > ?} > > +int bootm_maybe_autostart(cmd_tbl_t *cmdtp, const char *cmd) I don't tink this will work since if we undef CONFIG_CMD_BOOTM we don't even compile common/cmd_bootm.c. -M