2018-02-02 14:31:37 +00:00
|
|
|
# SimpleLink MCU platform makefile
|
|
|
|
|
|
|
|
ifndef CONTIKI
|
|
|
|
$(error CONTIKI not defined! You must specify where CONTIKI resides!)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef SIMPLELINK_SDK
|
|
|
|
$(error SIMPLELINK_SDK not defined! You must specify where the SimpleLink SDK resides!)
|
|
|
|
endif
|
|
|
|
|
2018-02-06 15:27:31 +00:00
|
|
|
AVAILABLE_BOARDS := $(shell ls -d $(SIMPLELINK_SDK)/source/ti/boards)
|
2018-02-06 13:30:50 +00:00
|
|
|
AVAILABLE_BOARDS += CUSTOM # Allows an own board file in the application project
|
|
|
|
|
|
|
|
ifndef SIMPLELINK_BOARD
|
|
|
|
$(error SIMPLELINK_BOARD not defined! You must specify a board! Available boards: $(AVAILABLE_BOARDS))
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(findstring $(SIMPLELINK_BOARD),$(AVAILABLE_BOARDS)),$(SIMPLELINK_BOARD))
|
|
|
|
$(error '$(SIMPLELINK_BOARD)' is not a valid board. Available boards: $(AVAILABLE_BOARDS))
|
|
|
|
endif
|
|
|
|
|
2018-02-02 14:31:37 +00:00
|
|
|
### Board and BSP selection
|
|
|
|
|
2018-02-05 16:18:08 +00:00
|
|
|
CONTIKI_TARGET_DIRS += .
|
2018-02-02 14:31:37 +00:00
|
|
|
|
2018-02-05 16:18:08 +00:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += platform.c
|
2018-02-02 14:31:37 +00:00
|
|
|
|
2018-02-05 16:18:08 +00:00
|
|
|
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)
|
2018-02-02 14:31:37 +00:00
|
|
|
|
|
|
|
CLEAN += *.simplelink
|
|
|
|
|
|
|
|
### Unless the example dictates otherwise, build without code size optimisations
|
|
|
|
SMALL ?= 0
|
|
|
|
|
2018-02-05 16:18:08 +00:00
|
|
|
CONTIKI_CPU = $(CONTIKI)/arch/cpu/simplelink
|
|
|
|
include $(CONTIKI_CPU)/Makefile.simplelink
|
2018-02-02 14:31:37 +00:00
|
|
|
|
|
|
|
#MODULES += os/net os/net/mac os/net/mac/framer
|
|
|
|
|
|
|
|
|
|
|
|
|