diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-02-14 20:44:42 -0600 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-03-25 22:16:15 +0100 |
commit | d058698fd2d9f769ff38ac53c8708b3fdd314f2d (patch) | |
tree | 9a41de69112983ebd505483a564df6e74dd69e57 /include | |
parent | 0d48926c87ec96f974a6ac4034f4a2f2eab3255f (diff) | |
download | u-boot-imx-d058698fd2d9f769ff38ac53c8708b3fdd314f2d.zip u-boot-imx-d058698fd2d9f769ff38ac53c8708b3fdd314f2d.tar.gz u-boot-imx-d058698fd2d9f769ff38ac53c8708b3fdd314f2d.tar.bz2 |
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 */ |