From patchwork Fri Oct 7 07:38:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 118246 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 96F7DB70C9 for ; Fri, 7 Oct 2011 18:40:02 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 33F222900F; Fri, 7 Oct 2011 09:39:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id huOzArNBIeMc; Fri, 7 Oct 2011 09:39:40 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3E6FA28FED; Fri, 7 Oct 2011 09:39:23 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 50FCD28F27 for ; Fri, 7 Oct 2011 09:39:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h1RsUAlWSLXh for ; Fri, 7 Oct 2011 09:39:16 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-bw0-f44.google.com (mail-bw0-f44.google.com [209.85.214.44]) by theia.denx.de (Postfix) with ESMTPS id 0A79F28ED8 for ; Fri, 7 Oct 2011 09:39:07 +0200 (CEST) Received: by mail-bw0-f44.google.com with SMTP id q10so4098276bka.3 for ; Fri, 07 Oct 2011 00:39:07 -0700 (PDT) Received: by 10.204.142.82 with SMTP id p18mr1046358bku.273.1317973147261; Fri, 07 Oct 2011 00:39:07 -0700 (PDT) Received: from localhost ([178.23.216.97]) by mx.google.com with ESMTPS id x4sm725004fad.1.2011.10.07.00.39.06 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Oct 2011 00:39:06 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Fri, 7 Oct 2011 09:38:59 +0200 Message-Id: <1317973139-24315-5-git-send-email-monstr@monstr.eu> X-Mailer: git-send-email 1.5.5.1 In-Reply-To: <1317973139-24315-4-git-send-email-monstr@monstr.eu> References: <1317973139-24315-1-git-send-email-monstr@monstr.eu> <1317973139-24315-2-git-send-email-monstr@monstr.eu> <1317973139-24315-3-git-send-email-monstr@monstr.eu> <1317973139-24315-4-git-send-email-monstr@monstr.eu> Subject: [U-Boot] [PATCH 5/5 v2] microblaze: Copy bootfile from variables X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Setup bootfile. Signed-off-by: Michal Simek --- v2: Move getenv assignment out of if --- 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 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 */