From: Tom Rini Date: Wed, 12 Dec 2012 06:15:05 -0700 Subject: [U-Boot] [PATCH] cmd:spl:fix: Prevent from a build error on boards, which don't support FDT In-Reply-To: <50C0BACD.7080608@denx.de> References: <1354807418-11509-1-git-send-email-l.majewski@samsung.com> <50C0BACD.7080608@denx.de> Message-ID: <20121212131505.GE32714@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Dec 06, 2012 at 04:33:33PM +0100, Stefano Babic wrote: > On 06/12/2012 16:23, Lukasz Majewski wrote: > > Do not compile in FDT related code, when it is not supported. > > > > Signed-off-by: Lukasz Majewski > > Signed-off-by: Kyungmin Park > > --- > > 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); > > > > Acked-by: Stefano Babic Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: