]> git.baikalelectronics.ru Git - uboot.git/commit
qfw: return failure when no kernel could be loaded
authorAndre Przywara <andre.przywara@arm.com>
Mon, 10 Oct 2022 17:01:21 +0000 (18:01 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 21 Oct 2022 20:06:14 +0000 (16:06 -0400)
commit63847176485b2f42f3acc71bb187aed304c7bad0
treed42568bda02feea2ac8a2f9d6906276b797aeb95
parent678923a4b0e89132d80f9c636f15a0491351a9f3
qfw: return failure when no kernel could be loaded

When we try to load a kernel via the QEMU firmware device, we currently
"return -1;" if no kernel was specified on the QEMU command line. This
leads to the usage output, which is confusing (since nothing on the
command line was really wrong), but also somewhat hides the actual error
message.

Return CMD_RET_FAILURE (1), as it's a proper error, and make the message
more clear that this is not only a "warning".

This helps to call this command in boot scripts, and to gracefully
continue if this doesn't work.

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