* [U-Boot] Mathematics operation on uboot variables
@ 2010-11-23 12:53 Eran Y
2010-11-25 12:19 ` Detlev Zundel
0 siblings, 1 reply; 2+ messages in thread
From: Eran Y @ 2010-11-23 12:53 UTC (permalink / raw)
To: u-boot
Hi
Is there any way to use mathematics operation on uboot environment or uboot
local variables?
since $varA+$varB and $(varA+varB) just save the string.
--
View this message in context: http://old.nabble.com/Mathematics-operation-on-uboot-variables-tp30283797p30283797.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] Mathematics operation on uboot variables
2010-11-23 12:53 [U-Boot] Mathematics operation on uboot variables Eran Y
@ 2010-11-25 12:19 ` Detlev Zundel
0 siblings, 0 replies; 2+ messages in thread
From: Detlev Zundel @ 2010-11-25 12:19 UTC (permalink / raw)
To: u-boot
Hi Eran,
> Is there any way to use mathematics operation on uboot environment or uboot
> local variables?
> since $varA+$varB and $(varA+varB) just save the string.
You need to include CONFIG_CMD_SETEXPR in your configuration for such a
functionality. See common/cmd_setexpr.c.
Cheers
Detlev
--
Q: What is a compact city?
A: It's a city that can be guarded by finitely many near-sighted
policemen.
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-25 12:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-23 12:53 [U-Boot] Mathematics operation on uboot variables Eran Y
2010-11-25 12:19 ` Detlev Zundel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox