This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ARM platform porting problem


On Thu, Oct 28, 1999 at 01:38:32PM -0600, Gary Thomas wrote:
> 
> On 28-Oct-99 Grant Edwards wrote:
> > On Thu, Oct 28, 1999 at 02:08:58PM -0500, Grant Edwards wrote:
> >
> > How come you can work on something all day an never get anywhere, but
> > 30 seconds after you post a question about it, you have to say:
> > 
> > "never mind, I got it to work"
> > 
> > I'm not sure what I was doing wrong before, but now I've got listings
> > that show what I expect them to.
> 
> Any ideas what you did to change the results?  I ask because I saw the
> same errant behaviour as you. Here's how I got my listing:
> 
> arm-elf-gcc  -c  -I/work/xx_test/install/include -I. -I/work/ecc-v1_2_9/ecc/hal/arm/arch/current/src -mcpu=arm7tdmi -D__CL7211 
> -Wall -Wpointer-arith
> -Wstrict-prototypes -Winline -Wundef -ffunction-sections -fdata-sections -g -O2 -Wp,-MD,hal_arm_vectors.tmp -o hal_arm_vectors.
> o
> /work/ecc-v1_2_9/ecc/hal/arm/arch/current/src/vectors.S -save-temps
> arm-elf-as -al vectors.s -o vectors.o >out 2>&1
> more out
> 
> Note: I didn't invent the first line.  I just cut&pasted it from my 
> normal eCos kernel build.

Me too.  The only thing that I am conscious of changing was the name of the listing
file.  It was vectors.lst and it's now hal_arm_vectors.lst.  

The makefile entry (which I generated with make -p) in
hal/arm/arch/v1_2_1/src/makefile is:

$(PACKAGE)_vectors.o: vectors.S
        $(CXX)  -c $(INCLUDE_PATH) $(CFLAGS) -Wa,-ahlnd=$(@:.o=.lst)  -Wp,-MD,$(@:.o=.tmp) -o $@ $< 
        @echo > $(@:.o=.d)
        @echo $@ ':' $< '\' >> $(@:.o=.d)
        @$(TAIL) -n +2 $(@:.o=.tmp) >> $(@:.o=.d)
        @$(RM) $(@:.o=.tmp)

It's possible that the other options to -W,-a weren't exactly the same
before, but I don't have the old command line anymore.

-- 
Grant


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]