From: Nishanth Menon Date: Thu, 6 Aug 2015 09:48:27 -0500 Subject: [U-Boot] [PATCH] ti_armv7_common: enable setexpr Message-ID: <1438872507-26253-1-git-send-email-nm@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This allows us to do basic math in hush shell. For example: U-Boot# r1=10 U-Boot# r2=20 U-Boot# setexpr.l r3 $r1 + $r2 U-Boot# echo $r3 30 Reported-by: Vitaly Andrianov Suggested-by: Tom Rini Signed-off-by: Nishanth Menon --- include/configs/ti_armv7_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/ti_armv7_common.h b/include/configs/ti_armv7_common.h index 5a4fd2d5552f..d9cd90002ca7 100644 --- a/include/configs/ti_armv7_common.h +++ b/include/configs/ti_armv7_common.h @@ -115,6 +115,7 @@ #define CONFIG_SYS_MALLOC_LEN (16 << 20) #endif #define CONFIG_SYS_HUSH_PARSER +#define CONFIG_CMD_SETEXPR #define CONFIG_SYS_PROMPT "U-Boot# " #define CONFIG_SYS_CONSOLE_INFO_QUIET #define CONFIG_BAUDRATE 115200 -- 2.1.4