Patchwork [U-Boot,06/10] microblaze: Copy bootfile from variables

login
register
mail settings
Submitter Michal Simek
Date Aug. 31, 2011, 8:35 a.m.
Message ID <1314779721-1113-7-git-send-email-monstr@monstr.eu>
Download mbox | patch
Permalink /patch/112459/
State Changes Requested
Headers show

Comments

Michal Simek - Aug. 31, 2011, 8:35 a.m.
Setup bootfile.

Signed-off-by: Michal Simek <monstr@monstr.eu>
---
 arch/microblaze/lib/board.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Patch

diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c
index e8f4c5b..c00d96b 100644
--- a/arch/microblaze/lib/board.c
+++ b/arch/microblaze/lib/board.c
@@ -187,6 +187,10 @@  void board_init (void)
 	uchar enetaddr[6];
 	eth_getenv_enetaddr("ethaddr", enetaddr);
 	printf("MAC:   %pM\n", enetaddr);
+
+	if ((s = getenv ("bootfile")) != NULL) {
+		copy_filename (BootFile, s, sizeof (BootFile));
+	}
 #endif
 
 	/* main_loop */