From: Jon Loeliger Date: Mon, 01 May 2006 14:49:05 -0500 Subject: [U-Boot-Users] PATCH: Declare load_serial_ymodem() for both CFG_CMD_LOAD{S,B} In-Reply-To: <20060501194030.06783353A2B@atlas.denx.de> References: <20060501194030.06783353A2B@atlas.denx.de> Message-ID: <1146512944.24239.38.camel@cashmere.sps.mot.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, 2006-05-01 at 14:40, Wolfgang Denk wrote: > In message <1146511413.24239.16.camel@cashmere.sps.mot.com> you wrote: > > Declare load_serial_ymodem() for both CFG_CMD_LOAD{S,B} > > as it appears to be needed by both the loadb and loads > > commands now. > > The only reference (call) to the load_serial_ymodem() function is in > do_load_serial_bin() which in turn is only compiled if > 'CONFIG_COMMANDS & CFG_CMD_LOADB' is true. > > What makes you think it might be needed with CFG_CMD_LOADS ? Hmmmm... Interesting point. It used to look like this: #if (CONFIG_COMMANDS & CFG_CMD_LOADS) static ulong load_serial (ulong offset); static ulong load_serial_ymodem (ulong offset); static int read_record (char *buf, ulong len); Drop my previous patch. New patch follows. jdl