blob: 49344710693fca913496a9fd860420fd62654c80 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#***********************************************************************
2# ¡ã?¨¨¡§?¨´¨®D (C)2001,?DD?¨ª¡§??1¨¦¡¤Y¨®D?T1????¡ê
3#
4# ???t??3?¡êo makefile
5# ???t¡À¨º¨º?¡êo ¡À¨¤¨°?drv hal ?a
6# ?¨²¨¨Y?a¨°a¡êo ?¡§¨°??y?¡¥?¡ê?¨¦¡À?¨¢?¡ê?¨º1¦Ì?2?¨ª?1¡è3¨¬?¨¦¨°?¡À¨¤¨°??¡ê?¨¦??2?¨ª?¦Ì?¨º¦Ì???¡ä??
7#
8# DT??¨¨??¨² ¡ã?¡À?o? DT??¡À¨º?? DT??¨¨? DT???¨²¨¨Y
9# ---------------------------------------------------------------------
10# 2013/04/02 V1.0 geanfeng create
11#***********************************************************************/
12include $(PRJ_PATH)/config/project.mk
13include $(PRJ_DRV_PATH)/ws/ref_drv_cfg.mk
14ifeq ($(USE_HAL_TEST),yes)
15DEFINE += -D_HAL_TEST
16endif
17
18#=======================================================================#
19#
20#/////////// zx297520v3 /////////////
21#
22#=======================================================================#
23#ifeq ($(PRJ_NAME),zx297520v3)
24
25################################################################################
26#±àÒëºê¿ª¹Ø
27################################################################################
28
29#===============================================
30#CPU_PS¨®?CPU_PHY¨ª¡§¨®?????
31#===============================================
32USE_BSP ?= yes
33USE_SPI ?= no
34USE_GPIO ?= no
35USE_ICP ?= yes
36USE_INT ?= yes
37USE_TIMER ?= yes
38USE_UART ?= no
39USE_POW ?= yes
40USE_SYS ?= yes
41USE_DMA ?= no
42USE_EDCP ?= yes
43USE_I2C ?= no
44USE_WDT ?= no
45USE_COMM ?= yes
46USE_RAMLOG ?= yes
47USE_USBRNDISNET?=no
48USE_PCU ?= yes
49USE_DDRNET ?= no
50USE_EFUSE ?= yes
51#===============================================
52#CPU_PS
53#===============================================
54ifeq ($(ARMCORE_TYPE),arm0)
55USE_USBDEV ?= no
56
57ifeq ($(OSTYPE),linux)
58USE_USBHOST ?= no
59else
60USE_USBHOST ?= no
61endif
62
63USE_CIPHER ?= yes
64USE_UICC ?= yes
65#USE_SPI ?= yes
66USE_DSP ?= no
67USE_DPRAM ?= yes
68USE_RTC ?= no
69#add by shideyou 20130629
70USE_LPM ?= yes
71USE_NAND ?= no
72 #zhouqi 2013.4.25
73USE_MTD ?= no
74
75USE_MMC_HOST ?= no
76
77USE_MMC_DEVICE ?=no
78
79USE_DISK ?= yes
80
81USE_TSC ?=no
82
83endif
84
85################################################################################
86#±àÒëÄ£¿éÀàÐÍ
87################################################################################
88CHIP_BSP ?= zteIp
89CHIP_SPI ?= zteIp
90CHIP_CIPHER ?= zteIp
91CHIP_GPIO ?= zteIp
92CHIP_ICP ?= zteIp
93CHIP_LPM ?= zteIp
94CHIP_INT ?= zteIp
95CHIP_POW ?= zteIp
96CHIP_TIMER ?= zteIp
97#CHIP_UART ?= zteIp
98CHIP_UART ?= UartOpt
99CHIP_SYS ?= zteIp
100CHIP_DMA ?= zteIp
101CHIP_USBDEV ?= device
102CHIP_USBHOST ?= dwcHsic
103CHIP_UICC ?= infineonIp
104CHIP_MMC_HOST ?= host
105CHIP_MMC_SLAVE ?= slave
106CHIP_EDCP ?= zteIp
107CHIP_I2C ?= zteIp
108CHIP_DSP ?= zteIp
109CHIP_DPRAM ?= zteIp
110CHIP_RTC ?= zteIp
111CHIP_WDT ?= zteIp
112CHIP_TSC ?= zteIp
113CHIP_PCU ?= zteIp
114CHIP_EFUSE ?= zteIp
115CHIP_SPICC ?= zteIp
116CHIP_VOU ?= zteIp
117################################################################################
118#±àÒëºê¶¨Òå
119################################################################################
120
121DEFINE += -D_TEST_ZX297520V3
122
123ifeq ($(FLAVOR), debug)
124ifeq ($(USE_RAMLOG), yes)
125DEFINE += -D_USE_RAMLOG
126endif
127endif
128
129ifeq ($(USE_USBDEV), yes)
130DEFINE += -D_DRV_USB_HIGHSPEED
131DEFINE += -D_DRV_USB_SINGLE_NIC
132DEFINE += -D_DRV_USB_CDROM
133endif
134
135ifeq ($(USE_USBPROXY), yes)
136DEFINE += -D_DRV_USB_ADB
137DEFINE += -D_DRV_USBPROXY
138endif
139ifeq ($(USE_NAND), yes)
140ifeq ($(PRJ_NAME), zx297520v3)
141ZFTL_VERSION = ZFTL_VERSION_3
142DEFINE += -D_CONFIG_ZFTL_ENABLE_OOB_ECC
143endif
144ifeq ($(PRJ_NAME), zx297520v2)
145ZFTL_VERSION = ZFTL_VERSION_2
146endif
147endif
148
149ifeq ($(USE_SYS), yes)
150DEFINE += -D_DRV_AUTO_GATE
151endif
152
153ifeq ($(USE_USBHOST), yes)
154DEFINE += -D_DRV_USB_HSIC_HOST
155endif
156
157ifeq ($(USE_DSDS_VSIM), yes)
158DEFINE += -DDSDS_VSIM
159endif
160
161ifeq ($(USE_POW), yes)
162
163ifeq ($(PRJ_NAME), zx297520v3)
164CPU_TYPE = ARM_CORTEX_A53_32
165endif
166
167ifeq ($(PRJ_NAME), zx297520v2)
168CPU_TYPE = ARM_CORTEX_R7
169endif
170
171endif
172
173################################################################################
174#ÒôÊÓÆµ±àÒë
175################################################################################
176#USE_NXP_AUD = yes
177USE_AUDIENCE = no
178
xf.lie31de8b2023-12-26 23:38:58 -0800179ifeq ($(USE_VOICE_BUFFER_IN_CAP),yes)
180DEFINE += -DCONFIG_VOICE_BUFFER_DRV
181DEFINE += -D_VBUFF_IN_MULTI_CORE
182endif
lh9ed821d2023-04-07 01:36:19 -0700183
184
185
186ifeq ($(USE_AUDIENCE),yes)
187DEFINE += -D_USE_AUDIENCE
188endif
189DEFINE += -D_USE_TEAKAUD
190DEFINE += -D_USE_TEAK_AFE
191
192ifeq ($(USE_AMT),yes)
193USE_AUDIO_BASE ?= no
194USE_REFAUDIO ?= no
195else
196ifneq ($(USE_SMALL_VERSION),yes)
197ifeq ($(USE_VOICE_SUPPORT),yes)
198USE_AUDIO_BASE ?= yes
199USE_REFAUDIO ?= yes
200DEFINE += -D_USE_VOICE
201else
202USE_AUDIO_BASE ?= no
203USE_REFAUDIO ?= no
204endif
205USE_VOICE ?= yes
206USE_TEAKAUD ?= yes
207USE_VOICEPROCESS ?= yes
208USE_I2S ?= yes
209USE_TDM ?= yes
210USE_DTMF ?= yes
211USE_AUDIO_DATA ?= yes
212USE_AUDIOINTF ?= yes
213ifeq ($(AUD_PROCESSING),nxp)
214USE_NXP = yes
215DEFINE += -D_USE_NXP_AUD
216endif
217ifeq ($(AUD_PROCESSING),webrtc)
218USE_WEBRTC = yes
219DEFINE += -D_USE_WEBRTC_AUD
220endif
221USE_AECM ?= yes
222USE_AGC ?= yes
223USE_NS ?= yes
224USE_UTILITY ?= yes
225USE_DRV_VOLTE ?= yes
226USE_AUDIOMANAGER ?= yes
227USE_AUDIO_LIB ?= yes
228endif
229ifeq ($(USE_EARPIECE_MODULE),yes)
230USE_EARPIECE ?= yes
231else
232USE_EARPIECE ?= no
233endif
234ifeq ($(USE_AUDIO_MODULE),yes)
235USE_AUDIO_CONFIG ?= yes
236USE_AUDIO ?= no
237else
238USE_AUDIO_CONFIG ?= no
239USE_AUDIO ?= no
240endif
241ifeq ($(USE_CODEC_MODULE),yes)
242USE_CODEC ?= yes
243else
244USE_CODEC ?= no
245endif
246endif
247ifeq ($(USE_VOICE),yes)
248#DEFINE += -D_USE_VOICE
249endif
250
251
252CHIP_TEAKAUD ?= zteIp
253CHIP_VOICE ?= zteIp
254CHIP_VOICEPROCESS ?= zteIp
255
256
257
258ifeq ($(PRJ_NAME), zx297520v3)
259
260 CHIP_I2S ?= zx297520v3
261 DEFINE += -D_USE_AUDIO_ON_7520V3
262endif
263
264ifeq ($(PRJ_NAME), zx297520v2)
265
266 CHIP_I2S ?= zx297520v2
267 DEFINE += -D_USE_AUDIO_ON_7520V2
268endif
269ifeq ($(PRJ_NAME), zx297520)
270
271 CHIP_I2S ?= zx297520
272 DEFINE += -D_USE_AUDIO_ON_7520
273endif
274ifeq ($(PRJ_NAME), zx297510)
275
276 CHIP_I2S ?= zx297510
277 DEFINE += -D_USE_AUDIO_ON_7510
278
279endif
280
281
282
283#endif #---------ifeq($(PRJ_NAME),zx297520v3)) endif---------------------------------#
284
285#===============================================
286#·â¿â¿ª¹Ø
287#===============================================
288#MK_SDK_VERSION
289ifeq ($(MK_SDK_VERSION), no)
290USE_SDK_COMPILE = yes
291else
292USE_SDK_COMPILE = no
293endif
294
295USE_CIPHER_SDK = yes
296USE_POW_SDK = yes
297USE_DPRAM_SDK = yes
298USE_EDCP_SDK = yes
299USE_LPM_SDK = yes
300USE_ICP_SDK = yes
301
302USE_BSP_SDK = yes
303USE_INT_SDK = yes
304USE_MMC_SDK = yes
305USE_MTD_SDK = yes
306USE_PCU_SDK = yes
307USE_TIMER_SDK = yes
308USE_UART_SDK = yes
309USE_EFUSE_SDK = yes
310
311USE_SYS_SDK = yes
312USE_GPIO_SDK = yes
313USE_SPI_SDK = yes
314USE_SPICC_SDK = yes
315USE_VOU_SDK = yes
316USE_CAMERA_SDK = yes
317USE_RTC_SDK = yes
318USE_DMA_SDK = yes
319USE_UICC_SDK = no
320#USE_EARPIECE_SDK = yes
321#USE_BACKLIGHT_SDK = yes
322#USE_KPDBACKLIGHT_SDK = yes
323#USE_KPD_SDK = yes
324USE_I2C_SDK = yes
325#USE_VIDEO_SDK = yes
326#USE_RF_SDK = yes
327#USE_MUX_SDK = yes
328#USE_FWPHEADSET_SDK = yes
329USE_WDT_SDK = yes
330USE_COMM_SDK = yes
331USE_USBDEV_SDK = yes
332USE_USBHOST_SDK = yes
333USE_DISK_SDK = yes
334USE_PMIC_SDK = yes
335#USE_CHG_SDK = yes
336USE_TSC_SDK = yes
337USE_AUDIO_BASE_SDK = no
338USE_WEBRTC_SDK = yes
339USE_DDRNET_SDK = yes
340#===============================================
341#end
342#===============================================