blob: 49344710693fca913496a9fd860420fd62654c80 [file] [log] [blame]
#***********************************************************************
# ¡ã?¨¨¡§?¨´¨®D (C)2001,?DD?¨ª¡§??1¨¦¡¤Y¨®D?T1????¡ê
#
# ???t??3?¡êo makefile
# ???t¡À¨º¨º?¡êo ¡À¨¤¨°?drv hal ?a
# ?¨²¨¨Y?a¨°a¡êo ?¡§¨°??y?¡¥?¡ê?¨¦¡À?¨¢?¡ê?¨º1¦Ì?2?¨ª?1¡è3¨¬?¨¦¨°?¡À¨¤¨°??¡ê?¨¦??2?¨ª?¦Ì?¨º¦Ì???¡ä??
#
# DT??¨¨??¨² ¡ã?¡À?o? DT??¡À¨º?? DT??¨¨? DT???¨²¨¨Y
# ---------------------------------------------------------------------
# 2013/04/02 V1.0 geanfeng create
#***********************************************************************/
include $(PRJ_PATH)/config/project.mk
include $(PRJ_DRV_PATH)/ws/ref_drv_cfg.mk
ifeq ($(USE_HAL_TEST),yes)
DEFINE += -D_HAL_TEST
endif
#=======================================================================#
#
#/////////// zx297520v3 /////////////
#
#=======================================================================#
#ifeq ($(PRJ_NAME),zx297520v3)
################################################################################
#±àÒëºê¿ª¹Ø
################################################################################
#===============================================
#CPU_PS¨®?CPU_PHY¨ª¡§¨®?????
#===============================================
USE_BSP ?= yes
USE_SPI ?= no
USE_GPIO ?= no
USE_ICP ?= yes
USE_INT ?= yes
USE_TIMER ?= yes
USE_UART ?= no
USE_POW ?= yes
USE_SYS ?= yes
USE_DMA ?= no
USE_EDCP ?= yes
USE_I2C ?= no
USE_WDT ?= no
USE_COMM ?= yes
USE_RAMLOG ?= yes
USE_USBRNDISNET?=no
USE_PCU ?= yes
USE_DDRNET ?= no
USE_EFUSE ?= yes
#===============================================
#CPU_PS
#===============================================
ifeq ($(ARMCORE_TYPE),arm0)
USE_USBDEV ?= no
ifeq ($(OSTYPE),linux)
USE_USBHOST ?= no
else
USE_USBHOST ?= no
endif
USE_CIPHER ?= yes
USE_UICC ?= yes
#USE_SPI ?= yes
USE_DSP ?= no
USE_DPRAM ?= yes
USE_RTC ?= no
#add by shideyou 20130629
USE_LPM ?= yes
USE_NAND ?= no
#zhouqi 2013.4.25
USE_MTD ?= no
USE_MMC_HOST ?= no
USE_MMC_DEVICE ?=no
USE_DISK ?= yes
USE_TSC ?=no
endif
################################################################################
#±àÒëÄ£¿éÀàÐÍ
################################################################################
CHIP_BSP ?= zteIp
CHIP_SPI ?= zteIp
CHIP_CIPHER ?= zteIp
CHIP_GPIO ?= zteIp
CHIP_ICP ?= zteIp
CHIP_LPM ?= zteIp
CHIP_INT ?= zteIp
CHIP_POW ?= zteIp
CHIP_TIMER ?= zteIp
#CHIP_UART ?= zteIp
CHIP_UART ?= UartOpt
CHIP_SYS ?= zteIp
CHIP_DMA ?= zteIp
CHIP_USBDEV ?= device
CHIP_USBHOST ?= dwcHsic
CHIP_UICC ?= infineonIp
CHIP_MMC_HOST ?= host
CHIP_MMC_SLAVE ?= slave
CHIP_EDCP ?= zteIp
CHIP_I2C ?= zteIp
CHIP_DSP ?= zteIp
CHIP_DPRAM ?= zteIp
CHIP_RTC ?= zteIp
CHIP_WDT ?= zteIp
CHIP_TSC ?= zteIp
CHIP_PCU ?= zteIp
CHIP_EFUSE ?= zteIp
CHIP_SPICC ?= zteIp
CHIP_VOU ?= zteIp
################################################################################
#±àÒëºê¶¨Òå
################################################################################
DEFINE += -D_TEST_ZX297520V3
ifeq ($(FLAVOR), debug)
ifeq ($(USE_RAMLOG), yes)
DEFINE += -D_USE_RAMLOG
endif
endif
ifeq ($(USE_USBDEV), yes)
DEFINE += -D_DRV_USB_HIGHSPEED
DEFINE += -D_DRV_USB_SINGLE_NIC
DEFINE += -D_DRV_USB_CDROM
endif
ifeq ($(USE_USBPROXY), yes)
DEFINE += -D_DRV_USB_ADB
DEFINE += -D_DRV_USBPROXY
endif
ifeq ($(USE_NAND), yes)
ifeq ($(PRJ_NAME), zx297520v3)
ZFTL_VERSION = ZFTL_VERSION_3
DEFINE += -D_CONFIG_ZFTL_ENABLE_OOB_ECC
endif
ifeq ($(PRJ_NAME), zx297520v2)
ZFTL_VERSION = ZFTL_VERSION_2
endif
endif
ifeq ($(USE_SYS), yes)
DEFINE += -D_DRV_AUTO_GATE
endif
ifeq ($(USE_USBHOST), yes)
DEFINE += -D_DRV_USB_HSIC_HOST
endif
ifeq ($(USE_DSDS_VSIM), yes)
DEFINE += -DDSDS_VSIM
endif
ifeq ($(USE_POW), yes)
ifeq ($(PRJ_NAME), zx297520v3)
CPU_TYPE = ARM_CORTEX_A53_32
endif
ifeq ($(PRJ_NAME), zx297520v2)
CPU_TYPE = ARM_CORTEX_R7
endif
endif
################################################################################
#ÒôÊÓÆµ±àÒë
################################################################################
#USE_NXP_AUD = yes
USE_AUDIENCE = no
ifeq ($(USE_VOICE_BUFFER_IN_CAP),yes)
DEFINE += -DCONFIG_VOICE_BUFFER_DRV
DEFINE += -D_VBUFF_IN_MULTI_CORE
endif
ifeq ($(USE_AUDIENCE),yes)
DEFINE += -D_USE_AUDIENCE
endif
DEFINE += -D_USE_TEAKAUD
DEFINE += -D_USE_TEAK_AFE
ifeq ($(USE_AMT),yes)
USE_AUDIO_BASE ?= no
USE_REFAUDIO ?= no
else
ifneq ($(USE_SMALL_VERSION),yes)
ifeq ($(USE_VOICE_SUPPORT),yes)
USE_AUDIO_BASE ?= yes
USE_REFAUDIO ?= yes
DEFINE += -D_USE_VOICE
else
USE_AUDIO_BASE ?= no
USE_REFAUDIO ?= no
endif
USE_VOICE ?= yes
USE_TEAKAUD ?= yes
USE_VOICEPROCESS ?= yes
USE_I2S ?= yes
USE_TDM ?= yes
USE_DTMF ?= yes
USE_AUDIO_DATA ?= yes
USE_AUDIOINTF ?= yes
ifeq ($(AUD_PROCESSING),nxp)
USE_NXP = yes
DEFINE += -D_USE_NXP_AUD
endif
ifeq ($(AUD_PROCESSING),webrtc)
USE_WEBRTC = yes
DEFINE += -D_USE_WEBRTC_AUD
endif
USE_AECM ?= yes
USE_AGC ?= yes
USE_NS ?= yes
USE_UTILITY ?= yes
USE_DRV_VOLTE ?= yes
USE_AUDIOMANAGER ?= yes
USE_AUDIO_LIB ?= yes
endif
ifeq ($(USE_EARPIECE_MODULE),yes)
USE_EARPIECE ?= yes
else
USE_EARPIECE ?= no
endif
ifeq ($(USE_AUDIO_MODULE),yes)
USE_AUDIO_CONFIG ?= yes
USE_AUDIO ?= no
else
USE_AUDIO_CONFIG ?= no
USE_AUDIO ?= no
endif
ifeq ($(USE_CODEC_MODULE),yes)
USE_CODEC ?= yes
else
USE_CODEC ?= no
endif
endif
ifeq ($(USE_VOICE),yes)
#DEFINE += -D_USE_VOICE
endif
CHIP_TEAKAUD ?= zteIp
CHIP_VOICE ?= zteIp
CHIP_VOICEPROCESS ?= zteIp
ifeq ($(PRJ_NAME), zx297520v3)
CHIP_I2S ?= zx297520v3
DEFINE += -D_USE_AUDIO_ON_7520V3
endif
ifeq ($(PRJ_NAME), zx297520v2)
CHIP_I2S ?= zx297520v2
DEFINE += -D_USE_AUDIO_ON_7520V2
endif
ifeq ($(PRJ_NAME), zx297520)
CHIP_I2S ?= zx297520
DEFINE += -D_USE_AUDIO_ON_7520
endif
ifeq ($(PRJ_NAME), zx297510)
CHIP_I2S ?= zx297510
DEFINE += -D_USE_AUDIO_ON_7510
endif
#endif #---------ifeq($(PRJ_NAME),zx297520v3)) endif---------------------------------#
#===============================================
#·â¿â¿ª¹Ø
#===============================================
#MK_SDK_VERSION
ifeq ($(MK_SDK_VERSION), no)
USE_SDK_COMPILE = yes
else
USE_SDK_COMPILE = no
endif
USE_CIPHER_SDK = yes
USE_POW_SDK = yes
USE_DPRAM_SDK = yes
USE_EDCP_SDK = yes
USE_LPM_SDK = yes
USE_ICP_SDK = yes
USE_BSP_SDK = yes
USE_INT_SDK = yes
USE_MMC_SDK = yes
USE_MTD_SDK = yes
USE_PCU_SDK = yes
USE_TIMER_SDK = yes
USE_UART_SDK = yes
USE_EFUSE_SDK = yes
USE_SYS_SDK = yes
USE_GPIO_SDK = yes
USE_SPI_SDK = yes
USE_SPICC_SDK = yes
USE_VOU_SDK = yes
USE_CAMERA_SDK = yes
USE_RTC_SDK = yes
USE_DMA_SDK = yes
USE_UICC_SDK = no
#USE_EARPIECE_SDK = yes
#USE_BACKLIGHT_SDK = yes
#USE_KPDBACKLIGHT_SDK = yes
#USE_KPD_SDK = yes
USE_I2C_SDK = yes
#USE_VIDEO_SDK = yes
#USE_RF_SDK = yes
#USE_MUX_SDK = yes
#USE_FWPHEADSET_SDK = yes
USE_WDT_SDK = yes
USE_COMM_SDK = yes
USE_USBDEV_SDK = yes
USE_USBHOST_SDK = yes
USE_DISK_SDK = yes
USE_PMIC_SDK = yes
#USE_CHG_SDK = yes
USE_TSC_SDK = yes
USE_AUDIO_BASE_SDK = no
USE_WEBRTC_SDK = yes
USE_DDRNET_SDK = yes
#===============================================
#end
#===============================================