This is the mail archive of the ecos-discuss@sources.redhat.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: hal_mips_rm7000_ocelot.cdl


The cdl expands to the following make target

$(PREFIX)/bin/gdb_module.srec: $(wildcard $(PREFIX)/bin/gdb_module.img)
	$(OBJCOPY) --strip-unneeded -O srec $< pre-swap.srec
	$(OBJCOPY) --change-address 0xbfc00000 -I binary -O srec be.bin $@

The second objcopy takes the file be.bin as input. I can't see how
be.bin
is produced. When you do the make it complains about no such file
"be.bin".

What am I missing?


Jesper Skov wrote:
> 
> >>>>> "Chris" == Chris Morrow <cmorrow@YottaYotta.com> writes:
> 
> Chris> I don't think the following from hal_mips_rm7000_ocelot.cdl is
> Chris> quite right.
> 
> Chris> make -priority 320 { <PREFIX>/bin/gdb_module.srec :
> Chris> <PREFIX>/bin/gdb_module.img $(OBJCOPY) --strip-unneeded -O srec
> Chris> $< pre-swap.srec $(OBJCOPY) --change-address 0xbfc00000 -I
> Chris> binary -O srec be.bin $@
> 
> Chris> Who is supposed to have create be.bin?
> 
> What do you mean? It is right - the output is a binary image which
> does not contain any address related information. The reason for the
> --change-address is probably to work around a tools problem.
> 
> Jesper

-- 
Chris Morrow	YottaYotta Inc. email: cmorrow@yottayotta.com
phone: (780) 989 6814 web:	http:  //www.yottayotta.com


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