[U-Boot] common, itest: pass u-boot env variables to itest.s

Tom Rini trini at ti.com
Fri Feb 21 20:57:26 CET 2014


On Sat, Jan 25, 2014 at 07:27:12AM +0100, Heiko Schocher wrote:

> compare two U-Boot Environment variables with itest.s, example:
> 
> => print tmp ver
> tmp=U-Boot 2013.10-g75e
> ver=U-Boot 2013.10-g75eb4bc (Jan 21 2014 - 10:35:39)MPC83XX
> => print check_ub_ver
> check_ub_ver=if itest.s \${tmp} == \${ver}; then echo equal; else echo diff ;fi
> => run check_ub_ver
> diff
> => setenv tmp U-Boot 2013.10-g75eb4bc (Jan 21 2014 - 10:35:39)MPC83XX
> => print tmp ver
> tmp=U-Boot 2013.10-g75eb4bc (Jan 21 2014 - 10:35:39)MPC83XX
> ver=U-Boot 2013.10-g75eb4bc (Jan 21 2014 - 10:35:39)MPC83XX
> => run check_ub_ver
> equal
> 
> Signed-off-by: Heiko Schocher <hs at denx.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140221/9ea39740/attachment.pgp>


More information about the U-Boot mailing list