pass filename to nfs and tftp start functions
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
This commit is contained in:
parent
1d3d2c6369
commit
ac50a05caf
|
@ -160,8 +160,8 @@ U_BOOT_CMD_END
|
|||
|
||||
int net_store_fd;
|
||||
|
||||
extern void TftpStart(void); /* Begin TFTP get */
|
||||
extern void NfsStart(void);
|
||||
extern void TftpStart(char *); /* Begin TFTP get */
|
||||
extern void NfsStart(char *);
|
||||
|
||||
static int
|
||||
netboot_common (proto_t proto, cmd_tbl_t *cmdtp, int argc, char *argv[])
|
||||
|
@ -196,10 +196,10 @@ netboot_common (proto_t proto, cmd_tbl_t *cmdtp, int argc, char *argv[])
|
|||
|
||||
switch (proto) {
|
||||
case TFTP:
|
||||
TftpStart();
|
||||
TftpStart(remotefile);
|
||||
break;
|
||||
case NFS:
|
||||
NfsStart();
|
||||
NfsStart(remotefile);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -648,10 +648,8 @@ NfsHandler (uchar *pkt, unsigned dest, unsigned src, unsigned len)
|
|||
|
||||
|
||||
void
|
||||
NfsStart (void)
|
||||
NfsStart (char *p)
|
||||
{
|
||||
char *p = BootFile;
|
||||
|
||||
#ifdef NFS_DEBUG
|
||||
printf ("%s\n", __FUNCTION__);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue