mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
cmd: define CMD_DATA_SIZE when CONFIG_CMD_SETEXPR is selected
The setexpr shell command calls cmd_get_data_size() which is only built when CMD_DATA_SIZE is defined. We need to define CMD_DATA_SIZE if CONFIG_CMD_SETEXPR is selected or the build will fail if no other command selecting this option is enabled. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
This commit is contained in:
parent
d760a5efb9
commit
75846445ed
1 changed files with 2 additions and 1 deletions
|
@ -109,7 +109,8 @@ int cmd_process_error(cmd_tbl_t *cmdtp, int err);
|
|||
#if defined(CONFIG_CMD_MEMORY) || \
|
||||
defined(CONFIG_CMD_I2C) || \
|
||||
defined(CONFIG_CMD_ITEST) || \
|
||||
defined(CONFIG_CMD_PCI)
|
||||
defined(CONFIG_CMD_PCI) || \
|
||||
defined(CONFIG_CMD_SETEXPR)
|
||||
#define CMD_DATA_SIZE
|
||||
extern int cmd_get_data_size(char* arg, int default_size);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue