diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-12-14 11:09:13 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-12-15 20:11:47 +0100 |
commit | 609c4a988cf56e734bdad2b6085f3416fcdf90ee (patch) | |
tree | de1b081822c365333b37e3775837b8e9877f01d1 /commands | |
parent | 07fc87d530519360b1f9c7ec7ac7d834b4c48525 (diff) | |
download | barebox-609c4a988cf56e734bdad2b6085f3416fcdf90ee.tar.gz barebox-609c4a988cf56e734bdad2b6085f3416fcdf90ee.tar.xz |
ppc: switch to libfdt based oftree implementation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/bootm.c | 5 |
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; |