From: Michal Simek Date: Wed, 31 Aug 2011 10:35:17 +0200 Subject: [U-Boot] [PATCH 06/10] microblaze: Copy bootfile from variables In-Reply-To: <1314779721-1113-6-git-send-email-monstr@monstr.eu> References: <1314779721-1113-1-git-send-email-monstr@monstr.eu> <1314779721-1113-2-git-send-email-monstr@monstr.eu> <1314779721-1113-3-git-send-email-monstr@monstr.eu> <1314779721-1113-4-git-send-email-monstr@monstr.eu> <1314779721-1113-5-git-send-email-monstr@monstr.eu> <1314779721-1113-6-git-send-email-monstr@monstr.eu> Message-ID: <1314779721-1113-7-git-send-email-monstr@monstr.eu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Setup bootfile. Signed-off-by: Michal Simek --- arch/microblaze/lib/board.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) 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 */ -- 1.5.5.6