From: Heinrich Schuchardt Date: Wed, 9 Oct 2024 11:08:54 +0000 (+0200) Subject: net/wget: set filesize X-Git-Url: http://git.dujemihanovic.xyz/projects?a=commitdiff_plain;h=8014fabb5d587d31c9ac058116a93eed7369a7d6;p=u-boot.git 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 Signed-off-by: Heinrich Schuchardt --- diff --git a/net/wget.c b/net/wget.c index b4251e0f29..c9b8fc9109 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; } }