diff options
| author | Ying-Chun Liu (PaulLiu) <[email protected]> | 2022-11-08 14:17:29 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-11-28 13:06:39 -0500 |
| commit | cfbae48219fd81f6c9e1a7b5ee160cdd3005f958 (patch) | |
| tree | cf1e9db0754ad81314df553a1c69c9e1edeef482 /net/net.c | |
| parent | a3bf193bf4ea8703bcf96b1a34713fb2ae87aa39 (diff) | |
net: Add wget application
This commit adds a simple wget command that can download files
from http server.
The command syntax is
wget ${loadaddr} <path of the file from server>
Signed-off-by: Duncan Hare <[email protected]>
Signed-off-by: Ying-Chun Liu (PaulLiu) <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Cc: Christian Gmeiner <[email protected]>
Cc: Joe Hershberger <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Ramon Fried <[email protected]>
Reviewed-by: Ramon Fried <[email protected]>
Diffstat (limited to 'net/net.c')
| -rw-r--r-- | net/net.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c index 9cb2aab09de..aca20e43b0b 100644 --- a/net/net.c +++ b/net/net.c @@ -118,6 +118,7 @@ #include "wol.h" #endif #include <net/tcp.h> +#include <net/wget.h> /** BOOTP EXTENTIONS **/ @@ -517,6 +518,11 @@ restart: nfs_start(); break; #endif +#if defined(CONFIG_CMD_WGET) + case WGET: + wget_start(); + break; +#endif #if defined(CONFIG_CMD_CDP) case CDP: cdp_start(); |
