瀏覽代碼

microblaze: Copy bootfile from variables

Setup bootfile.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Michal Simek 13 年之前
父節點
當前提交
2267e2d132
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      arch/microblaze/lib/board.c

+ 4 - 0
arch/microblaze/lib/board.c

@@ -186,6 +186,10 @@ void board_init (void)
 	uchar enetaddr[6];
 	eth_getenv_enetaddr("ethaddr", enetaddr);
 	printf("MAC:   %pM\n", enetaddr);
+
+	s = getenv("bootfile");
+	if (s != NULL)
+		copy_filename(BootFile, s, sizeof(BootFile));
 #endif
 
 	/* main_loop */