[U-Boot] [PATCH 1/2] MX5: Update to autogenerated asm-offsets.h

Wolfgang Denk wd at denx.de
Thu Jun 30 12:34:02 CEST 2011


Dear Stefano Babic,

In message <1309426950-20987-1-git-send-email-sbabic at denx.de> you wrote:
> On i.MX5, the asm-offsets.h file is not yet generated as it should be.
> 
> Signed-off-by: Stefano Babic <sbabic at denx.de>
> CC: Matthias Weisser <weisserm at arcor.de>
> ---
>  arch/arm/cpu/armv7/mx5/Makefile             |   13 +++++
>  arch/arm/cpu/armv7/mx5/asm-offsets.c        |   76 +++++++++++++++++++++++++++
>  arch/arm/include/asm/arch-mx5/asm-offsets.h |   55 -------------------
>  arch/arm/include/asm/arch-mx5/imx-regs.h    |   18 ++++++
>  4 files changed, 107 insertions(+), 55 deletions(-)
>  create mode 100644 arch/arm/cpu/armv7/mx5/asm-offsets.c
>  delete mode 100644 arch/arm/include/asm/arch-mx5/asm-offsets.h
> 
> diff --git a/arch/arm/cpu/armv7/mx5/Makefile b/arch/arm/cpu/armv7/mx5/Makefile
> index e8be9c9..5d53f6a 100644
> --- a/arch/arm/cpu/armv7/mx5/Makefile
> +++ b/arch/arm/cpu/armv7/mx5/Makefile
> @@ -45,4 +45,17 @@ include $(SRCTREE)/rules.mk
>  
>  sinclude $(obj).depend
>  
> +lowlevel_init.o : $(TOPDIR)/include/asm/arch/asm-offsets.h
> +
>  #########################################################################
> +
> +$(TOPDIR)/include/asm/arch/asm-offsets.h:	$(TOPDIR)/include/autoconf.mk.dep \
> +	./asm-offsets.s
> +	@echo Generating $@
> +	$(TOPDIR)/tools/scripts/make-asm-offsets ./asm-offsets.s $@
> +
> +asm-offsets.s:	$(TOPDIR)/include/autoconf.mk.dep \
> +	./asm-offsets.c
> +	$(CC) -DDO_DEPS_ONLY \
> +		$(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \
> +		-o $@ ./asm-offsets.c -c -S

See previous message.  It is inherently wrong to copy these lines to
several (and potentially many) Makefiles.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
What's the sound a name makes when it's dropped?


More information about the U-Boot mailing list