summaryrefslogtreecommitdiff
path: root/arch/microblaze
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2011-07-21 09:47:15 +0200
committerMichal Simek <monstr@monstr.eu>2011-10-10 08:54:42 +0200
commit2267e2d132b6c5edb3312a85da1a2523437a4532 (patch)
tree3a3643cf488fae377f2cdd5de19b1f91c26843a5 /arch/microblaze
parent6cdf31124ceb0d1a87b59b638a289b38a87a43e1 (diff)
microblaze: Copy bootfile from variables
Setup bootfile. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/lib/board.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c
index d6773299e1..ca5882dd0d 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 */