-
Notifications
You must be signed in to change notification settings - Fork 2
/
products.mak
71 lines (62 loc) · 2.44 KB
/
products.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
59
60
61
62
63
64
65
66
67
68
69
70
71
#
# This file defines the installation location for products that are required
# for the use of the Energia MT
#
# XDCROOT - XDCtools used to build a configuration of TI-RTOS
# suitable for EMT
# TIRTOS - TI-RTOS
# DRVLIB.msp432 - MSP432 driverlib
# DRVLIB.cc3200 - CC3200 driverlib
# ti.targets.arm.elf.M4F - TI Arm compiler
# gnu.targets.arm.M4F - Gnu Arm compiler
#
TREE_ROOT = $(firstword $(subst /src/, /src/,$(CURDIR)))
# function to get latest versioned path
latest = $(lastword $(sort $(wildcard $1)))
#
# CCS build support
#
CCSROOT ?= c:/ti
CCSROOT := $(subst \,/,$(CCSROOT))
TIRTOS ?= $(call latest, c:/ti/tirtos_msp430_2_12_*)
XDCROOT = $(call latest, $(CCSROOT)/xdctools_*/.)
DRVLIB.msp432 = $(wildcard $(TIRTOS)/products/MSPWare*)
DRVLIB.cc3200 = $(wildcard $(TIRTOS)/products/CC32*)
DRVLIB.cc26xx = $(wildcard $(TIRTOS)/products/cc26*)
ti.targets.arm.elf.M4F = $(call latest,$(CCSROOT)/ccsv6/tools/compiler/*arm_5.*)
gnu.targets.arm.M4F = $(call latest,$(CCSROOT)/ccsv6/tools/compiler/gcc-arm-*)
ifeq (,$(XDCROOT))
#
# UNIX TISB tree build support
#
XDCROOT = $(TOOLS)/vendors/xdc/xdctools_3_31_01_33/$(BUILD_HOST_OS)
TIRTOS = $(wildcard $(TREES)/zumaprod/zumaprod-h10/exports/tirtos_full_*)
SYSBIOS = $(wildcard $(TIRTOS)/products/bios_6_*)
DRVLIB.msp432 = $(wildcard $(TIRTOS)/products/MSPWare*)
DRVLIB.cc3200 = $(wildcard $(TIRTOS)/products/CC32*)
DRVLIB.cc26xx = $(wildcard $(TIRTOS)/products/cc26*)
ti.targets.arm.elf.M4F = $(TOOLS)/vendors/ti/arm/5.2.2/$(BUILD_HOST_OS)
gnu.targets.arm.M4F = $(TOOLS)/vendors/linaro/4.8-2014q3/$(BUILD_HOST_OS)
endif
ti.targets.arm.elf.M4 = $(ti.targets.arm.elf.M4F)
gnu.targets.arm.M4 = $(gnu.targets.arm.M4F)
ti.targets.arm.elf.M3 = $(ti.targets.arm.elf.M4F)
gnu.targets.arm.M3 = $(gnu.targets.arm.M4F)
#
# Error checks
#
ifeq (,$(wildcard $(XDCROOT)))
$(error XDCROOT, '$(XDCROOT)', does not reference a valid directory)
endif
ifeq (,$(wildcard $(TIRTOS)))
$(error TIRTOS, '$(TIRTOS)', does not reference a valid directory)
endif
ifeq (,$(wildcard $(DRVLIB.msp432)))
$(error DRVLIB.msp432, '$(DRVLIB.msp432)', does not reference a valid directory)
endif
ifeq (,$(wildcard $(DRVLIB.cc3200)))
$(error DRVLIB.cc3200, '$(DRVLIB.cc3200)', does not reference a valid directory)
endif
ifeq (,$(wildcard $(DRVLIB.cc26xx)))
$(error DRVLIB.cc26xx, '$(DRVLIB.cc26xx)', does not reference a valid directory)
endif