Add necessary SDK libraries and include paths

This commit is contained in:
Richard Weickelt 2018-02-06 12:30:10 +01:00 committed by Edvard Pettersen
parent ddd451a19b
commit be4131d277
2 changed files with 12 additions and 5 deletions

View File

@ -1,6 +1,4 @@
SDK_DRIVERLIB_BIN := $(SDK_DRIVERLIB)/bin/gcc
ifeq "$(SIMPLELINK_DEVICE)" "cc13x2"
CFLAGS += -DDeviceFamily_CC13X2
else
@ -8,7 +6,12 @@ CFLAGS += -DDeviceFamily_CC26X2
endif
CFLAGS += -I$(CPU_ABS_PATH)/cc26x2_cc13x2
CFLAGS += -I$(SDK_KERNEL)
TARGET_LIBFILES += $(SDK_DRIVERLIB)/bin/gcc/driverlib.lib
TARGET_LIBFILES += $(SDK_DRIVERS)/lib/drivers_cc13x2.am4fg
TARGET_LIBFILES += $(SDK_DRIVERS)/lib/rf_multiMode_cc13x2.am4fg
TARGET_LIBFILES += $(SDK_KERNEL)/lib/nortos_cc13x2.am4fg
TARGET_LIBFILES += $(SDK_DRIVERLIB_BIN)/driverlib.lib
include $(CONTIKI)/arch/cpu/arm/cortex-m/cm4/Makefile.cm4

View File

@ -7,6 +7,8 @@ SDK_DEVICES := $(SDK_SOURCE)/ti/devices
SDK_DEVICE := $(shell ls $(SDK_DEVICES) | grep $(SIMPLELINK_DEVICE))
SDK_DEVICE_SOURCE := $(SDK_SOURCE)/ti/devices/$(SDK_DEVICE)
SDK_DRIVERLIB := $(SDK_DEVICE_SOURCE)/driverlib
SDK_DRIVERS := $(SDK_SOURCE)/ti/drivers
SDK_KERNEL := $(SIMPLELINK_SDK)/kernel/nortos/
SDK_BOARDS := $(SDK_SOURCE)/ti/boards
SDK_STARTUP := $(SDK_DEVICE_SOURCE)/startup_files
SDK_STARTUP_SRCS = ccfg.c startup_gcc.c
@ -19,6 +21,8 @@ CFLAGS += -I$(CPU_ABS_PATH)
CFLAGS += -I$(SDK_SOURCE)
CFLAGS += -I$(SDK_DEVICE_SOURCE)
CFLAGS += -I$(SDK_DEVICE_SOURCE)/inc
CFLAGS += -I$(SDK_KERNEL)
CFLAGS += -I$(SDK_KERNEL)/posix
LDSCRIPT = $(SDK_BOARDS)/$(SIMPLELINK_BOARD)/$(SIMPLELINK_BOARD)_NoRTOS.lds