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;
|
int net_store_fd;
|
||||||
|
|
||||||
extern void TftpStart(void); /* Begin TFTP get */
|
extern void TftpStart(char *); /* Begin TFTP get */
|
||||||
extern void NfsStart(void);
|
extern void NfsStart(char *);
|
||||||
|
|
||||||
static int
|
static int
|
||||||
netboot_common (proto_t proto, cmd_tbl_t *cmdtp, int argc, char *argv[])
|
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) {
|
switch (proto) {
|
||||||
case TFTP:
|
case TFTP:
|
||||||
TftpStart();
|
TftpStart(remotefile);
|
||||||
break;
|
break;
|
||||||
case NFS:
|
case NFS:
|
||||||
NfsStart();
|
NfsStart(remotefile);
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -648,10 +648,8 @@ NfsHandler (uchar *pkt, unsigned dest, unsigned src, unsigned len)
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
NfsStart (void)
|
NfsStart (char *p)
|
||||||
{
|
{
|
||||||
char *p = BootFile;
|
|
||||||
|
|
||||||
#ifdef NFS_DEBUG
|
#ifdef NFS_DEBUG
|
||||||
printf ("%s\n", __FUNCTION__);
|
printf ("%s\n", __FUNCTION__);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -66,7 +66,7 @@ struct rpc_t {
|
||||||
} reply;
|
} reply;
|
||||||
} u;
|
} u;
|
||||||
};
|
};
|
||||||
extern void NfsStart (void); /* Begin NFS */
|
extern void NfsStart (char *); /* Begin NFS */
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************/
|
/**********************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue