From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Thu, 30 Jun 2011 12:46:38 +0200 Subject: [U-Boot] [PATCH 2/5] imx: Use correct imx25 reset.c In-Reply-To: <1309427865-17531-3-git-send-email-weisserm@arcor.de> References: <1309427865-17531-1-git-send-email-weisserm@arcor.de> <1309427865-17531-3-git-send-email-weisserm@arcor.de> Message-ID: <20110630104638.8877415AEB8D@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 Matthias Weisser, In message <1309427865-17531-3-git-send-email-weisserm@arcor.de> you wrote: > imx25 used the wrong reset.c from imx27 > > Signed-off-by: Matthias Weisser > --- > arch/arm/cpu/arm926ejs/mx25/Makefile | 19 +++++++++++++++---- > 1 files changed, 15 insertions(+), 4 deletions(-) > > diff --git a/arch/arm/cpu/arm926ejs/mx25/Makefile b/arch/arm/cpu/arm926ejs/mx25/Makefile > index 38d7f03..eb0e7f5 100644 > --- a/arch/arm/cpu/arm926ejs/mx25/Makefile > +++ b/arch/arm/cpu/arm926ejs/mx25/Makefile > @@ -24,18 +24,18 @@ include $(TOPDIR)/config.mk > > LIB = $(obj)lib$(SOC).o > > -COBJS = generic.o timer.o > -MX27OBJS = reset.o > +COBJS = generic.o timer.o reset.o > > SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) > -SRCS += $(addprefix $(SRCTREE)/arch/arm/cpu/arm926ejs/mx27/,$(MX27OBJS:.o=.c)) > -OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS) $(MX27OBJS)) > +OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) > > all: $(obj).depend $(LIB) > > $(LIB): $(OBJS) > $(call cmd_link_o_target, $(OBJS)) > > +$(OBJS) : $(TOPDIR)/include/asm/arch/asm-offsets.h > + > ######################################################################### > > # defines $(obj).depend target > @@ -44,3 +44,14 @@ include $(SRCTREE)/rules.mk > sinclude $(obj).depend > > ######################################################################### > + > +$(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 > -- NAK. See previous comments to Setano's postings. It makes no sense to copy identical lines into a large number of 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 Uncertain fortune is thoroughly mastered by the equity of the calcu- lation. - Blaise Pascal