
14 Dec
2003
14 Dec
'03
12:43 p.m.
SAM SONG
Have you met it?After masking three files,hello_world.bin,sched.bin ,timer.bin in Makefile of examples directory,it succeeded.But there aren't three files in the directory.I use Montavista Linux Pro 3.0.Any hints?
There was recently a patch which works around a bug in the montavista objcopy. The problem is that it doesn't handle SREC input (even if you use -I srec).
The workaround is to ignore the problem - like you say the make will succeed eventually, or change the commands in the examples/Makefile like this:
Near the rule that says:
%.bin: %.srec
Replace this line:
$(OBJCOPY) -O binary $< $@ 2>/dev/null
With this line:
$(OBJCOPY) -O binary $(<:.srec=) $@ 2>/dev/null
-Cam