commit | 37f31705f5fb781f8b594b132d482fb83fb41a50 | [log] [tgz] |
---|---|---|
author | Ryan Harkin <ryan.harkin@linaro.org> | Fri Oct 09 17:18:04 2015 +0100 |
committer | Tom Rini <trini@konsulko.com> | Sun Oct 11 17:12:04 2015 -0400 |
tree | 5d37e9de161b7e56a89eeace53b515a0e6245364 | |
parent | 6abfbf4374a490cd1f340f074e348d882359dfa2 [diff] |
common/armflash: add command to check if image exists 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>