| INC_DIR = |
| COMP_DEFS = |
| FOLDER_LIST = |
| |
| # Define ./interface/modem folder path by project option |
| ifneq ($(filter __MD93__,$(strip $(MODULE_DEFS))),) |
| MD_VER_FOLDER_PATH = mt6293 |
| else ifneq ($(filter __MD95__,$(strip $(MODULE_DEFS))),) |
| MD_VER_FOLDER_PATH = mt6295 |
| else ifneq ($(filter __MD97__,$(strip $(MODULE_DEFS))),) |
| MD_VER_FOLDER_PATH = mt6297 |
| else ifneq ($(filter __MD97P__,$(strip $(MODULE_DEFS))),) |
| MD_VER_FOLDER_PATH = mt6297p |
| else |
| #no match chip |
| endif |
| |
| # Define source file lists to SRC_LIST |
| # Define source file folder to FOLDER_LIST |
| ifdef RF_MODULE |
| ifneq ($(strip $(RF_MODULE)),NONE) |
| FOLDER_LIST +=custom/l1/gl1_rf/$(strip $(RF_MODULE)) |
| endif |
| endif |
| |
| #Multi-Mode RF |
| ifdef MM_RF_MODULE |
| ifneq ($(strip $(MM_RF_MODULE)),NONE) |
| FOLDER_LIST += custom/l1/mml1_rf/$(strip $(MM_RF_MODULE)) |
| INC_DIR += custom/l1/mml1_rf/$(strip $(MM_RF_MODULE)) |
| ifneq ($(filter __MD97__ __MD97P__, $(strip $(MODULE_DEFS))),) |
| FOLDER_LIST += custom/l1/mml1_devices/$(strip $(MM_DEVICE)) |
| INC_DIR += custom/l1/mml1_devices/$(strip $(MM_DEVICE)) |
| INC_DIR += interface/l1/mml1/external/mml1_cdf/inc/common |
| INC_DIR += interface/l1/mml1/external/mml1_rf/mmrf_common |
| INC_DIR += interface/l1/mml1/external/mml1_cdf/inc/device_drivers_fe |
| INC_DIR += interface/l1/mml1/external/mml1_cdf/inc/device_drivers_rf |
| INC_DIR += interface/l1/mml1/external/mml1_cdf/inc/sku_mgr |
| INC_DIR += interface/l1/mml1/external/mml1_etdpd |
| INC_DIR += driver/devdrv/digrf_platform/inc |
| endif |
| endif |
| endif |
| |
| ifdef UMTS_RF_MODULE |
| ifneq ($(strip $(UMTS_RF_MODULE)),NONE) |
| FOLDER_LIST += custom/l1/ul1_rf/$(strip $(UMTS_RF_MODULE)) |
| INC_DIR += custom/l1/ul1_rf/$(strip $(UMTS_RF_MODULE)) |
| endif |
| endif |
| |
| ifdef UMTS_TDD128_RF_MODULE |
| ifneq ($(strip $(UMTS_TDD128_RF_MODULE)),NONE) |
| FOLDER_LIST += custom/l1/tl1_rf/$(strip $(UMTS_TDD128_RF_MODULE)) |
| INC_DIR += custom/l1/tl1_rf/$(strip $(UMTS_TDD128_RF_MODULE)) |
| endif |
| endif |
| |
| ifdef LTE_RF_MODULE |
| ifneq ($(strip $(LTE_RF_MODULE)),NONE) |
| FOLDER_LIST += custom/l1/el1_rf/$(strip $(LTE_RF_MODULE)) |
| INC_DIR += custom/l1/el1_rf/$(strip $(LTE_RF_MODULE)) |
| INC_DIR += interface/l1/el1/external/comm/rf_custom/inc |
| INC_DIR += interface/l1/el1/external |
| # FOLDER_LIST += custom/l1/el1_rf/$(strip $(LTE_RF_MODULE))/Toolgen |
| INC_DIR += custom/l1/el1_rf/$(strip $(LTE_RF_MODULE))/Toolgen |
| FOLDER_LIST += custom/l1/el1_rf/$(strip $(LTE_RF_MODULE))/TST_Config |
| INC_DIR += custom/l1/el1_rf/$(strip $(LTE_RF_MODULE))/TST_Config |
| endif |
| endif |
| |
| ifdef C2K_RF_MODULE |
| ifneq ($(strip $(C2K_RF_MODULE)),NONE) |
| #FOLDER_LIST += custom/l1/cl1_rf/$(strip $(C2K_RF_MODULE)) |
| INC_DIR += custom/l1/cl1_rf/$(strip $(C2K_RF_MODULE)) |
| endif |
| endif |
| |
| ifdef NR_RF_MODULE |
| ifneq ($(strip $(NR_RF_MODULE)),NONE) |
| FOLDER_LIST += custom/l1/nl1_rf/$(strip $(NR_RF_MODULE)) |
| INC_DIR += custom/l1/nl1_rf/$(strip $(NR_RF_MODULE)) |
| INC_DIR += interface/l1/mml1/external/mml1_cdf/inc/common |
| INC_DIR += interface/l1/mml1/external/mml1_rf/mmrf_common |
| INC_DIR += interface/l1/mml1/external/mml1_cdf/inc/device_drivers_fe |
| INC_DIR += interface/l1/nl1/external |
| ifneq ($(filter __MD97__ __MD97P__,$(strip $(MODULE_DEFS))),) |
| INC_DIR += $(UNIVERSAL_COMMON)/interface/modem/$(MD_VER_FOLDER_PATH)/common/nr/external/custom |
| INC_DIR += $(UNIVERSAL_COMMON)/interface/modem/$(MD_VER_FOLDER_PATH)/common/nr/external/5g |
| endif |
| INC_DIR += interface/l1/nl1/external/4g |
| INC_DIR += interface/l1/nl1/external/5g |
| #INC_DIR += interface/l1/nl1/external/md97/rf_custom |
| INC_DIR += interface/l1/nl1/external |
| #FOLDER_LIST += custom/l1/nl1_rf/$(strip $(NR_RF_MODULE))/Toolgen |
| #INC_DIR += custom/l1/nl1_rf/$(strip $(NR_RF_MODULE))/Toolgen |
| #FOLDER_LIST += custom/l1/nl1_rf/$(strip $(NR_RF_MODULE))/TST_Config |
| #INC_DIR += custom/l1/nl1_rf/$(strip $(NR_RF_MODULE))/TST_Config |
| endif |
| endif |
| |
| #NL1 folder |
| FOLDER_LIST += custom/l1/nl1 |
| |
| SRC_LIST += $(foreach DIR,$(FOLDER_LIST), \ |
| $(foreach FILE,$(wildcard $(DIR)/*.c),$(FILE)) \ |
| ) |
| SRC_LIST += $(foreach DIR,$(FOLDER_LIST), \ |
| $(foreach FILE,$(wildcard $(DIR)/*.cpp),$(FILE)) \ |
| ) |
| SRC_LIST += $(foreach DIR,$(FOLDER_LIST), \ |
| $(foreach FILE,$(wildcard $(DIR)/*.s),$(FILE)) \ |
| ) |
| SRC_LIST += $(foreach DIR,$(FOLDER_LIST), \ |
| $(foreach FILE,$(wildcard $(DIR)/*.S),$(FILE)) \ |
| ) |
| SRC_LIST += $(foreach DIR,$(FOLDER_LIST), \ |
| $(foreach FILE,$(wildcard $(DIR)/*.dws),$(FILE)) \ |
| ) |
| SRC_LIST += $(foreach DIR,$(FOLDER_LIST), \ |
| $(foreach FILE,$(wildcard $(DIR)/*.rec),$(FILE)) \ |
| ) |
| |
| # Not compile lte_custom_mipi_ref.c , it is tool gen file and included by other file in el1 custom folder |
| SRC_LIST := $(foreach file,$(SRC_LIST),$(if $(filter $(notdir $(call Lower,$(file))),lte_custom_mipi_antca.c),,$(file))) |
| SRC_LIST := $(foreach file,$(SRC_LIST),$(if $(filter $(notdir $(call Lower,$(file))),lte_custom_mipi_ca.c),,$(file))) |
| SRC_LIST := $(foreach file,$(SRC_LIST),$(if $(filter $(notdir $(call Lower,$(file))),lte_custom_mipi_ref.c),,$(file))) |
| SRC_LIST := $(foreach file,$(SRC_LIST),$(if $(filter $(notdir $(call Lower,$(file))),lte_custom_mipi_dpd_ref.c),,$(file))) |
| SRC_LIST := $(foreach file,$(SRC_LIST),$(if $(filter $(notdir $(call Lower,$(file))),lte_custom_mipi_ant_ref.c),,$(file))) |
| SRC_LIST := $(foreach file,$(SRC_LIST),$(if $(filter $(notdir $(call Lower,$(file))),lte_custom_rf_tas_ref.c),,$(file))) |
| ifeq ($(filter __MD95__,$(strip $(MODULE_DEFS))),) |
| SRC_LIST := $(foreach file,$(SRC_LIST),$(if $(filter $(notdir $(call Lower,$(file))),lte_custom_rf_ant_database.c),,$(file))) |
| endif |
| SRC_LIST := $(call uniq,$(SRC_LIST)) |
| |
| INC_DIR += interface/l1/gl1/internal |
| |
| ifdef RF_MODULE |
| ifneq ($(strip $(RF_MODULE)),NONE) |
| INC_DIR +=custom/l1/gl1_rf/$(strip $(RF_MODULE)) |
| endif |
| endif |
| ifeq ($(filter __MTK_TARGET__,$(strip $(MODULE_DEFS))),) |
| INC_DIR += MoDIS_VC9/drv_sim/include |
| endif |
| |
| INC_DIR := $(call uniq,$(INC_DIR)) |
| |
| |
| # Define the specified compile options to COMP_DEFS |
| COMP_DEFS += __UCS2_ENCODING \ |
| MMI_ON_HARDWARE_P \ |
| APCS_INTWORK \ |
| USE_JAM=0 \ |
| COMPILER_SUPPORTS_LONG=1 |
| |
| INC_DIR += interface/l1/el1/external |
| INC_DIR += interface/l1/cl1/common |
| # ************************************************************************* |
| # From Global include path |
| # ************************************************************************* |
| |
| SRC_RULE_AUTOAMMS_DRDI := wcustomdata.c lte_custom_drdi.c l1d_custom_drdi.c t12193.c mml1_drdi.c |
| TARGET_AMMS_DRDI_LIST := interface/l1/mml1/external/mml1_rfd/amms_drdi/auto_amms_drdi_list.txt interface/l1/mml1/external/mml1_rfd/amms_drdi/auto_amms_drdi_special_symbol_list.txt |
| |
| NOT_USE_CATEGORY_INCLUDE = TRUE |