diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-02 21:49:24 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-12-05 22:44:30 -0500 |
commit | 701172d1b8a90d87532e49b946966ff37f948cc2 (patch) | |
tree | f9ca4a3435c53d41cfcf7e1714434f71b6e40f07 /arch/powerpc/boot/wrapper | |
parent | 928b9695592921957289d038ee75f613d9485a0a (diff) |
[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>
Diffstat (limited to 'arch/powerpc/boot/wrapper')
-rwxr-xr-x | arch/powerpc/boot/wrapper | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper index 221b8c87f57e..b8e4856af759 100755 --- a/arch/powerpc/boot/wrapper +++ b/arch/powerpc/boot/wrapper | |||
@@ -116,6 +116,9 @@ while [ "$#" -gt 0 ]; do | |||
116 | done | 116 | done |
117 | 117 | ||
118 | if [ -n "$dts" ]; then | 118 | if [ -n "$dts" ]; then |
119 | if [ ! -r "$dts" -a -r "$object/dts/$dts" ]; then | ||
120 | dts="$object/dts/$dts" | ||
121 | fi | ||
119 | if [ -z "$dtb" ]; then | 122 | if [ -z "$dtb" ]; then |
120 | dtb="$platform.dtb" | 123 | dtb="$platform.dtb" |
121 | fi | 124 | fi |