-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
285 lines (249 loc) · 5.61 KB
/
makefile
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
## embARC application makefile template ##
### You can copy this file to your application folder
### and rename it to makefile.
##
##
# Selected OS
#freertos
#tx
##
#OS_SEL ?= tx
# Application name
APPL ?= WEI_FW
# Optimization Level
# Please Refer to toolchain_xxx.mk for this option
OLEVEL ?= O2
##
# Current Board And Core
##
BOARD ?= socket
BD_VER ?= 24
CUR_CORE ?= arcem9d_wei_r16
##
# select debugging jtag
##
JTAG ?= usb
##
# IC package select : LQFP128/WLCSP38/QFP100/QFN72
##
IC_PACKAGE_SEL = LQFP128
##
# Set toolchain
## gnu
TOOLCHAIN ?= gnu
##
# Set OS type
#RTOS
#TX
##
#OS_TYPE ?= TX
##
# Uncomment following options
# if you want to set your own heap and stack size
# Default settings see options.mk
##
#HEAPSZ ?= 29000
HEAPSZ ?= 32768
#HEAPSZ ?= 131072
#STACKSZ ?= 8192
##
# support TLS function?
##
#TLS_ENABLE ?= 1
##
# Uncomment following options
# if you want to add your own library into link process
# For example:
# If you want link math lib for gnu toolchain,
# you need to set the option to -lm
##
#APPL_LIBS ?=
##
# root dir of embARC
##
EMBARC_ROOT = .
##
# library support feature
# Add new library here
# The source code should be loacted in ~\library\{lib_name}\
# sensordp : for hwacc datapath
# security : for security library
##
LIB_SEL = security
##
# middleware support feature
# Add new middleware here
# The source code should be loacted in ~\middleware\{mid_name}\
##
MID_SEL =
##
# CIS_SENSOR support feature HM_COMMON, HM1245, HM2140, HM01B0_MONO, HM01B0_BAYER
# HM0360_MONO, HM0360_MONO_OSC, HM0360_BAYER, HM0360_BAYER_OSC, HM11B1, HM11B1_REVC
# HM0360_MONO_REVB, HM0360_MONO_OSC_REVB, HM0360_BAYER_REVB, HM0360_BAYER_OSC_REVB
##
CIS_SEL = HM_COMMON
##
# CIS_XSHUTDOWN_PIN_SEL XSHUTDOWN_SGPIO0(FPGA board), XSHUTDOWN_SGPIO1(Socket board, AIOT board)
##
CIS_XSHUTDOWN_PIN_SEL = XSHUTDOWN_SGPIO1
##
# application defines
# Add any definition to enable/disable any feature of application
# EX: -DCLI_ENABLE - Support CLI command for System/IP verification
# -DEVENT_PROCESS - Support Event Create/Handler for System Usage
##
APPL_DEFINES =
# USING Pre-built BSP library
# 1 for enable
# other for disable
##
LIB_BSP_PREBUILT = 1
# USING Pre-built CV library
# 1 for enable
# other for disable
##
LIB_CV_PREBUILT = 1
# USING Pre-built AUDIO library
# 1 for enable
# other for disable
##
LIB_AUDIO_ALGO_PREBUILT = 1
# USING latest AUDIO library
# 1 for using latest AUDIO library
# other for old AUDIO library
##
USE_LATEST_LIB_AUDIO_ALGO = 0
# USING TONE AUDIO library
# 1 for enable
# other for disable
##
USE_TONE_LIB_AUDIO_ALGO = 0
# USING Pre-built ALANGO library
# 1 for enable
# other for disable
##
LIB_AUDIO_ALANGO_PREBUILT = 1
# USING Pre-built AZ_SDK library
# 1 for enable
# other for disable
##
LIB_AZ_SDK_PREBUILT = 1
# USING Pre-built NETXDUO library
# 1 for enable
# other for disable
##
LIB_NETXDUO_PREBUILT = 1
# Flag for pure board initial(no peripheral initial)
# 1 for enable
# other for disable
##
#PURE_BOARD_INIT = 1
##
# Integrate Support
# CLI_PERIPHERAL, CLI_HWACCBYTPG_LIB
# CLI_EXTERNAL
# CLI_HM1245_DP_LIB, CLI_HM2140_DP_LIB
# CLI_HM01B0_BAYER_DP_LIB
# CLI_HM01B0_MONO_DP_LIB
# CLI_EDM
# CLI_HM11B1_DP_LIB
# CLI_HM0360_RESIOSTREAM_DP_LIB
# CLI_HM0360_MONO_DP_LIB
# CLI_HM0360_BAYER_DP_LIB
# CLI_HM1055_DP_LIB
# CLI_PMU_TEST
# HWACCBYTPG_AUTO_TEST
# PS: As follow are scenario_app app name should be the same as directory name
# pmu_lib_test
# sample_code_prerolling_gpiowakeup
# sample_code_cdm_wakeup
# sample_code_gpiowakeup
# sample_code_periodical_wakeup_quickboot
# sample_code_rtos
# demo_scenario_human
# event_handler_testapp
# aiot_facedetect_allon
# aiot_facedetect_cdm
# aiot_humandetect_pir
# aiot_humandetect_smartdoorlock
# aiot_algodetect_analogwakeup
# aiot_algodetect_sensormdwakeup
# aiot_occupancy
# aiot_bodydetect_allon
# qnb_facedetect
# power_measure_app_human
# power_measure_app_ocs
# power_measure_dhrystone
# aiot_humandetect_tv
# aiot_humandetect_tv_cdm
# aiot_humandetect_tv_dut_test
# aiot_humandetect_tv_RTOS
# aiot_humandetect_aircondition
# audio_recognition
# emza_hog_test
# aiot_humandetect_surveillance
# send_frame_test
# tflm_sdk
# aiot_bodydetect_allon_tflite
# aiot_bodydetect_allon_tflite_code_gen (set ALGO_TYPE = TFLITE_MICRO_GOOGLE_PERSON)
# standalone_test
# aiot_chrome
# aiot_bodydetect_allon_tflite_HIMAX
# aiot_bodydetect_allon_tflite_HIMAX_code_gen (set ALGO_TYPE = TFLITE_MICRO_HIMAX_PERSON)
# aiot_surveillance_tflite_HIMAX
# aiot_amr_vip
# sample_code_algo
# slp2_slt
# sd_slt
# slp2_slt_nosensor
# sd_slt_nosensor
# mp3_libmad
# aiot_conference_call
# cambridge_app
# cambridge_app_master
# cambridge_app_slave
# tx_test
# hx_aiot_nb
##
APP_TYPE = aiot_example
#APP_TYPE = tflm_sdk
##
# EMZA_SIMULATOR
# EMZA_HUMAN_DETECT
# EMZA_OCCUPANCY
# EMZA_FACE_DETECT
# EMZA_FACE_DETECT_V2
# EMZA_FACE_DETECT_V4
# EMZA_FACE_DETECT_V6
# SNPS_CNN_FACEDETECT
# DATA_BSS_SRAM
# OKAO
# OKAO_NO_AUDIO
# PIXTALKS
# EXPASOFT_BODY_DETECTION
# TFLITE_MICRO_GOOGLE_PERSON
# TFLITE_MICRO_HIMAX_PERSON
##
ALGO_TYPE = TFLITE_MICRO_GOOGLE_PERSON
LINKER_SCRIPT_FILE =
##
# Add new external device here
# The source code should be located in ~\external\{device_name}\
##
EXT_DEV_LIST += als/apds9301 \
thermal/lm75a \
pir/hcsr501 \
wifi/esp8266 \
imu/lsm9ds1 \
qwiic/ms8607 \
qwiic/air_quality \
qwiic/bme280 \
nb_iot/wnb303r \
# application makefile
include $(EMBARC_ROOT)/app/app.mk
# include current project makefile
COMMON_COMPILE_PREREQUISITES += makefile
### Options above must be added before include options.mk ###
# include key embARC build system makefile
override EMBARC_ROOT := $(strip $(subst \,/,$(EMBARC_ROOT)))
include $(EMBARC_ROOT)/options/options.mk