Skip to content
Snippets Groups Projects
Commit a7d7eca7 authored by Grant Likely's avatar Grant Likely Committed by Wolfgang Denk
Browse files

Bugfix: make bootm+libfdt compile on boards with no flash

parent 87eb200e
No related branches found
No related tags found
No related merge requests found
...@@ -834,9 +834,11 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag, ...@@ -834,9 +834,11 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
of_flat_tree += 4 - tail; of_flat_tree += 4 - tail;
} }
#ifndef CFG_NO_FLASH
/* move the blob if it is in flash (set of_data to !null) */ /* move the blob if it is in flash (set of_data to !null) */
if (addr2info ((ulong)of_flat_tree) != NULL) if (addr2info ((ulong)of_flat_tree) != NULL)
of_data = (ulong)of_flat_tree; of_data = (ulong)of_flat_tree;
#endif
#if defined(CONFIG_OF_FLAT_TREE) #if defined(CONFIG_OF_FLAT_TREE)
......
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