From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Mathematics operation on uboot variables
Date: Thu, 25 Nov 2010 13:19:39 +0100 [thread overview]
Message-ID: <m262vliois.fsf@ohwell.denx.de> (raw)
In-Reply-To: <30283797.post@talk.nabble.com> (Eran Y.'s message of "Tue, 23 Nov 2010 04:53:13 -0800 (PST)")
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
prev parent reply other threads:[~2010-11-25 12:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-23 12:53 [U-Boot] Mathematics operation on uboot variables Eran Y
2010-11-25 12:19 ` Detlev Zundel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m262vliois.fsf@ohwell.denx.de \
--to=dzu@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.