From: Wolfgang Denk Date: Thu, 30 Jun 2011 12:34:02 +0200 Subject: [U-Boot] [PATCH 1/2] MX5: Update to autogenerated asm-offsets.h In-Reply-To: <1309426950-20987-1-git-send-email-sbabic@denx.de> References: <1309426950-20987-1-git-send-email-sbabic@denx.de> Message-ID: <20110630103402.ACECC15AEB8D@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Stefano Babic, In message <1309426950-20987-1-git-send-email-sbabic@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 > CC: Matthias Weisser > --- > 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?