forked from Qorvo/QMatter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.OpenThreadQorvoGlue_qpg6105_mtd
343 lines (303 loc) · 12.4 KB
/
Makefile.OpenThreadQorvoGlue_qpg6105_mtd
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
#Generated from:
# $(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/libopenthread_qpg6105_mtd.py
ifndef BASEDIR
BASEDIR:=$(abspath $(dir $(abspath $(lastword $(MAKEFILE_LIST)))))
endif
# Global vars
OPENTHREAD_REPO_DIR ?= $(BASEDIR)/../../../Components/ThirdParty/Matter/repo/third_party/openthread/repo
FREERTOS_REPO_DIR ?= $(BASEDIR)/../../../Components/ThirdParty/Matter/repo/third_party/freertos/repo
OS_USED?=LINUX
GPHUB_ROOT?=/builds/290/1/depot/gpHub
ROOTDIR?=$(BASEDIR)/../../..
WORKDIR?=$(BASEDIR)/../../../Work/OpenThreadQorvoGlue_qpg6105_mtd
ENV_PATH?=$(BASEDIR)/../../..
PYTHON_BIN?=/usr/bin/python3
CURRENT_CONF:=libopenthread_qpg6105_mtd.py
EXTRA_CONF:=
CONFIG_HEADER:=$(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd/qorvo_config.h
INTERNALS_HEADER:=$(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd/qorvo_internals.h
PREINCLUDE_HEADER:=$(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd/qorvo_config.h
PREBUILD_SCRIPT:=
POSTBUILD_SCRIPT:=
FLAGS=
# Build variables
ARMCHIP=K8E
CFLAGS_COMPILER += -ffile-prefix-map=/builds/290/1/depot/Applications/P959_OpenThread=QorvoThreadApp
CFLAGS_COMPILER += -ffile-prefix-map=/builds/290/1/depot/Components/Qorvo=QorvoComponents
CFLAGS_COMPILER += -ffile-prefix-map=/builds/290/1/depot/Components/ThirdParty=ThirdParty
CFLAGS_COMPILER += -ffile-prefix-map=/builds/290/1/depot/gpHub/Components/ThirdParty/P959_ot-qorvo=ot-qorvo
CFLAGS_COMPILER += -ffile-prefix-map=/builds/290/1/depot/gpHub=ThirdParty
CFLAGS_COMPILER += -ffile-prefix-map=/builds/290/1/depot=QorvoSDK
CFLAGS_COMPILER += -ffile-prefix-map=/mnt/c/gpHub=ThirdParty
CFLAGS_COMPILER += -ffile-prefix-map=/mnt/r=ThirdParty
MCU=cortex-m4
PRODUCTID?=QPG6105
SRC_DISABLE_ALIGNMENT_ERROR+=$(BASEDIR)/../../../Components/ThirdParty/Silex/cryptosoc/libcryptosoc/src/cryptodma.c
SRC_DISABLE_ALIGNMENT_ERROR+=$(BASEDIR)/../../../Components/ThirdParty/Silex/cryptosoc/libcryptosoc/src/memcmp.c
SRC_DISABLE_ALIGNMENT_ERROR+=$(BASEDIR)/../../../Components/ThirdParty/Silex/cryptosoc/libcryptosoc/src/sx_derive_key_alg.c
SRC_DISABLE_ALIGNMENT_ERROR+=$(BASEDIR)/../../../Components/ThirdParty/Silex/cryptosoc/libcryptosoc/src/sx_rng.c
SRC_DISABLE_ALIGNMENT_WARNING+=$(FREERTOS_REPO_DIR)/stream_buffer.c
# Main target file
APPLIB:=$(WORKDIR)/libOpenThreadQorvoGlue_qpg6105_mtd.a
# Compiler specifics
COMPILER:=armgccemb
COMPILER_VERSION:=9_2019-q4-major
TOOLCHAIN?=/usr
PROGRAMMER?=xsif
PROGRAM_EXT:=a
LIB_EXT:=a
SRC=
SRC_NOWARNING=
ASRC=
INC=
AINC=
LIB=
# Application defines
APPNAME:=OpenThreadQorvoGlue_qpg6105_mtd
INC_APP:=
INC_APP+=-I$(BASEDIR)/../../../Components/Qorvo/HAL_PLATFORM/inc
INC_APP+=-I$(BASEDIR)/../../../Components/Qorvo/HAL_PLATFORM/inc/compiler/ARMGCCEMB
INC_APP+=-I$(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd
INC+=$(INC_APP)
AINC_APP:=
AINC_APP+=-I$(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd
AINC+=$(AINC_APP)
#Compilation flags are defined in $(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd/qorvo_config.h
FLAGS+=-DGP_CONFIG_HEADER
LINKERSCRIPT:=$(BASEDIR)/../../../Work/OpenThreadQorvoGlue_qpg6105_mtd/OpenThreadQorvoGlue_qpg6105_mtd.ld
APPFIRMWARE:=
COMPS:=
#Component sources
#Depends on:
# src: gpLog
COMPS+=gpAssert
INC_gpAssert:=
INC_gpAssert+=-I$(BASEDIR)/../../../Components/Qorvo/OS/gpAssert/inc
INC+=$(INC_gpAssert)
#Depends on:
# src:
COMPS+=gpBaseComps
INC_gpBaseComps:=
INC_gpBaseComps+=-I$(BASEDIR)/../../../Components/Qorvo/OS/gpBaseComps/inc
INC+=$(INC_gpBaseComps)
#Depends on:
# src:
COMPS+=gpBsp
INC_gpBsp:=
INC_gpBsp+=-I$(BASEDIR)/../../../Components/Qorvo/BSP/gpBsp/inc
INC_gpBsp+=-I$(BASEDIR)/../../../Components/Qorvo/BSP/gpBsp/inc/BLE
INC_gpBsp+=-I$(BASEDIR)/../../../Components/Qorvo/BSP/gpBsp/inc/FTS
INC_gpBsp+=-I$(BASEDIR)/../../../Components/Qorvo/BSP/gpBsp/inc/FoundationAndSilicon
INC_gpBsp+=-I$(BASEDIR)/../../../Components/Qorvo/BSP/gpBsp/inc/Gateway
INC_gpBsp+=-I$(BASEDIR)/../../../Components/Qorvo/BSP/gpBsp/inc/PTC
INC_gpBsp+=-I$(BASEDIR)/../../../Components/Qorvo/BSP/gpBsp/inc/PeripheralExamples
INC_gpBsp+=-I$(BASEDIR)/../../../Components/Qorvo/BSP/gpBsp/inc/RemoteControl
INC_gpBsp+=-I$(BASEDIR)/../../../Components/Qorvo/BSP/gpBsp/inc/SmartHomeAndLighting
INC+=$(INC_gpBsp)
#Depends on:
# src: gpAssert, gpLog, gpUtils
COMPS+=gpCom
INC_gpCom:=
INC_gpCom+=-I$(BASEDIR)/../../../Components/Qorvo/BaseUtils/gpCom/inc
INC_gpCom+=-I$(BASEDIR)/../../../Components/Qorvo/BaseUtils/gpCom/inc/gen
INC+=$(INC_gpCom)
#Depends on:
# src: gpPd, gphal
COMPS+=gpEncryption
INC_gpEncryption:=
INC_gpEncryption+=-I$(BASEDIR)/../../../Components/Qorvo/BaseUtils/gpEncryption/inc
INC+=$(INC_gpEncryption)
#Depends on:
# src:
COMPS+=gpFreeRTOS
INC_gpFreeRTOS:=
INC_gpFreeRTOS+=-I$(BASEDIR)/../../../Components/Qorvo/OS/gpFreeRTOS/config
INC_gpFreeRTOS+=-I$(FREERTOS_REPO_DIR)/include
INC_gpFreeRTOS+=-I$(FREERTOS_REPO_DIR)/portable/GCC/ARM_CM3
INC+=$(INC_gpFreeRTOS)
AINC_gpFreeRTOS:=
AINC_gpFreeRTOS+=-I$(BASEDIR)/../../../Components/Qorvo/OS/gpFreeRTOS/config
AINC+=$(AINC_gpFreeRTOS)
#Depends on:
# src:
COMPS+=gpJumpTables_k8e
INC_gpJumpTables_k8e:=
INC_gpJumpTables_k8e+=-I$(BASEDIR)/../../../Components/Qorvo/ROM/k8e/gpJumpTables_k8e/inc
INC+=$(INC_gpJumpTables_k8e)
#Depends on:
# src: gpAssert
COMPS+=gpLog
INC_gpLog:=
INC_gpLog+=-I$(BASEDIR)/../../../Components/Qorvo/OS/gpLog/inc
INC+=$(INC_gpLog)
#Depends on:
# src: gphal, gpAssert, gpPd, gpPad, gpRxArbiter, gpPoolMem
# inc: gpStat, gpEncryption
COMPS+=gpMacCore
INC_gpMacCore:=
INC_gpMacCore+=-I$(BASEDIR)/../../../Components/Qorvo/802_15_4/gpMacCore/inc
INC_gpMacCore+=-I$(BASEDIR)/../../../Components/Qorvo/802_15_4/gpMacCore/src
INC_gpMacCore+=-I$(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd/gpMacCore/inc
INC_gpMacCore+=-I$(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd/gpMacCore/src
INC+=$(INC_gpMacCore)
AINC_gpMacCore:=
AINC_gpMacCore+=-I$(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd/gpMacCore/inc
AINC_gpMacCore+=-I$(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd/gpMacCore/src
AINC+=$(AINC_gpMacCore)
#Depends on:
# src: gpMacCore, gpAssert, gpPd, gpSched
# inc: gpStat
COMPS+=gpMacDispatcher
INC_gpMacDispatcher:=
INC_gpMacDispatcher+=-I$(BASEDIR)/../../../Components/Qorvo/802_15_4/gpMacDispatcher/inc
INC_gpMacDispatcher+=-I$(BASEDIR)/../../../Components/Qorvo/802_15_4/gpMacDispatcher/inc/gen
INC_gpMacDispatcher+=-I$(BASEDIR)/../../../Components/Qorvo/802_15_4/gpMacDispatcher/src
INC_gpMacDispatcher+=-I$(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd/gpMacDispatcher/inc
INC+=$(INC_gpMacDispatcher)
AINC_gpMacDispatcher:=
AINC_gpMacDispatcher+=-I$(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd/gpMacDispatcher/inc
AINC+=$(AINC_gpMacDispatcher)
#Depends on:
# src: gpPoolMem, gphal, gpAssert, gpLog, gpSched, gpUtils
# inc: gpPoolMem
COMPS+=gpNvm
INC_gpNvm:=
INC_gpNvm+=-I$(BASEDIR)/../../../Components/Qorvo/BaseUtils/gpNvm/inc
INC_gpNvm+=-I$(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd/gpNvm/inc
INC+=$(INC_gpNvm)
AINC_gpNvm:=
AINC_gpNvm+=-I$(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd/gpNvm/inc
AINC+=$(AINC_gpNvm)
#Depends on:
# src: gpLog, gpAssert, gphal
COMPS+=gpPad
INC_gpPad:=
INC_gpPad+=-I$(BASEDIR)/../../../Components/Qorvo/HAL_RF/gpPad/inc
INC+=$(INC_gpPad)
#Depends on:
# src: gpLog, gpAssert
# inc: gpSched, gphal
COMPS+=gpPd
INC_gpPd:=
INC_gpPd+=-I$(BASEDIR)/../../../Components/Qorvo/HAL_RF/gpPd/inc
INC+=$(INC_gpPd)
#Depends on:
# src: gpLog, gpAssert, gpWmrk
# inc: gpPd
COMPS+=gpPoolMem
INC_gpPoolMem:=
INC_gpPoolMem+=-I$(BASEDIR)/../../../Components/Qorvo/OS/gpPoolMem/inc
INC_gpPoolMem+=-I$(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd/gpPoolMem/inc
INC+=$(INC_gpPoolMem)
AINC_gpPoolMem:=
AINC_gpPoolMem+=-I$(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd/gpPoolMem/inc
AINC+=$(AINC_gpPoolMem)
#Depends on:
# src: gpLog, gpAssert
COMPS+=gpRadio
INC_gpRadio:=
INC_gpRadio+=-I$(BASEDIR)/../../../Components/Qorvo/HAL_RF/gpRadio/inc
INC+=$(INC_gpRadio)
#Depends on:
# src: gpLog, gpSched, gphal
COMPS+=gpRandom
INC_gpRandom:=
INC_gpRandom+=-I$(BASEDIR)/../../../Components/Qorvo/BaseUtils/gpRandom/inc
INC_gpRandom+=-I$(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd/gpRandom/inc
INC+=$(INC_gpRandom)
AINC_gpRandom:=
AINC_gpRandom+=-I$(BASEDIR)/../../../Libraries/Qorvo/OpenThreadQorvoGlue/gen/OpenThreadQorvoGlue_qpg6105_mtd/gpRandom/inc
AINC+=$(AINC_gpRandom)
#Depends on:
# src: gpLog, gpNvm
COMPS+=gpReset
INC_gpReset:=
INC_gpReset+=-I$(BASEDIR)/../../../Components/Qorvo/OS/gpReset/inc
INC+=$(INC_gpReset)
#Depends on:
# src: gpAssert, gphal, gpLog
COMPS+=gpRxArbiter
INC_gpRxArbiter:=
INC_gpRxArbiter+=-I$(BASEDIR)/../../../Components/Qorvo/802_15_4/gpRxArbiter/inc
INC+=$(INC_gpRxArbiter)
#Depends on:
# src: gpAssert, gpLog, gpUtils
COMPS+=gpSched
INC_gpSched:=
INC_gpSched+=-I$(BASEDIR)/../../../Components/Qorvo/OS/gpSched/inc
INC_gpSched+=-I$(BASEDIR)/../../../Components/Qorvo/OS/gpSched/src
INC+=$(INC_gpSched)
#Depends on:
# src: gpLog, gpAssert
COMPS+=gpStat
INC_gpStat:=
INC_gpStat+=-I$(BASEDIR)/../../../Components/Qorvo/BaseUtils/gpStat/inc
INC+=$(INC_gpStat)
#Depends on:
# src: gpAssert, gpLog
COMPS+=gpUtils
INC_gpUtils:=
INC_gpUtils+=-I$(BASEDIR)/../../../Components/Qorvo/BaseUtils/gpUtils/inc
INC+=$(INC_gpUtils)
#Depends on:
# src: gpLog, gpAssert
COMPS+=gpWmrk
INC_gpWmrk:=
INC_gpWmrk+=-I$(BASEDIR)/../../../Components/Qorvo/BaseUtils/gpWmrk/inc
INC+=$(INC_gpWmrk)
#Depends on:
# src: gpAssert, gpReset, silexCryptoSoc, gpSched, gpRandom, gpJumpTables_k8e, gpPd, gpRadio, gpPad, gpRxArbiter, gpUtils
# inc: gpStat, gpBsp, gpEncryption
COMPS+=gphal
INC_gphal:=
INC_gphal+=-I$(BASEDIR)/../../../Components/Qorvo/HAL_RF/gphal/inc
INC_gphal+=-I$(BASEDIR)/../../../Components/Qorvo/HAL_RF/gphal/k8e/inc
INC_gphal+=-I$(BASEDIR)/../../../Components/Qorvo/HAL_RF/gphal/k8e/src
INC+=$(INC_gphal)
AINC_gphal:=
AINC_gphal+=-I$(BASEDIR)/../../../Components/Qorvo/HAL_RF/gphal/k8e/inc
AINC+=$(AINC_gphal)
#Depends on:
# src: gpAssert, gphal, gpJumpTables_k8e
# inc: gpBsp
COMPS+=halCortexM4
INC_halCortexM4:=
INC_halCortexM4+=-I$(BASEDIR)/../../../Components/Qorvo/HAL_PLATFORM/halCortexM4/inc
INC_halCortexM4+=-I$(BASEDIR)/../../../Components/Qorvo/HAL_PLATFORM/halCortexM4/k8e/inc
INC_halCortexM4+=-I$(BASEDIR)/../../../Components/ThirdParty/TOOL_CMSIS/CMSIS/Core/Include
INC+=$(INC_halCortexM4)
#Depends on:
# src:
# inc: gpAssert, gpBaseComps, gpSched, gpPd, gpMacDispatcher, gpRxArbiter, gpRandom, gpCom
COMPS+=qvOT
SRC_qvOT:=
SRC_qvOT+=$(BASEDIR)/../../../Components/Qorvo/OpenThread/qvOT/src/alarm_qorvo.c
SRC_qvOT+=$(BASEDIR)/../../../Components/Qorvo/OpenThread/qvOT/src/com_qorvo.c
SRC_qvOT+=$(BASEDIR)/../../../Components/Qorvo/OpenThread/qvOT/src/misc_qorvo.c
SRC_qvOT+=$(BASEDIR)/../../../Components/Qorvo/OpenThread/qvOT/src/platform_qorvo.c
SRC_qvOT+=$(BASEDIR)/../../../Components/Qorvo/OpenThread/qvOT/src/radio_qorvo.c
SRC_qvOT+=$(BASEDIR)/../../../Components/Qorvo/OpenThread/qvOT/src/random_qorvo.c
SRC_qvOT+=$(BASEDIR)/../../../Components/Qorvo/OpenThread/qvOT/src/settings_qorvo.c
SRC+=$(SRC_qvOT)
INC_qvOT:=
INC_qvOT+=-I$(BASEDIR)/../../../Components/Qorvo/OpenThread/qvOT/inc
INC_qvOT+=-I$(OPENTHREAD_REPO_DIR)/examples/platforms
INC_qvOT+=-I$(OPENTHREAD_REPO_DIR)/include
INC_qvOT+=-I$(OPENTHREAD_REPO_DIR)/src/core
INC_qvOT+=-I$(BASEDIR)/../../../Components/ThirdParty/P959_ot-qorvo/src/qpg6105
INC+=$(INC_qvOT)
SRC_NOWARNING+=$(SRC_qvOT)
#Depends on:
# src: gpAssert, gpLog
COMPS+=silexCryptoSoc
INC_silexCryptoSoc:=
INC_silexCryptoSoc+=-I$(BASEDIR)/../../../Components/Qorvo/HAL_PLATFORM/silexCryptoSoc/inc
INC_silexCryptoSoc+=-I$(BASEDIR)/../../../Components/ThirdParty/Silex/cryptosoc/libcryptosoc/include
INC_silexCryptoSoc+=-I$(BASEDIR)/../../../Components/ThirdParty/Silex/cryptosoc/libcryptosoc/src
INC+=$(INC_silexCryptoSoc)
AINC_silexCryptoSoc:=
AINC_silexCryptoSoc+=-I$(BASEDIR)/../../../Components/ThirdParty/Silex/cryptosoc/libcryptosoc/include
AINC_silexCryptoSoc+=-I$(BASEDIR)/../../../Components/ThirdParty/Silex/cryptosoc/libcryptosoc/src
AINC+=$(AINC_silexCryptoSoc)
-include $(BASEDIR)/custom.mk
include $(ENV_PATH)/make/gpcommon.mk