[U-Boot] [PATCH] arch/arm/lib/board.c: fix build error
Wolfgang Denk
wd at denx.de
Sun Oct 23 23:51:11 CEST 2011
Commit dc8bbea "arm: Use getenv_ulong() in place of getenv(), strtoul"
introduced a build error for all ARM boards with network support:
board.c: In function 'board_init_r':
board.c:569: error: 's' undeclared (first use in this function)
board.c:569: error: (Each undeclared identifier is reported only once
board.c:569: error: for each function it appears in.)
Fix it.
Signed-off-by: Wolfgang Denk <wd at denx.de>
---
arch/arm/lib/board.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index c764844..367cf6b 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -441,6 +441,9 @@ void board_init_r(gd_t *id, ulong dest_addr)
#if !defined(CONFIG_SYS_NO_FLASH)
ulong flash_size;
#endif
+#if defined(CONFIG_CMD_NET)
+ char *s;
+#endif
gd = id;
--
1.7.6.2
More information about the U-Boot
mailing list