mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
move cmd_get_data_size to command.c
add CMD_DATA_SIZE macro to enable it Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
@ -78,6 +78,15 @@ extern int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *
|
||||
|
||||
typedef void command_t (cmd_tbl_t *, int, int, char *[]);
|
||||
|
||||
#if defined(CONFIG_CMD_MEMORY) \
|
||||
|| defined(CONFIG_CMD_I2C) \
|
||||
|| defined(CONFIG_CMD_ITEST) \
|
||||
|| defined(CONFIG_CMD_PCI) \
|
||||
|| defined(CONFIG_CMD_PORTIO)
|
||||
#define CMD_DATA_SIZE
|
||||
extern int cmd_get_data_size(char* arg, int default_size);
|
||||
#endif
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user