2015-02-25 12:12:20 +00:00
|
|
|
# srf06-cc26xx platform makefile
|
|
|
|
|
|
|
|
ifndef CONTIKI
|
|
|
|
$(error CONTIKI not defined! You must specify where CONTIKI resides!)
|
|
|
|
endif
|
|
|
|
|
|
|
|
### Board and BSP selection
|
2017-10-10 08:50:27 +00:00
|
|
|
BOARD ?= srf06/cc26xx
|
2018-02-27 12:03:58 +00:00
|
|
|
BOARDS = srf06/cc26xx srf06/cc13xx launchpad/cc2650 launchpad/cc1310 launchpad/cc1350 sensortag/cc2650 sensortag/cc1350
|
2015-02-25 12:12:20 +00:00
|
|
|
|
2015-08-16 15:55:44 +00:00
|
|
|
CONTIKI_TARGET_DIRS += .
|
2015-02-25 12:12:20 +00:00
|
|
|
|
2015-08-16 15:55:44 +00:00
|
|
|
### Include the board-specific makefile
|
2017-06-28 13:57:13 +00:00
|
|
|
PLATFORM_ROOT_DIR = $(CONTIKI)/arch/platform/$(TARGET)
|
2015-08-16 15:55:44 +00:00
|
|
|
-include $(PLATFORM_ROOT_DIR)/$(BOARD)/Makefile.$(notdir $(BOARD))
|
2015-02-25 12:12:20 +00:00
|
|
|
|
2018-02-28 23:03:26 +00:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += platform.c leds-arch.c
|
2015-02-25 12:12:20 +00:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += $(BOARD_SOURCEFILES)
|
|
|
|
|
|
|
|
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)
|
|
|
|
|
2017-05-16 15:09:58 +00:00
|
|
|
### Unless the example dictates otherwise, build without code size optimisations
|
|
|
|
SMALL ?= 0
|
2015-02-25 12:12:20 +00:00
|
|
|
|
2015-08-16 15:55:44 +00:00
|
|
|
### Define the CPU directory and pull in the correct CPU makefile. This will
|
|
|
|
### be defined by one of the makefiles included above and it can be either
|
|
|
|
### Makefile.cc26xx or Makefile.cc13xx
|
2017-06-28 13:57:13 +00:00
|
|
|
CONTIKI_CPU=$(CONTIKI)/arch/cpu/cc26xx-cc13xx
|
2015-08-16 15:55:44 +00:00
|
|
|
include $(CONTIKI_CPU)/Makefile.$(CPU_FAMILY)
|