[U-Boot] [U-Boot, v4, 06/10] common/armflash: add command to check if image exists

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


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

> Add a command to the ARM flash support to check if an image exists or
> not.
> 
> If the image is found, it will return CMD_RET_SUCCESS, else
> CMD_RET_FAILURE.  This allows hush scripts to conditionally load images.
> 
> A simple example:
> 
> if afs exists ${kernel_name}; then echo found; else echo \
> not found; 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/b7539e83/attachment.sig>


More information about the U-Boot mailing list