[U-Boot] [U-Boot, v4, 07/10] common/armflash: load_image returns success or failure

Tom Rini trini at konsulko.com
Mon Oct 12 17:17:59 CEST 2015


On Fri, Oct 09, 2015 at 05:18:05PM +0100, Ryan Harkin wrote:

> Change the load_image so that it returns success or failure of the
> command (using CMD_RET_SUCCESS or CMD_RET_FAILURE).
> 
> This way, hush scripts can optionally load different files depending
> upon the system configuration.
> 
> A simple example:
> 
> if afs load ${kernel_name} ${kernel_addr}; then echo loaded; else echo \
> not loaded; fi
> 
> Signed-off-by: Ryan Harkin <ryan.harkin at linaro.org>
> Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151012/f6dc5e92/attachment.sig>


More information about the U-Boot mailing list