[U-Boot-Users] PATCH: Declare load_serial_ymodem() for both CFG_CMD_LOAD{S,B}

Jon Loeliger jdl at freescale.com
Mon May 1 21:23:33 CEST 2006


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.

Signed-off-by: Jon Loeliger <jdl at freescale.com>

---

load_serial_ymodem() seems oddly mis-named now. :-)



diff --git a/common/cmd_load.c b/common/cmd_load.c
index 2432ee2..df5a022 100644
--- a/common/cmd_load.c
+++ b/common/cmd_load.c
@@ -33,9 +33,12 @@ #include <xyzModem.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#if (CONFIG_COMMANDS & CFG_CMD_LOADB) | (CONFIG_COMMANDS & CFG_CMD_LOADS)
+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);






More information about the U-Boot mailing list