blob: 1c6116263f1ca2765440b438678a966f568f9b5c [file] [log] [blame]
INC_DIR =
COMP_DEFS =
FOLDER_LIST =
# source file folder for xgen
GEN_FOLDER_LIST = $(strip $(BUILD_SYSDIR)) $(strip $(BUILD_CODEGENDIR))
INC_DIR += $(strip $(BUILD_SYSDIR)) $(strip $(BUILD_CODEGENDIR))
# Define source file lists to SRC_LIST
# Define source file folder to FOLDER_LIST
FOLDER_LIST += $(GEN_FOLDER_LIST)
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)) \
)
ifeq ($(strip $(MTK_MODEM_ARCH)), MT6297)
SRC_LIST += custom/protocol/common/ps/custom_nras_config.c
endif
ifeq ($(strip $(LGE_SECURITY)), TRUE)
INC_DIR += custom/modem/lgesecurity
endif
ifeq ($(strip $(MTK_MODEM_ARCH)), MT6297P)
SRC_LIST += custom/protocol/common/ps/custom_nras_config.c
endif
SRC_LIST := $(call uniq,$(SRC_LIST))
INC_DIR += driver/sys_drv/cache/inc
INC_DIR += driver/sys_drv/cache/inc/$(MD_VER_FOLDER)
INC_DIR := $(call uniq,$(INC_DIR))
# Add gblob sml verify file
SRC_LIST += custom/middleware/common/custom_sml_sec_verify.c
SRC_LIST += custom/middleware/common/custom_nvram_lid_prot.c
# 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
ifeq ($(filter __NOR_FLASH_BOOTING__,$(strip $(DEFINES))),)
ifdef NEED_BUILD_BOOTLOADER
ifeq ($(strip $(NEED_BUILD_BOOTLOADER)),TRUE)
COMP_DEFS += __BL_ENABLE__
COMP_DEFS += REMAPPING
endif
endif
endif
ifeq ($(strip $(ENHANCED_SINGLE_BANK_NOR_FLASH_SUPPORT)),TRUE)
COMP_DEFS += REMAPPING
endif