[PPC BOOT] Find device-tree source file in default directory.

Scott Wood scottwood at freescale.com
Tue Dec 4 02:08:44 EST 2007


On Mon, Dec 03, 2007 at 02:49:24AM +0000, David Woodhouse wrote:
> 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 at infradead.org>
> 
> --- a/arch/powerpc/boot/wrapper
> +++ b/arch/powerpc/boot/wrapper
> @@ -116,6 +118,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

Shouldn't this be $srctree (which doesn't seem to be passed to wrapper at
the moment), not $object?

BTW, if we do this, we should remove the part in arch/powerpc/boot/Makefile
where this is done.

-Scott



More information about the Linuxppc-dev mailing list