commit | 6607d397c2a5ecd2fe7c940331da29692bab671e | [log] [tgz] |
---|---|---|
author | Ryan Harkin <ryan.harkin@linaro.org> | Fri Oct 09 17:18:05 2015 +0100 |
committer | Tom Rini <trini@konsulko.com> | Sun Oct 11 17:12:04 2015 -0400 |
tree | 62d40f33bab045645c29f1d0b81c8e82b22260a0 | |
parent | 1a9717fb30c5cbb70dcc5d53791670967dfe3487 [diff] |
common/armflash: load_image returns success or failure 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@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>