aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-10-09 13:08:54 +0200
committerTom Rini <trini@konsulko.com>2024-10-15 11:38:44 -0600
commit8014fabb5d587d31c9ac058116a93eed7369a7d6 (patch)
tree16823bf5d0d86a2ddf90e03aa610a0312e9e0a53 /net
parentbbfa4587b5bdc465dc0c9a739591674b7eedb104 (diff)
downloadu-boot-8014fabb5d587d31c9ac058116a93eed7369a7d6.tar.gz
net/wget: set filesize
After downloading a file with wget the file size may be needed in follow up actions, e.g. * write file to device * calculate hash Let wget set the environment variable filesize. Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'net')
-rw-r--r--net/wget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wget.c b/net/wget.c
index b4251e0f293..c9b8fc9109c 100644
--- a/net/wget.c
+++ b/net/wget.c
@@ -404,6 +404,7 @@ static void wget_handler(uchar *pkt, u16 dport,
efi_set_bootdev("Net", "", image_url,
map_sysmem(image_load_addr, 0),
net_boot_file_size);
+ env_set_hex("filesize", net_boot_file_size);
break;
}
}