Skip to content

Commit

Permalink
[POWERPC] Find device-tree source file in default directory
Browse files Browse the repository at this point in the history
If a .dts file is given to the bootwrapper script without a full path
name, look in a sensible place for it.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
David Woodhouse authored and Paul Mackerras committed Dec 6, 2007
1 parent 928b969 commit 701172d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/boot/wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ while [ "$#" -gt 0 ]; do
done

if [ -n "$dts" ]; then
if [ ! -r "$dts" -a -r "$object/dts/$dts" ]; then
dts="$object/dts/$dts"
fi
if [ -z "$dtb" ]; then
dtb="$platform.dtb"
fi
Expand Down

0 comments on commit 701172d

Please sign in to comment.