
12 Oct
2015
12 Oct
'15
5:17 p.m.
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@linaro.org Reviewed-by: Linus Walleij linus.walleij@linaro.org
Applied to u-boot/master, thanks!
--
Tom