[PATCH 2/3] qfw: return failure when no kernel could be loaded

Tom Rini trini at konsulko.com
Mon Oct 24 14:22:15 CEST 2022


On Mon, Oct 10, 2022 at 06:01:21PM +0100, Andre Przywara wrote:

> 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 at arm.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20221024/d82298b8/attachment.sig>


More information about the U-Boot mailing list