Re: [U-Boot] [PATCH] ti_armv7_common: enable setexpr

2015-08-06 Thread Nishanth Menon
On 08/06/2015 10:04 AM, Tom Rini wrote: On Thu, Aug 06, 2015 at 09:48:27AM -0500, Nishanth Menon wrote: This allows us to do basic math in hush shell. For example: U-Boot# r1=10 U-Boot# r2=20 U-Boot# setexpr.l r3 $r1 + $r2 U-Boot# echo $r3 30 Reported-by: Vitaly Andrianov vita...@ti.com

[U-Boot] [PATCH] ti_armv7_common: enable setexpr

2015-08-06 Thread Nishanth Menon
This allows us to do basic math in hush shell. For example: U-Boot# r1=10 U-Boot# r2=20 U-Boot# setexpr.l r3 $r1 + $r2 U-Boot# echo $r3 30 Reported-by: Vitaly Andrianov vita...@ti.com Suggested-by: Tom Rini tr...@ti.com Signed-off-by: Nishanth Menon n...@ti.com ---

Re: [U-Boot] [PATCH] ti_armv7_common: enable setexpr

2015-08-06 Thread Tom Rini
On Thu, Aug 06, 2015 at 09:48:27AM -0500, Nishanth Menon wrote: This allows us to do basic math in hush shell. For example: U-Boot# r1=10 U-Boot# r2=20 U-Boot# setexpr.l r3 $r1 + $r2 U-Boot# echo $r3 30 Reported-by: Vitaly Andrianov vita...@ti.com Suggested-by: Tom Rini tr...@ti.com

Re: [U-Boot] [PATCH] ti_armv7_common: enable setexpr

2015-08-06 Thread Vitaly Andrianov
On 08/06/2015 11:31 AM, Tom Rini wrote: On Thu, Aug 06, 2015 at 10:08:59AM -0500, Nishanth Menon wrote: On 08/06/2015 10:04 AM, Tom Rini wrote: On Thu, Aug 06, 2015 at 09:48:27AM -0500, Nishanth Menon wrote: This allows us to do basic math in hush shell. For example: U-Boot# r1=10 U-Boot#

Re: [U-Boot] [PATCH] ti_armv7_common: enable setexpr

2015-08-06 Thread Tom Rini
On Thu, Aug 06, 2015 at 10:08:59AM -0500, Nishanth Menon wrote: On 08/06/2015 10:04 AM, Tom Rini wrote: On Thu, Aug 06, 2015 at 09:48:27AM -0500, Nishanth Menon wrote: This allows us to do basic math in hush shell. For example: U-Boot# r1=10 U-Boot# r2=20 U-Boot# setexpr.l r3 $r1 +