summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorƁukasz Majewski <l.majewski@samsung.com>2012-12-06 05:23:38 +0000
committerTom Rini <trini@ti.com>2012-12-11 13:18:14 -0700
commitbf3d58bb7dc5dd4a2b15dd20663040ef43c5f795 (patch)
treef0cdb6e8661073fa759110b6064b867acc413ee3 /common
parent23b479b25c11fdb1efed9cfa84c0a6c4ff46051b (diff)
cmd:spl:fix: Prevent from a build error on boards, which don't support FDT
Do not compile in FDT related code, when it is not supported. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_spl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/cmd_spl.c b/common/cmd_spl.c
index 9ec054af3b3..e3c543b46a5 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);