qfw: store loaded file size in environment variable
authorAndre Przywara <andre.przywara@arm.com>
Mon, 10 Oct 2022 17:01:20 +0000 (18:01 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 21 Oct 2022 20:06:13 +0000 (16:06 -0400)
commit163fb376695661620f13839ec35d860e7e7ff504
treed3acc96c99ece4b69f0206ec3d9edfb942010e6d
parent71858454fedd1e9d975d43e82f2fbaf2640460b0
qfw: store loaded file size in environment variable

At the moment the QEMU firmware command just prints the size of the
loaded binaries on the console.
To go with all the other load methods, and many boot scripts'
expectations, also store the size of the file loaded last in the
environment variable "filesize".
We first put the kernel size in there, but overwrite this with the
initrd size, should we have one, because this is probably the more
prominent user of $filesize (in the booti or bootz command).

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
cmd/qfw.c