-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakeConfig.inc
167 lines (138 loc) · 4.12 KB
/
MakeConfig.inc
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
ifeq ($(SCCC_CONFIG),INNO)
BIN_SUFFIX:=$(BIN_SUFFIX)-inno
CPPFLAGS+=-DK60_INNO=1
SCCC_MCU=MK60DZ10
$(info Config = INNO)
else ifeq ($(SCCC_CONFIG),2014_CAMERA)
BIN_SUFFIX:=$(BIN_SUFFIX)-2014-camera
CPPFLAGS+=-DK60_2014_CAMERA=1
SCCC_MCU=MK60DZ10
$(info Config = 2014_CAMERA)
else ifeq ($(SCCC_CONFIG),2014_CCD)
BIN_SUFFIX:=$(BIN_SUFFIX)-2014-ccd
CPPFLAGS+=-DK60_2014_CCD=1
SCCC_MCU=MK60DZ10
$(info Config = 2014_CCD)
else ifeq ($(SCCC_CONFIG),2014_INNO)
BIN_SUFFIX:=$(BIN_SUFFIX)-2014-inno
CPPFLAGS+=-DK60_2014_INNO=1
SCCC_MCU=MK60DZ10
$(info Config = 2014_INNO)
else ifeq ($(SCCC_CONFIG),2014_INNO_FX)
BIN_SUFFIX:=$(BIN_SUFFIX)-2014-inno-fx
CPPFLAGS+=-DK60_2014_INNO=1
SCCC_MCU=MK60F15
$(info Config = 2014_INNO_FX)
else ifeq ($(SCCC_CONFIG),2014_MAGNETIC)
BIN_SUFFIX:=$(BIN_SUFFIX)-2014-magnetic
CPPFLAGS+=-DK60_2014_MAGNETIC=1
SCCC_MCU=MK60DZ10
$(info Config = 2014_MAGNETIC)
else ifeq ($(SCCC_CONFIG),VCAN_FX15DEV)
BIN_SUFFIX:=$(BIN_SUFFIX)-vcan-fx15dev
CPPFLAGS+=-DK60_VCAN_FX15DEV=1
SCCC_MCU=MK60F15
$(info Config = VCAN_FX15DEV)
else ifeq ($(SCCC_CONFIG),2015_CAMERA)
BIN_SUFFIX:=$(BIN_SUFFIX)-2015-camera
CPPFLAGS+=-DK60_2015_CAMERA=1
SCCC_MCU=MK60F15
$(info Config = 2015_CAMERA)
else ifeq ($(SCCC_CONFIG),2015_MAGNETIC)
BIN_SUFFIX:=$(BIN_SUFFIX)-2015-magnetic
CPPFLAGS+=-DK60_2015_MAGNETIC=1
SCCC_MCU=MK60F15
$(info Config = 2015_MAGNETIC)
else ifeq ($(SCCC_CONFIG),2015_CCD)
BIN_SUFFIX:=$(BIN_SUFFIX)-2015-ccd
CPPFLAGS+=-DK60_2015_CCD=1
SCCC_MCU=MK60DZ10
$(info Config = 2015_CCD)
else ifeq ($(SCCC_CONFIG),VCAN_Z4DEV)
BIN_SUFFIX:=$(BIN_SUFFIX)-vcan-z4dev
CPPFLAGS+=-DKL26_VCAN_Z4DEV=1
SCCC_MCU=MKL26Z4
$(info Config = VCAN_Z4DEV)
else ifeq ($(SCCC_CONFIG),2015_CCD2)
BIN_SUFFIX:=$(BIN_SUFFIX)-2015_ccd2
CPPFLAGS+=-DKL26_2015_CCD2=1
SCCC_MCU=MKL26Z4
$(info Config = 2015_CCD2)
else ifeq ($(SCCC_CONFIG),2015_M2)
BIN_SUFFIX:=$(BIN_SUFFIX)-2015_m2
CPPFLAGS+=-DKL26_2015_M2=1
SCCC_MCU=MKL26Z4
$(info Config = 2015_M2)
else ifeq ($(SCCC_CONFIG),2016_INNO)
BIN_SUFFIX:=$(BIN_SUFFIX)-2016-inno
CPPFLAGS+=-DK60_2016_INNO=1
SCCC_MCU=MK60F15
$(info Config = 2016_INNO)
else ifeq ($(SCCC_CONFIG),2016_CAMERA)
BIN_SUFFIX:=$(BIN_SUFFIX)-2016-camera
CPPFLAGS+=-DK60_2016_CAMERA=1
SCCC_MCU=MK60F15
$(info Config = 2016_CAMERA)
else ifeq ($(SCCC_CONFIG),2016_CCD)
BIN_SUFFIX:=$(BIN_SUFFIX)-2016-ccd
CPPFLAGS+=-DK60_2016_CCD=1
SCCC_MCU=MK60F15
$(info Config = 2016_CCD)
else ifeq ($(SCCC_CONFIG),2016_CAMERA)
BIN_SUFFIX:=$(BIN_SUFFIX)-2016-camera
CPPFLAGS+=-DK60_2016_CAMERA=1
SCCC_MCU=MK60F15
$(info Config = 2016_CAMERA)
else ifeq ($(SCCC_CONFIG),2016_RAIL)
BIN_SUFFIX:=$(BIN_SUFFIX)-2016-rail
CPPFLAGS+=-DK60_2016_RAIL=1
SCCC_MCU=MK60F15
$(info Config = 2016_RAIL)
else ifeq ($(SCCC_CONFIG),2016_MAGNETIC)
BIN_SUFFIX:=$(BIN_SUFFIX)-2016-magnetic
CPPFLAGS+=-DK60_2016_MAGNETIC=1
SCCC_MCU=MK60F15
$(info Config = 2016_MAGNETIC)
else ifeq ($(SCCC_CONFIG),2016_MAGNETIC_YANG)
BIN_SUFFIX:=$(BIN_SUFFIX)-2016_magnetic_yang
CPPFLAGS+=-DK60_2016_MAGNETIC_YANG=1
SCCC_MCU=MK60F15
$(info Config = 2016_MAGNETIC_YANG)
else ifeq ($(SCCC_CONFIG),2017_INNO)
BIN_SUFFIX:=$(BIN_SUFFIX)-2017-inno
CPPFLAGS+=-DK60_2017_INNO=1
SCCC_MCU=MK60F15
$(info Config = 2017_INNO)
else ifeq ($(SCCC_CONFIG),2017_CREATIVE)
BIN_SUFFIX:=$(BIN_SUFFIX)-2017-creative
CPPFLAGS+=-DK60_2017_CREATIVE=1
SCCC_MCU=MK60F15
$(info Config = 2017_CREATIVE)
else ifeq ($(SCCC_CONFIG),2018_CAMERA)
BIN_SUFFIX:=$(BIN_SUFFIX)-2018-camera
CPPFLAGS+=-DK60_2018_CAMERA=1
SCCC_MCU=MK60F15
$(info Config = 2018_CAMERA)
else ifeq ($(SCCC_CONFIG),2018_CREATIVE)
BIN_SUFFIX:=$(BIN_SUFFIX)-2018-creative
CPPFLAGS+=-DK60_2018_CREATIVE=1
SCCC_MCU=MK60F15
$(info Config = 2018_CREATIVE)
else ifeq ($(SCCC_CONFIG),2018_CREATIVE2)
BIN_SUFFIX:=$(BIN_SUFFIX)-2018-creative2
CPPFLAGS+=-DK60_2018_CREATIVE2=1
SCCC_MCU=MK60F15
$(info Config = 2018_CREATIVE2)
else ifeq ($(SCCC_CONFIG),HANDTECH_D10DEV)
BIN_SUFFIX:=$(BIN_SUFFIX)-handtech-d10dev
CPPFLAGS+=-DK60_HANDTECH_D10DEV=1
SCCC_MCU=MK60DZ10
$(info Config = HANDTECH_D10DEV)
else ifeq ($(SCCC_CONFIG),NFC_CLIENT)
BIN_SUFFIX:=$(BIN_SUFFIX)-nfc-client
CPPFLAGS+=-DK60_NFC_CLIENT=1
SCCC_MCU=MK60F15
$(info Config = NFC_CLIENT)
else
$(error Missing/Unknown config '$(SCCC_CONFIG)' (set SCCC_CONFIG))
endif