From patchwork Thu Dec 6 15:23:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?=C5=81ukasz_Majewski?= X-Patchwork-Id: 204281 X-Patchwork-Delegate: trini@ti.com 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 4C9562C0100 for ; Fri, 7 Dec 2012 02:24:04 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0BF524A2BE; Thu, 6 Dec 2012 16:24:03 +0100 (CET) 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 ky9Wdbxq9FAT; Thu, 6 Dec 2012 16:24:02 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5A3EE4A2AA; Thu, 6 Dec 2012 16:24:01 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E5DD44A2B0 for ; Thu, 6 Dec 2012 16:23:59 +0100 (CET) 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 GbxTMNY+9h93 for ; Thu, 6 Dec 2012 16:23:59 +0100 (CET) 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 mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by theia.denx.de (Postfix) with ESMTP id B21634A2AA for ; Thu, 6 Dec 2012 16:23:57 +0100 (CET) Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MEM00JZ183TO1O0@mailout2.samsung.com> for u-boot@lists.denx.de; Fri, 07 Dec 2012 00:23:53 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-96-50c0b88902fa Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 5A.DC.01231.988B0C05; Fri, 07 Dec 2012 00:23:53 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MEM00DL883MD860@mmp2.samsung.com> for u-boot@lists.denx.de; Fri, 07 Dec 2012 00:23:53 +0900 (KST) From: Lukasz Majewski To: u-boot@lists.denx.de Date: Thu, 06 Dec 2012 16:23:38 +0100 Message-id: <1354807418-11509-1-git-send-email-l.majewski@samsung.com> X-Mailer: git-send-email 1.7.10 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFJMWRmVeSWpSXmKPExsVy+t9jQd3OHQcCDO5PE7Z4u7eT3YHR4+yd HYwBjFFcNimpOZllqUX6dglcGctvrGIp+MtW8ersPuYGxousXYwcHBICJhLdJ3i6GDmBTDGJ C/fWs3UxcnEICUxnlHj3/iAjhLOYSaJj5jpmkCo2AT2Jz3efMoHYIgISEr/6rzKC2MwClRJr 191iAbGFBWIl2jrmsoHYLAKqEpendoDFeQXcJNpXrGaF2CYv8fR+H9sERu4FjAyrGEVTC5IL ipPScw31ihNzi0vz0vWS83M3MYJ9+ExqB+PKBotDjAIcjEo8vJbV+wOEWBPLiitzDzFKcDAr ifDGdBwIEOJNSaysSi3Kjy8qzUktPsQozcGiJM7b7JESICSQnliSmp2aWpBaBJNl4uCUamAU /biCLWnb+0tJxqW2wqWztzqork1LCHj/4YEJb3qcdazR+dOt3y2a3r7Y+3jOyZ3/N9y4KPTU N9Z19gNfs18iueVOHTyXdr1Z/1Hc41cH+7qkRzHvv5q7x3tHszTXM3jr/zxd+One7Qy+hOsi JpPlbk2f/VHJ99lZOdYb4cIKbnMPRfIsOOKrxFKckWioxVxUnAgA9VtKod0BAAA= Cc: Kyungmin Park Subject: [U-Boot] [PATCH] cmd:spl:fix: Prevent from a build error on boards, which don't support FDT X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 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 Do not compile in FDT related code, when it is not supported. Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park Acked-by: Stefano Babic --- common/cmd_spl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/common/cmd_spl.c b/common/cmd_spl.c index 9ec054a..e3c543b 100644 --- a/common/cmd_spl.c +++ b/common/cmd_spl.c @@ -130,10 +130,12 @@ static int spl_export(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) if (call_bootm(argc, argv, subcmd_list[(int)c->cmd])) return -1; switch ((int)c->cmd) { +#ifdef CONFIG_OF_LIBFDT case SPL_EXPORT_FDT: printf("Argument image is now in RAM: 0x%p\n", (void *)images.ft_addr); break; +#endif case SPL_EXPORT_ATAGS: printf("Argument image is now in RAM at: 0x%p\n", (void *)gd->bd->bi_boot_params);