2018-05-08 19:39:20 +00:00
|
|
|
################################################################################
|
2018-05-28 11:17:01 +00:00
|
|
|
### SimpleLink MCU platform makefile
|
2018-02-02 14:31:37 +00:00
|
|
|
|
2018-05-08 19:39:20 +00:00
|
|
|
################################################################################
|
2018-05-28 11:17:01 +00:00
|
|
|
### Sanity check of expected symbols
|
2018-05-08 19:39:20 +00:00
|
|
|
|
2018-02-02 14:31:37 +00:00
|
|
|
ifndef CONTIKI
|
2018-05-28 11:17:01 +00:00
|
|
|
$(error 'CONTIKI' not defined! You must specify where CONTIKI resides!)
|
2018-02-02 14:31:37 +00:00
|
|
|
endif
|
|
|
|
|
2018-05-28 11:17:01 +00:00
|
|
|
ifndef FAMILY
|
|
|
|
$(error 'FAMILY' not defined! You must specify which Simplelink family you are using!)
|
2018-02-02 14:31:37 +00:00
|
|
|
endif
|
|
|
|
|
2018-05-28 11:17:01 +00:00
|
|
|
ifndef BOARD
|
|
|
|
$(error 'BOARD' not defined! You must specify which board you are using!)
|
2018-02-15 14:39:18 +00:00
|
|
|
endif
|
|
|
|
|
2018-05-28 11:17:01 +00:00
|
|
|
ifndef SIMPLELINK_SDK
|
|
|
|
$(error 'SIMPLELINK_SDK' not defined! You must specify where the installed SimpleLink SDK resides!)
|
|
|
|
endif
|
|
|
|
|
|
|
|
SIMPLELINK_SDK_EXISTS := $(shell [ -d "$(SIMPLELINK_SDK)" ]; echo $$?)
|
|
|
|
|
|
|
|
ifneq ($(SIMPLELINK_SDK_EXISTS),0)
|
|
|
|
$(error Simplelink SDK path 'SIMPLELINK_SDK' does not exist)
|
2018-02-06 13:30:50 +00:00
|
|
|
endif
|
|
|
|
|
2018-05-08 19:39:20 +00:00
|
|
|
################################################################################
|
2018-05-28 11:17:01 +00:00
|
|
|
### Defines
|
2018-02-16 15:55:39 +00:00
|
|
|
|
2018-05-28 11:17:01 +00:00
|
|
|
SIMPLELINK_SDK := $(realpath $(SIMPLELINK_SDK))
|
2018-02-02 14:31:37 +00:00
|
|
|
|
2018-05-28 11:17:01 +00:00
|
|
|
SUPPORTED_FAMILIES := cc13xx-cc26xx
|
|
|
|
|
|
|
|
ifeq ($(filter $(FAMILY), $(SUPPORTED_FAMILIES)),)
|
|
|
|
$(error Simlpelink Family $(FAMILY) is not supported.)
|
|
|
|
endif
|
|
|
|
|
|
|
|
FAMILY_PATH := $(realpath $(CONTIKI)/arch/platform/simplelink/$(FAMILY))
|
2018-02-02 14:31:37 +00:00
|
|
|
|
|
|
|
CLEAN += *.simplelink
|
|
|
|
|
2018-05-28 11:17:01 +00:00
|
|
|
### Include the Simplelink Family specific Makefile
|
|
|
|
include $(FAMILY_PATH)/Makefile.$(FAMILY)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Display all supported SimpleLink Families
|
|
|
|
simplelink_families:
|
|
|
|
@echo "$(SUPPORTED_FAMILIES) (current: $(FAMILY))"
|