Patchwork [U-Boot,5/5,v2] microblaze: Copy bootfile from variables

login
register
mail settings
Submitter Michal Simek
Date Oct. 7, 2011, 7:38 a.m.
Message ID <1317973139-24315-5-git-send-email-monstr@monstr.eu>
Download mbox | patch
Permalink /patch/118246/
State Accepted
Headers show

Comments

Michal Simek - Oct. 7, 2011, 7:38 a.m.
Setup bootfile.

Signed-off-by: Michal Simek <monstr@monstr.eu>

---
v2: Move getenv assignment out of if
---
 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 d677329..ca5882d 100644
--- a/arch/microblaze/lib/board.c
+++ b/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 */