From d058698fd2d9f769ff38ac53c8708b3fdd314f2d Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 14 Feb 2008 20:44:42 -0600 Subject: 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 --- include/config_cmd_all.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/config_cmd_all.h') diff --git a/include/config_cmd_all.h b/include/config_cmd_all.h index f3965efe9..69276a389 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 */ -- cgit v1.2.3