imx: ventana: Rework CONFIG_CMD_EECONFIG code to not be included in SPL
PATCH 1/1 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.
--- board/gateworks/gw_ventana/eeprom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
board/gateworks/gw_ventana/eeprom.c +2 -2
@@ -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;
Signature · 1 line
2.7.4
PATCH 1/1 imx: ventana: Rework CONFIG_CMD_EECONFIG code to not be included in SPL
Quoted 34 lines · Tom Rini
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]>--- board/gateworks/gw_ventana/eeprom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)board/gateworks/gw_ventana/eeprom.c +2
-3@@ -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; --
Quoted 2 lines
2.7.4
Thanks Tom,
Tim
PATCH 1/1 imx: ventana: Rework CONFIG_CMD_EECONFIG code to not be included in SPL
In reply to Tom RiniQuoted 7 lines · Tom Rini
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]>
PATCH 1/1 imx: ventana: Rework CONFIG_CMD_EECONFIG code to not be included in SPL
In reply to Tom RiniQuoted 26 lines · Tom Rini
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]>--- board/gateworks/gw_ventana/eeprom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)board/gateworks/gw_ventana/eeprom.c +1
-1@@ -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;
board/gateworks/gw_ventana/eeprom.c static struct ventana_eeprom_config *get_config(const char *name) · line 141
Quoted 8 lines
board/gateworks/gw_ventana/eeprom.c +1
-1@@ -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;
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================