Hi,

On Fri, Nov 11, 2011 at 1:47 PM, Simon Glass <s...@chromium.org> wrote:
> Most link scripts differ only in directory containing the start.o
> file. Make this a #define to remove this last difference.
>
> Signed-off-by: Simon Glass <s...@chromium.org>
> ---
>  Makefile |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index e7da1c0..a207e85 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -474,7 +474,9 @@ $(LDSCRIPT):        depend
>                $(MAKE) -C $(dir $@) $(notdir $@)
>
>  $(obj)u-boot.lds: $(LDSCRIPT)
> -               $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ 
> >$@
> +               $(CPP) $(CPPFLAGS) $(LDPPFLAGS) \
> +                       -DCPUDIR=$(CPUDIR) \

One more thought - this maintains current behaviour, but perhaps we
could require that there be no other start.o in U-Boot? If so, then we
should be able to omit the directory name from start.o.

Regards,
Simon

> +                       -ansi -D__ASSEMBLY__ -P - <$^ >$@
>
>  nand_spl:      $(TIMESTAMP_FILE) $(VERSION_FILE) depend
>                $(MAKE) -C nand_spl/board/$(BOARDDIR) all
> --
> 1.7.3.1
>
>
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to