]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
generic-board: make show_board_info a weak function
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Wed, 16 Nov 2016 16:49:20 +0000 (17:49 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 28 Nov 2016 20:10:32 +0000 (15:10 -0500)
Make show_board_info() a weak function which allows for custom board
specific implementations thereof.

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

index 6afe98edeee936ebf4313cfdcad1e11def5a8934..aa45e24b34603751c8e21cae4c631bd41eb54b1a 100644 (file)
@@ -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;