ubldr: Force 'usefdt' variable to 1 for powerpc

The fdt is gated, on powerpc, with a 'usefdt' environment variable.  Force
enable it in ubldr, so that the fdt is passed through the metadata.
This commit is contained in:
Justin Hibbits 2018-12-02 02:20:35 +00:00
parent b27a4408c2
commit 781dc30c1b

View File

@ -497,6 +497,9 @@ main(int argc, char **argv)
do_interact:
setenv("LINES", "24", 1); /* optional */
setenv("prompt", "loader>", 1);
#ifdef __powerpc__
setenv("usefdt", "1", 1);
#endif
archsw.arch_loadaddr = uboot_loadaddr;
archsw.arch_getdev = uboot_getdev;