From 8546e23902b6b84d30619cea050092234720ebd5 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Tue, 2 May 2006 00:11:25 +0200 Subject: [PATCH] Declare load_serial_ymodem() when using CFG_CMD_LOADB. Patch by Jon Loeliger, 01. May 2006 --- CHANGELOG | 3 +++ common/cmd_load.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 22c15dc568..561558d0ef 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,9 @@ Changes since U-Boot 1.1.4: ====================================================================== +* Declare load_serial_ymodem() when using CFG_CMD_LOADB. + Patch by Jon Loeliger, 01. May 2006 + * Fixed handling of bad checksums with "mkimage -l" * Added support for BC3450 board diff --git a/common/cmd_load.c b/common/cmd_load.c index 2432ee2056..f63b8e8056 100644 --- a/common/cmd_load.c +++ b/common/cmd_load.c @@ -33,9 +33,12 @@ DECLARE_GLOBAL_DATA_PTR; +#if (CONFIG_COMMANDS & CFG_CMD_LOADB) +static ulong load_serial_ymodem (ulong offset); +#endif + #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); # if (CONFIG_COMMANDS & CFG_CMD_SAVES) static int save_serial (ulong offset, ulong size); -- 2.25.1