nes-proj/arch/platform/simplelink/Makefile.simplelink

51 lines
1.5 KiB
Makefile
Raw Normal View History

2018-05-08 19:39:20 +00:00
################################################################################
### SimpleLink MCU platform makefile
2018-02-02 14:31:37 +00:00
2018-05-08 19:39:20 +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
$(error 'CONTIKI' not defined! You must specify where CONTIKI resides!)
2018-02-02 14:31:37 +00:00
endif
ifndef FAMILY
$(error 'FAMILY' not defined! You must specify which Simplelink family you are using!)
2018-02-02 14:31:37 +00:00
endif
ifndef BOARD
$(error 'BOARD' not defined! You must specify which board you are using!)
endif
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)
endif
2018-05-08 19:39:20 +00:00
################################################################################
### Defines
SIMPLELINK_SDK := $(realpath $(SIMPLELINK_SDK))
2018-02-02 14:31:37 +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
### Include the Simplelink Family specific Makefile
include $(FAMILY_PATH)/Makefile.$(FAMILY)
################################################################################
# Display all supported SimpleLink Families
simplelink_families:
@echo "$(SUPPORTED_FAMILIES) (current: $(FAMILY))"