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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=341391

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;