From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Date: Tue, 9 Sep 2008 20:18:23 +0000 (+0200)
Subject: bootm: enable fdt support only on ppc, m68k and sparc
X-Git-Tag: v2025.01-rc5-pxa1908~21821^2~2
X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-favicon.png?a=commitdiff_plain;h=1d9af0be764960e6cc1c093e97176c3542796820;p=u-boot.git

bootm: enable fdt support only on ppc, m68k and sparc

...as done in image.c

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---

diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 861712b78b..2b4df80f99 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -251,6 +251,7 @@ static int bootm_start(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 		}
 
 #if defined(CONFIG_OF_LIBFDT)
+#if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_SPARC)
 		/* find flattened device tree */
 		ret = boot_get_fdt (flag, argc, argv, &images,
 				    &images.ft_addr, &images.ft_len);
@@ -260,6 +261,7 @@ static int bootm_start(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 		}
 
 		set_working_fdt_addr(images.ft_addr);
+#endif
 #endif
 	}