]> git.sur5r.net Git - u-boot/commit
common/armflash: load_image returns success or failure
authorRyan Harkin <ryan.harkin@linaro.org>
Fri, 9 Oct 2015 16:18:05 +0000 (17:18 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 11 Oct 2015 21:12:04 +0000 (17:12 -0400)
commit6607d397c2a5ecd2fe7c940331da29692bab671e
tree62d40f33bab045645c29f1d0b81c8e82b22260a0
parent1a9717fb30c5cbb70dcc5d53791670967dfe3487
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>
common/cmd_armflash.c