2013-01-12 22:44:42 +00:00
|
|
|
# cc2538dk platform makefile
|
|
|
|
|
|
|
|
ifndef CONTIKI
|
|
|
|
$(error CONTIKI not defined! You must specify where CONTIKI resides!)
|
|
|
|
endif
|
|
|
|
|
|
|
|
CONTIKI_TARGET_DIRS = . dev
|
|
|
|
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += leds.c leds-arch.c
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += contiki-main.c
|
2013-11-04 19:39:56 +00:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += sensors.c smartrf-sensors.c
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += button-sensor.c adc-sensor.c
|
2013-01-12 22:44:42 +00:00
|
|
|
|
|
|
|
TARGET_START_SOURCEFILES += startup-gcc.c
|
|
|
|
TARGET_STARTFILES = ${addprefix $(OBJECTDIR)/,${call oname, $(TARGET_START_SOURCEFILES)}}
|
|
|
|
|
|
|
|
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)
|
|
|
|
|
|
|
|
CLEAN += *.cc2538dk
|
|
|
|
|
|
|
|
### Unless the example dictates otherwise, build with code size optimisations
|
|
|
|
ifndef SMALL
|
|
|
|
SMALL = 1
|
|
|
|
endif
|
|
|
|
|
|
|
|
### Define the CPU directory
|
|
|
|
CONTIKI_CPU=$(CONTIKI)/cpu/cc2538
|
|
|
|
include $(CONTIKI_CPU)/Makefile.cc2538
|
2013-12-05 22:56:30 +00:00
|
|
|
|
2013-12-12 19:45:45 +00:00
|
|
|
MODULES += core/net core/net/ipv6 core/net/mac core/net/ip \
|
|
|
|
core/net/rpl core/net/rime core/net/mac/contikimac
|
2014-02-01 23:46:45 +00:00
|
|
|
|
|
|
|
BSL = $(CONTIKI)/tools/cc2538-bsl/cc2538-bsl.py
|
|
|
|
|
|
|
|
%.upload: %.bin
|
|
|
|
ifeq ($(wildcard $(BSL)), )
|
|
|
|
@echo "ERROR: Could not find the cc2538-bsl script. Did you run 'git submodule update --init' ?"
|
|
|
|
else
|
|
|
|
python $(BSL) -e -w -v $<
|
|
|
|
endif
|