generic-board: allow showing custom board info
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Sat, 18 Apr 2015 00:06:52 +0000 (02:06 +0200)
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>
Sat, 18 Apr 2015 00:06:52 +0000 (02:06 +0200)
Allow showing custom board info from a checkboard() function being
implemented if CONFIG_CUSTOM_BOARDINFO is specified.

common/board_info.c

index 42d0641294a86c0c632213dd8a1ed52e96bbd7be..a692f74904ca47f24e22beaa0f2c2befbe7c828f 100644 (file)
@@ -19,7 +19,7 @@ int __weak checkboard(void)
  */
 int show_board_info(void)
 {
-#ifdef CONFIG_OF_CONTROL
+#if defined(CONFIG_OF_CONTROL) && !defined(CONFIG_CUSTOM_BOARDINFO)
        DECLARE_GLOBAL_DATA_PTR;
        const char *model;