[PATCH 1/1] net/wget: set filesize

Environment variable filesize is needed for man use cased, e.g.
* write file to device * calculate hash
Let wget set the variable.
Signed-off-by: Heinrich Schuchardt heinrich.schuchardt@canonical.com --- net/wget.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/net/wget.c b/net/wget.c index f978adc9f0a..635f82efbb3 100644 --- a/net/wget.c +++ b/net/wget.c @@ -400,6 +400,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; } }

On Wed, 9 Oct 2024 at 01:52, Heinrich Schuchardt heinrich.schuchardt@canonical.com wrote:
Environment variable filesize is needed for man use cased, e.g.
The commit message isnt really clear
- write file to device
- calculate hash
Let wget set the variable.
with the commit fixed Reviewed-by: Ilias Apalodimas ilias.apalodimas@linaro.org
Signed-off-by: Heinrich Schuchardt heinrich.schuchardt@canonical.com
net/wget.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/net/wget.c b/net/wget.c index f978adc9f0a..635f82efbb3 100644 --- a/net/wget.c +++ b/net/wget.c @@ -400,6 +400,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; }
}
2.45.2
participants (2)
-
Heinrich Schuchardt
-
Ilias Apalodimas