2012-03-05 16:47:01 +01:00
|
|
|
# cc2530dk platform makefile
|
|
|
|
|
|
|
|
ifndef CONTIKI
|
|
|
|
$(error CONTIKI not defined! You must specify where CONTIKI resides!)
|
|
|
|
endif
|
|
|
|
|
|
|
|
CONTIKI_TARGET_DIRS = . dev
|
|
|
|
CONTIKI_TARGET_MAIN = $(addprefix $(OBJECTDIR)/,contiki-main.rel)
|
|
|
|
|
|
|
|
CONTIKI_TARGET_SOURCEFILES = contiki-main.c
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += leds.c leds-arch.c
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += sensors.c smartrf-sensors.c
|
2011-12-22 22:35:50 +01:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += button-sensor.c adc-sensor.c
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += serial-line.c slip-arch.c slip.c
|
2012-03-05 16:47:01 +01:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += putchar.c debug.c
|
2012-09-10 17:14:00 +02:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += usb-serial.c
|
2012-03-05 16:47:01 +01:00
|
|
|
|
|
|
|
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)
|
|
|
|
|
|
|
|
CLEAN += *.cc2530dk
|
|
|
|
|
2014-11-12 10:18:29 +01:00
|
|
|
ifeq ($(CONTIKI_WITH_IPV6),1)
|
2012-03-05 16:47:01 +01:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += viztool.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
FORCE:
|
|
|
|
|
|
|
|
# .sensinode target so we can behave similar to other targets
|
|
|
|
%.$(TARGET): %.hex FORCE
|
|
|
|
cp $< $(<:.hex=.$(TARGET))
|
|
|
|
@echo "\nReport"
|
|
|
|
@echo "==============="
|
|
|
|
@echo 'Code footprint:'
|
|
|
|
@echo 'Area Addr Size' \
|
|
|
|
' Decimal'
|
|
|
|
@echo '---------------------------------- -------- --------' \
|
|
|
|
' --------'
|
|
|
|
@echo -n 'HOME,CSEG,CONST,XINIT,GS* $(HOME_START) '
|
|
|
|
@egrep ',CODE\)' $(<:.hex=.map) | egrep -v '(^BANK[1-9][^=])' | uniq | \
|
|
|
|
awk '{ SUM += $$5 } END { printf "%08X = %8d", SUM, SUM }'
|
|
|
|
@echo '. bytes (REL,CON,CODE)'
|
|
|
|
@egrep '(^BANK[1-9][^=])' $(<:.hex=.map) | uniq | sort
|
|
|
|
@egrep -A 5 'Other memory' $(<:.hex=.mem)
|
|
|
|
|
|
|
|
### Define the CPU directory
|
|
|
|
CONTIKI_CPU=$(CONTIKI)/cpu/cc253x
|
|
|
|
include $(CONTIKI_CPU)/Makefile.cc253x
|
2013-12-10 08:45:52 +01:00
|
|
|
|
|
|
|
# Default modules
|
2014-11-12 10:18:29 +01:00
|
|
|
MODULES += core/net core/net/mac \
|
2013-05-24 09:21:53 +02:00
|
|
|
core/net/llsec
|