blob: 36bb46061965b031db02926a1d9291bb88fa1846 [file] [log] [blame]
INC_DIR =
COMP_DEFS =
FOLDER_LIST =
# Define source file lists to SRC_LIST
# Define source file folder to FOLDER_LIST
#middleware
FOLDER_LIST += ./custom/middleware/common
ifneq ($(strip $(MODIS_CONFIG)),TRUE)
ifeq ($(strip $(HIF_USB_SUPPORT)),TRUE)
FOLDER_LIST += ./custom/middleware/common/usbc_custom_mode
endif
endif
#INC_DIR += ./custom/middleware/common/usbc_custom_mode
ifneq ($(strip $(TEST_LOAD_TYPE)),BASIC)
FOLDER_LIST += $(call CUSTOM_FLD_MAPPING,./custom/middleware/meta)
endif
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)) \
)
#only in MoDIS
ifeq ($(filter __MTK_TARGET__, $(strip $(MODULE_DEFS))),)
ifdef MODIS_TAP_ACCESS
ifeq ($(strip $(MODIS_TAP_ACCESS)), CLDMA)
MODIS_DIS_FILE += usbc_custom.c
endif
endif
SRC_LIST := $(foreach file,$(SRC_LIST),$(if $(filter $(notdir $(call Lower,$(file))),$(call Lower,$(MODIS_DIS_FILE))),,$(file)))
endif
SRC_LIST := $(call uniq,$(SRC_LIST))
INC_DIR += driver/audio/med/audio/include
INC_DIR += driver/sys_drv/cache/inc
INC_DIR += driver/sys_drv/cache/inc/$(MD_VER_FOLDER)
# ATCI is always needed.
INC_DIR += custom/protocol/common/atci/include
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