summaryrefslogtreecommitdiffstats
path: root/commands/bootm.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-12-14 11:09:13 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-12-14 13:40:17 +0100
commita46098b1d18872cc468f849f87d39b1c9038c581 (patch)
tree5eed6c0bfa1edc9a5e83cf570230a769496a77fb /commands/bootm.c
parent58a0dde1f7165b590937abf5c3374d87f67ead6b (diff)
downloadbarebox-a46098b1d18872cc468f849f87d39b1c9038c581.tar.gz
barebox-a46098b1d18872cc468f849f87d39b1c9038c581.tar.xz
ppc: switch to libfdt based oftree implementation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/bootm.c')
-rw-r--r--commands/bootm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/commands/bootm.c b/commands/bootm.c
index f97a842232..265ad4637a 100644
--- a/commands/bootm.c
+++ b/commands/bootm.c
@@ -38,6 +38,7 @@
#include <fs.h>
#include <errno.h>
#include <boot.h>
+#include <of.h>
#include <rtc.h>
#include <init.h>
#include <magicvar.h>
@@ -144,6 +145,10 @@ static int do_bootm(struct command *cmdtp, int argc, char *argv[])
}
}
+#ifdef CONFIG_OFTREE
+ data.oftree = of_get_fixed_tree();
+#endif
+
if (optind == argc) {
ret = COMMAND_ERROR_USAGE;
goto err_out;