CONFIG_CMD_SETEXPR被include/config_cmd_all.h包含,所以在板子相关的配置文件中加上#define CONFIG_CMD_SETEXPR, setexpr命令就会被加入进来
1. setexpr命令帮助信息
——————————————————–
setexpr – set environment variable as the result of eval expression
Usage:
setexpr [.b, .w, .l] name value1 op value2
– set environment variable ’name’ to the result of the evaluated
express specified by op. op can be , |, ^, +, -, *, /, %
size argument is only meaningful if value1 and/or value2 are memory addresses
——————————————————–
2. setexpr使用方法
3. FAQ