Fix test otherwise we try to load a fdtfile for boards which do not have use_fdt set.

This commit is contained in:
sevan 2017-10-08 00:35:26 +00:00
parent 391a41d919
commit f7566f78e3
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ if test "${kernel}" = "" ; then
exit
fi
if test "1" -eq ${use_fdt} ; then
if test "${use_fdt}" = "1" ; then
fatload mmc ${mmcpart} ${kernel_addr_r} ${kernel}
fatload mmc ${mmcpart} ${fdt_addr_r} ${fdtfile}
fdt addr ${fdt_addr_r}