Adjust the build system to use CC26xxware as a sub-module
This commit is contained in:
parent
40e82395c4
commit
5d20e76346
|
@ -8,33 +8,24 @@ NM = arm-none-eabi-nm
|
||||||
SIZE = arm-none-eabi-size
|
SIZE = arm-none-eabi-size
|
||||||
SREC_CAT = srec_cat
|
SREC_CAT = srec_cat
|
||||||
|
|
||||||
### TI CC26xxware out-of-tree
|
CPU_ABS_PATH = cpu/cc26xx
|
||||||
### TI_CC26XXWARE is the home directory of the cc26xxware
|
TI_CC26XXWARE_PATH = lib/cc26xxware
|
||||||
### It MUST be provided as a path relative to $(CONTIKI)
|
TI_CC26XXWARE = $(CONTIKI_CPU)/$(TI_CC26XXWARE_PATH)
|
||||||
### For example, if
|
|
||||||
### CONTIKI = /home/user/contiki
|
|
||||||
### and TI_CC26XXWARE is stored in
|
|
||||||
### /home/user/cc26xxware
|
|
||||||
### then set
|
|
||||||
### TI_CC26XXWARE = ../cc26xxware
|
|
||||||
ifndef TI_CC26XXWARE
|
|
||||||
$(error TI_CC26XXWARE not defined. Please see the README)
|
|
||||||
endif
|
|
||||||
|
|
||||||
### cc26xxware sources will be added to the MODULES list
|
### cc26xxware sources under driverlib will be added to the MODULES list
|
||||||
TI_CC26XXWARE_SRC = $(TI_CC26XXWARE)/driverlib
|
TI_CC26XXWARE_SRC = $(CPU_ABS_PATH)/$(TI_CC26XXWARE_PATH)/driverlib
|
||||||
|
|
||||||
### The directory with startup sources will be added to the CONTIKI_CPU_DIRS
|
### The directory with startup sources will be added to the CONTIKI_CPU_DIRS
|
||||||
### and the sources therein are added to the sources list explicitly. They are
|
### and the sources therein are added to the sources list explicitly. They are
|
||||||
### also listed explicitly in the linker command (through TARGET_STARTFILES),
|
### also listed explicitly in the linker command (through TARGET_STARTFILES),
|
||||||
### to make sure they always get linked in the image
|
### to make sure they always get linked in the image
|
||||||
TI_CC26XXWARE_STARTUP = ../../$(TI_CC26XXWARE)/startup_files
|
TI_CC26XXWARE_STARTUP_DIR = $(TI_CC26XXWARE_PATH)/startup_files
|
||||||
TI_CC26XXWARE_STARTUP_SRCS = ccfg.c startup_gcc.c
|
TI_CC26XXWARE_STARTUP_SRCS = ccfg.c startup_gcc.c
|
||||||
|
|
||||||
### MODULES will add some of these to the include pach, but we need to add
|
### MODULES will add some of these to the include path, but we need to add
|
||||||
### them earlier to prevent filename clashes with Contiki core files
|
### them earlier to prevent filename clashes with Contiki core files
|
||||||
CFLAGS += -I$(CONTIKI)/$(TI_CC26XXWARE) -I$(CONTIKI)/$(TI_CC26XXWARE_SRC)
|
CFLAGS += -I$(TI_CC26XXWARE) -I$(CONTIKI)/$(TI_CC26XXWARE_SRC)
|
||||||
CFLAGS += -I$(CONTIKI)/$(TI_CC26XXWARE)/inc
|
CFLAGS += -I$(TI_CC26XXWARE)/inc
|
||||||
MODULES += $(TI_CC26XXWARE_SRC)
|
MODULES += $(TI_CC26XXWARE_SRC)
|
||||||
|
|
||||||
LDSCRIPT = $(CONTIKI_CPU)/cc26xx.ld
|
LDSCRIPT = $(CONTIKI_CPU)/cc26xx.ld
|
||||||
|
@ -71,7 +62,7 @@ endif
|
||||||
CLEAN += symbols.c symbols.h *.d *.elf *.hex
|
CLEAN += symbols.c symbols.h *.d *.elf *.hex
|
||||||
|
|
||||||
### CPU-dependent directories
|
### CPU-dependent directories
|
||||||
CONTIKI_CPU_DIRS = . dev dev/rfc-api $(TI_CC26XXWARE_STARTUP)
|
CONTIKI_CPU_DIRS = . dev dev/rfc-api $(TI_CC26XXWARE_STARTUP_DIR)
|
||||||
|
|
||||||
### Use the existing debug I/O in cpu/arm/common
|
### Use the existing debug I/O in cpu/arm/common
|
||||||
CONTIKI_CPU_DIRS += ../arm/common/dbg-io
|
CONTIKI_CPU_DIRS += ../arm/common/dbg-io
|
||||||
|
|
Loading…
Reference in a new issue