From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Thu, 25 Nov 2010 13:19:39 +0100 Subject: [U-Boot] Mathematics operation on uboot variables In-Reply-To: <30283797.post@talk.nabble.com> (Eran Y.'s message of "Tue, 23 Nov 2010 04:53:13 -0800 (PST)") References: <30283797.post@talk.nabble.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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