[U-Boot] [PATCH 20/42] board: freescale: ls1046aqds: fix build error
Biwen Li
biwen.li at nxp.com
Thu Nov 14 10:36:19 UTC 2019
This fixes build error as follows:
- board/freescale/ls1046aqds/built-in.o: In function `board_early_init_f:
board/freescale/ls1046aqds/ls1046aqds.c:333: undefined reference to
`i2c_early_init_f'
Signed-off-by: Biwen Li <biwen.li at nxp.com>
---
board/freescale/ls1046aqds/ls1046aqds.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/board/freescale/ls1046aqds/ls1046aqds.c b/board/freescale/ls1046aqds/ls1046aqds.c
index 6a51dcd649..6ab56279d7 100644
--- a/board/freescale/ls1046aqds/ls1046aqds.c
+++ b/board/freescale/ls1046aqds/ls1046aqds.c
@@ -315,8 +315,10 @@ int board_early_init_f(void)
u8 uart;
#endif
+#ifdef CONFIG_SYS_I2C
#ifdef CONFIG_SYS_I2C_EARLY_INIT
i2c_early_init_f();
+#endif
#endif
fsl_lsch2_early_init_f();
--
2.17.1
More information about the U-Boot
mailing list