[U-Boot] [PATCH 4/6] Define CPUDIR for the .lds link script
Simon Glass
sjg at chromium.org
Sat Nov 12 04:59:53 CET 2011
Hi,
On Fri, Nov 11, 2011 at 1:47 PM, Simon Glass <sjg at 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 <sjg at 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
>
>
More information about the U-Boot
mailing list