diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-02-15 02:44:42 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-03-25 21:16:15 (GMT) |
commit | d058698fd2d9f769ff38ac53c8708b3fdd314f2d (patch) | |
tree | 9a41de69112983ebd505483a564df6e74dd69e57 /include | |
parent | 0d48926c87ec96f974a6ac4034f4a2f2eab3255f (diff) | |
download | u-boot-d058698fd2d9f769ff38ac53c8708b3fdd314f2d.tar.xz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/config_cmd_all.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/config_cmd_all.h b/include/config_cmd_all.h index f3965ef..69276a3 100644 --- a/include/config_cmd_all.h +++ b/include/config_cmd_all.h @@ -70,6 +70,7 @@ #define CONFIG_CMD_SAVES /* save S record dump */ #define CONFIG_CMD_SCSI /* SCSI Support */ #define CONFIG_CMD_SDRAM /* SDRAM DIMM SPD info printout */ +#define CONFIG_CMD_SETEXPR /* setexpr support */ #define CONFIG_CMD_SETGETDCR /* DCR support on 4xx */ #define CONFIG_CMD_SNTP /* SNTP support */ #define CONFIG_CMD_SPI /* SPI utility */ |