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

Nishanth Menon nm at ti.com
Thu Aug 6 17:08:59 CEST 2015


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 <vitalya at ti.com>
>> Suggested-by: Tom Rini <trini at ti.com>
>> Signed-off-by: Nishanth Menon <nm at ti.com>
> 
> This needs to be done in the configs/ files now instead as we have
> CMD_EXPR there.  In fact I'm not sure right now which would win, the
> define here or the disable currently in the config files :)
> 
yeah, I do many defconfigs define CONFIG_CMD_SETEXPR..

We dont have a common config file there(similar to ti_armv7_common) ..
we'd have to introduce this for every board config then... is'nt that
in-efficient?

-- 
Regards,
Nishanth Menon


More information about the U-Boot mailing list