Explorar o código

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

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Grant Likely %!s(int64=17) %!d(string=hai) anos
pai
achega
a7d7eca791
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      common/cmd_bootm.c

+ 2 - 0
common/cmd_bootm.c

@@ -834,9 +834,11 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
 			of_flat_tree += 4 - tail;
 		}
 
+#ifndef CFG_NO_FLASH
 		/* move the blob if it is in flash (set of_data to !null) */
 		if (addr2info ((ulong)of_flat_tree) != NULL)
 			of_data = (ulong)of_flat_tree;
+#endif
 
 
 #if defined(CONFIG_OF_FLAT_TREE)