pxe: prepend fdtdir to DTB name irrespective of source
authorStephen Warren <swarren@nvidia.com>
Wed, 12 Feb 2014 21:30:04 +0000 (14:30 -0700)
committerTom Rini <trini@ti.com>
Fri, 21 Feb 2014 16:06:13 +0000 (11:06 -0500)
commite22361af0758c7ebbff6fe375f805bc3697ce30f
tree071f5b862baaeba8ce2f76d45c7bb0973f54f626
parent102c051fccaf43bca4245d38519c9520ee0b4ff4
pxe: prepend fdtdir to DTB name irrespective of source

The directory name from an fdtdir directive in a PXE config file should
always be pre-pended to the DTB filename; it shouldn't matter whether
the DTB filename came from the $fdtfile environment variable, or whether
it was constructed dynamically from ${soc}-${board}.dtb. Fix the code to
always prepend the directory name.

Reported-by: Dennis Gilmore <dennis@ausil.us>
Fixes: c61d94d86035 ("pxe: implement fdtdir extlinux.conf tag")
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Dennis Gilmore <dennis@ausil.us>
Tested-by: Dennis Gilmore <dennis@ausil.us>
common/cmd_pxe.c