From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 12 Oct 2015 11:17:59 -0400 Subject: [U-Boot] [U-Boot, v4, 07/10] common/armflash: load_image returns success or failure In-Reply-To: <1444407488-32646-8-git-send-email-ryan.harkin@linaro.org> References: <1444407488-32646-8-git-send-email-ryan.harkin@linaro.org> Message-ID: <20151012151759.GC23893@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Oct 09, 2015 at 05:18:05PM +0100, Ryan Harkin wrote: > 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 > Reviewed-by: Linus Walleij 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: