1
0
Fork 0

[POWERPC] Find device-tree source file in default directory

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>
hifive-unleashed-5.1
David Woodhouse 2007-12-03 13:49:24 +11:00 committed by Paul Mackerras
parent 928b969559
commit 701172d1b8
1 changed files with 3 additions and 0 deletions

View File

@ -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