diff options
| author | Tom Rini <[email protected]> | 2018-01-03 09:15:22 -0500 |
|---|---|---|
| committer | Stefano Babic <[email protected]> | 2018-01-12 14:28:04 +0100 |
| commit | c10b1c43fdd80fe01ad527e6d024bfaa19eb361a (patch) | |
| tree | 99469809a4a2d662c55e4155007dda9056ec97b4 | |
| parent | 20b9f2eaf5fbb1e7befbdc4f7863fd69c942d744 (diff) | |
imx: ventana: Rework CONFIG_CMD_EECONFIG code to not be included in SPL
The command can only be used from full U-Boot, so do not build it into
SPL.
Cc: Stefano Babic <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Tim Harvey <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Acked-by: Tim Harvey <[email protected]>
Reviewed-by: Fabio Estevam <[email protected]>
| -rw-r--r-- | board/gateworks/gw_ventana/eeprom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/gateworks/gw_ventana/eeprom.c b/board/gateworks/gw_ventana/eeprom.c index 2c07a84fffc..a435dd9fb7b 100644 --- a/board/gateworks/gw_ventana/eeprom.c +++ b/board/gateworks/gw_ventana/eeprom.c @@ -119,7 +119,7 @@ struct ventana_eeprom_config econfig[] = { { /* Sentinel */ } }; -#ifdef CONFIG_CMD_EECONFIG +#if defined(CONFIG_CMD_EECONFIG) && !defined(CONFIG_SPL_BUILD) static struct ventana_eeprom_config *get_config(const char *name) { struct ventana_eeprom_config *cfg = econfig; @@ -135,7 +135,7 @@ static struct ventana_eeprom_config *get_config(const char *name) static u8 econfig_bytes[sizeof(ventana_info.config)]; static int econfig_init = -1; -int do_econfig(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +static int do_econfig(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { struct ventana_eeprom_config *cfg; struct ventana_board_info *info = &ventana_info; |
