Add setexpr command
authorKumar Gala <galak@kernel.crashing.org>
Fri, 15 Feb 2008 02:44:42 +0000 (20:44 -0600)
committerWolfgang Denk <wd@denx.de>
Tue, 25 Mar 2008 21:16:15 +0000 (22:16 +0100)
commitd058698fd2d9f769ff38ac53c8708b3fdd314f2d
tree9a41de69112983ebd505483a564df6e74dd69e57
parent0d48926c87ec96f974a6ac4034f4a2f2eab3255f
Add setexpr command

Add a simple expr style command that will set an env variable as the result
of the command.  This allows us to do simple math in shell.  The following
operations are supported: &, |, ^, +, -, *, /.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
common/Makefile
common/cmd_setexpr.c [new file with mode: 0644]
include/config_cmd_all.h