С просторов интернета:
Цитата
On Tue, Jun 14, 2011 at 10:20:11AM +1000, Robert Gratwick wrote:
>
> The problem I'm having with debugging contiki is; say I'm building the
> rpl-border-route example, the makefile produces an elf file then removes it in
> the clean up. I need the elf file for debugging.
> I have tried following the various makefiles but can't stop it from doing the
> clean up and removing that file.
>
> Does anyone know how to change this, I'm at the limit of my makefile skills!
Maybe give this a try:
diff --git a/cpu/mc1322x/Makefile.mc1322x
b/cpu/mc1322x/Makefile.mc1322x
index de691bd..8e8924b 100644
--- a/cpu/mc1322x/Makefile.mc1322x
+++ b/cpu/mc1322x/Makefile.mc1322x
@@ -99,7 +99,7 @@ CUSTOM_RULE_C_TO_CO=yes
%.co: %.c
$(CC) $(CFLAGS) -DAUTOSTART_ENABLE $(THUMB_FLAGS) $< -c -o $@
-.PRECIOUS: %.bin %_$(TARGET).bin
+.PRECIOUS: %.bin %_$(TARGET).bin %.elf
%.ihex: %.$(TARGET)
$(OBJCOPY) $^ -O ihex $@
It would probably be better to do the name mangling and make
border-router_redbee-econotag.elf or move the .elf into
obj_redbee-econotag --- but that's at _my_ limits for quick Makefile
changes...
-Mar.
Как раз под Ваш контроллер.