[U-Boot] [PATCH v5 2/7] generic-board: make show_board_info a weak function

Marcel Ziswiler marcel.ziswiler at toradex.com
Wed Nov 16 17:49:20 CET 2016


Make show_board_info() a weak function which allows for custom board
specific implementations thereof.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler at toradex.com>
Reviewed-by: Tom Rini <trini at konsulko.com>
Acked-by: Max Krummenacher <max.krummenacher at toradex.com>

---

Changes in v5: None
Changes in v4: None
Changes in v3:
- introduce new patch making show_board_info() a weak function which
  allows for custom board specific implementations thereof

Changes in v2: None

 common/board_info.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/board_info.c b/common/board_info.c
index 6afe98e..aa45e24 100644
--- a/common/board_info.c
+++ b/common/board_info.c
@@ -15,7 +15,7 @@ int __weak checkboard(void)
  * If the root node of the DTB has a "model" property, show it.
  * Then call checkboard().
  */
-int show_board_info(void)
+int __weak show_board_info(void)
 {
 #ifdef CONFIG_OF_CONTROL
 	DECLARE_GLOBAL_DATA_PTR;
-- 
2.5.5



More information about the U-Boot mailing list