Skip to content
Snippets Groups Projects
Commit a9ad18c9 authored by Marcel Ziswiler's avatar Marcel Ziswiler Committed by Tom Rini
Browse files

generic-board: allow showing custom board info


Allow showing custom board info from a checkboard() function being
implemented if CONFIG_CUSTOM_BOARDINFO is specified.  Previously the
device tree model was always displayed not taking any
CONFIG_CUSTOM_BOARDINFO into account.

Signed-off-by: default avatarMarcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 7a3e70cf
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ int __weak checkboard(void) ...@@ -17,7 +17,7 @@ int __weak checkboard(void)
*/ */
int show_board_info(void) int show_board_info(void)
{ {
#ifdef CONFIG_OF_CONTROL #if defined(CONFIG_OF_CONTROL) && !defined(CONFIG_CUSTOM_BOARDINFO)
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
const char *model; const char *model;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment