]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit678923a4b0e89132d80f9c636f15a0491351a9f3
treed3acc96c99ece4b69f0206ec3d9edfb942010e6d
parent612d13e24324382acffa9397f18e5543e99bd42c
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