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>
This commit is contained in:
parent
23b479b25c
commit
bf3d58bb7d
@ -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]))
|
if (call_bootm(argc, argv, subcmd_list[(int)c->cmd]))
|
||||||
return -1;
|
return -1;
|
||||||
switch ((int)c->cmd) {
|
switch ((int)c->cmd) {
|
||||||
|
#ifdef CONFIG_OF_LIBFDT
|
||||||
case SPL_EXPORT_FDT:
|
case SPL_EXPORT_FDT:
|
||||||
printf("Argument image is now in RAM: 0x%p\n",
|
printf("Argument image is now in RAM: 0x%p\n",
|
||||||
(void *)images.ft_addr);
|
(void *)images.ft_addr);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case SPL_EXPORT_ATAGS:
|
case SPL_EXPORT_ATAGS:
|
||||||
printf("Argument image is now in RAM at: 0x%p\n",
|
printf("Argument image is now in RAM at: 0x%p\n",
|
||||||
(void *)gd->bd->bi_boot_params);
|
(void *)gd->bd->bi_boot_params);
|
||||||
|
Loading…
Reference in New Issue
Block a user