From 42557bf484073eb7a90ff68f83a5461bce9f3999 Mon Sep 17 00:00:00 2001 From: Vinicius Guimaraes Date: Wed, 4 Jan 2017 16:58:53 -0200 Subject: [PATCH] Fixing Avr-Zigbit Makefile not compiling. I just tried to compile this platform for my Zigbit mote (AT86RF230) here in a hello-world example, but it didn't work. I reviewed this makefile and found that the request to compile "frame.c" was not necessary and bring up a missing error: "make: *** No rule to make target `obj_avr-zigbit/frame.o', needed by `contiki-avr-zigbit.a'. Stop." Frame.c is already inserted in radio's makefile. Another problem was the undefined reference created by the missing module "core/net": "contiki-avr-zigbit.a(sicslowpan.o): In function `input':" "contiki/examples/hello-world/../../core/net/ipv6/sicslowpan.c:1521: undefined reference to `link_stats_input_callback'" Both solved now. Hope it helps anyone else. --- platform/avr-zigbit/Makefile.avr-zigbit | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/avr-zigbit/Makefile.avr-zigbit b/platform/avr-zigbit/Makefile.avr-zigbit index d2599da9a..a4df0bd8a 100644 --- a/platform/avr-zigbit/Makefile.avr-zigbit +++ b/platform/avr-zigbit/Makefile.avr-zigbit @@ -7,7 +7,7 @@ CONTIKI_TARGET_MAIN = ${CONTIKI_CORE}.o CONTIKI_TARGET_SOURCEFILES += rs232.c cfs-eeprom.c eeprom.c random.c mmem.c \ contiki-avr-zigbit-main.c \ sicslowmac.c linkaddr.c queuebuf.c nullmac.c packetbuf.c \ - frame802154.c framer-802154.c framer.c nullsec.c nbr-table.c + frame802154.c framer-802154.c nullsec.c nbr-table.c CONTIKIAVR = $(CONTIKI)/cpu/avr CONTIKIBOARD = . @@ -17,4 +17,5 @@ CONTIKI_PLAT_DEFS = -DF_CPU=8000000UL -DAUTO_CRC_PADDING=2 MCU = atmega1281 include $(CONTIKIAVR)/Makefile.avr -include $(CONTIKIAVR)/radio/Makefile.radio \ No newline at end of file +include $(CONTIKIAVR)/radio/Makefile.radio +MODULES += core/net