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