-
Notifications
You must be signed in to change notification settings - Fork 15
/
imports.mak
58 lines (56 loc) · 2.12 KB
/
imports.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
DEVICE ?= am64x
ifeq ($(OS),Windows_NT)
TOOLS_PATH?=C:/ti
CCS_PATH?=$(TOOLS_PATH)/ccs1281/ccs
CCS_ECLIPSE=$(CCS_PATH)/eclipse/eclipsec
CYGWIN_PATH?=$(CCS_PATH)/utils/cygwin
MKDIR=$(CYGWIN_PATH)/mkdir -p
RMDIR=$(CYGWIN_PATH)/rm -rf
RM=$(CYGWIN_PATH)/rm -f
COPY=$(CYGWIN_PATH)/cp
MOVE=$(CYGWIN_PATH)/mv
CAT=$(CYGWIN_PATH)/cat
SED=$(CYGWIN_PATH)/sed
TOUCH=$(CYGWIN_PATH)/touch
PATHSEP=\\
CHMOD=$(CYGWIN_PATH)/echo
SHELL=cmd.exe
CGT_GCC_AARCH64_PATH=$(TOOLS_PATH)/gcc-arm-9.2-2019.12-mingw-w64-i686-aarch64-none-elf
CGT_GCC_ARM_PATH=$(TOOLS_PATH)/gcc-arm-none-eabi-9-2019-q4-major-win32
CGT_GCC_ARMV7_PATH=$(CGT_GCC_ARM_PATH)
else
UNAME_S := $(shell uname -s)
ifneq (,$(filter $(UNAME_S),Linux Darwin))
export TOOLS_PATH?=$(HOME)/ti
export CCS_PATH?=$(TOOLS_PATH)/ccs1281/ccs
export CCS_ECLIPSE=$(CCS_PATH)/eclipse/eclipse
export MKDIR=mkdir -p
export RMDIR=rm -rf
export RM=rm -f
export COPY=cp
export MOVE=mv
export CAT=cat
export SED=sed
export TOUCH=touch
export PATHSEP=/
export CHMOD=chmod
CGT_GCC_AARCH64_PATH=$(TOOLS_PATH)/gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf
CGT_GCC_ARM_PATH=$(TOOLS_PATH)/gcc-arm-none-eabi-9-2019-q4-major
CGT_GCC_ARMV7_PATH=$(CGT_GCC_ARM_PATH)
endif
endif
CGT_TI_PRU_PATH=$(TOOLS_PATH)/ti-cgt-pru_2.3.3
CGT_TI_ARM_CLANG_PATH=$(CCS_PATH)/tools/compiler/ti-cgt-armllvm_4.0.1.LTS
ifeq ($(wildcard $(CGT_TI_ARM_CLANG_PATH)),)
CGT_TI_ARM_CLANG_PATH=$(TOOLS_PATH)/ti-cgt-armllvm_4.0.1.LTS
endif
CGT_TI_C6000_PATH=$(CCS_PATH)/tools/compiler/ti-cgt-c6000_8.3.12
DSPLIB_PATH=$(MCU_PLUS_SDK_PATH)/source/dsplib_c66x_3_4_0_0
CCS_NODE = $(CCS_PATH)/tools/node/node
SYSCFG_PATH ?= $(TOOLS_PATH)/sysconfig_1.21.2
SYSCFG_CLI_PATH ?= $(SYSCFG_PATH)
SYSCFG_NODE = $(SYSCFG_PATH)/nodejs/node
SYSCFG_NWJS = $(SYSCFG_PATH)/nw/nw
SYSCFG_SDKPRODUCT=$(MCU_PLUS_SDK_PATH)/.metadata/product.json
OPTISHARE = $(CCS_NODE) $(CGT_TI_ARM_CLANG_PATH)/opti-share/opti-share.js
OPTISAVE = $(CCS_NODE) $(CGT_TI_ARM_CLANG_PATH)/opti-share/utils/opti-save.js