diff options
| author | Luca Ceresoli <luca.ceresoli@comelit.it> | 2011-05-17 00:03:40 +0000 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2011-05-19 21:38:32 +0200 | 
| commit | 7a83af07aef3c924cfb2d36e68eea8b86d22f2a1 (patch) | |
| tree | 695b7755a149f98ace4097f4a48762f258614d35 /net/net.c | |
| parent | e59e35620af0d57de75cddb9ec3f19449b998868 (diff) | |
| download | olio-uboot-2014.01-7a83af07aef3c924cfb2d36e68eea8b86d22f2a1.tar.xz olio-uboot-2014.01-7a83af07aef3c924cfb2d36e68eea8b86d22f2a1.zip | |
TFTP: add tftpsrv command
Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'net/net.c')
| -rw-r--r-- | net/net.c | 7 | 
1 files changed, 6 insertions, 1 deletions
| @@ -423,7 +423,11 @@ restart:  			/* always use ARP to get server ethernet address */  			TftpStart();  			break; - +#ifdef CONFIG_CMD_TFTPSRV +		case TFTPSRV: +			TftpStartServer(); +			break; +#endif  #if defined(CONFIG_CMD_DHCP)  		case DHCP:  			BootpTry = 0; @@ -1791,6 +1795,7 @@ common:  		/* Fall through */  	case NETCONS: +	case TFTPSRV:  		if (NetOurIP == 0) {  			puts("*** ERROR: `ipaddr' not set\n");  			return 1; |