blob: be6faad328ba52ca7aa7ca396f3a0a2caf7713e9 [file] [log] [blame]
MET_PLF := $(MTK_PLATFORM)
#ccflags-y += -DMET_CHIP_USE
met-y := $(MET_PLF)/met_main.o \
$(MET_PLF)/interface.o \
$(MET_PLF)/sampler.o \
$(MET_PLF)/util.o \
$(MET_PLF)/core_plf_init.o \
$(MET_PLF)/core_plf_trace.o \
$(MET_PLF)/cookie.o \
$(MET_PLF)/ondiemet.o \
$(MET_PLF)/ondiemet_log.o \
$(MET_PLF)/sspm/ondiemet_sspm.o
CFLAGS_interface.o :=
#CFLAGS_interface.o += -DMET_USER_EVENT_SUPPORT
#CFLAGS_met_tag_ex.o += -DMET_USER_EVENT_SUPPORT
$(info ARCH = $(ARCH))
ifeq ($(ARCH), mips)
met-y += $(MET_PLF)/mips_pmu_hw.o
endif #ifeq ($(ARCH), mips)
ifeq ($(ARCH), arm)
ccflags-y += -DCONFIG_MET_ARM_32BIT
met-y += $(MET_PLF)/cpu_pmu.o
met-y += $(MET_PLF)/v7_pmu_hw.o
met-y += $(MET_PLF)/v6_pmu_hw.o
endif #ifeq ($(ARCH), arm)
ifeq ($(ARCH), arm64)
ccflags-y += -DMET_SUPPORT_CPUPMU_V2
met-y += $(MET_PLF)/cpu_pmu.o
met-y += $(MET_PLF)/v8_pmu_hw.o
met-y += $(MET_PLF)/cpu_pmu_v2.o
met-y += $(MET_PLF)/v8_pmu_hw_v2.o
endif
$(info CONFIG_CPU_FREQ = $(CONFIG_CPU_FREQ))
ifeq ($(CONFIG_CPU_FREQ),y)
met-y += $(MET_PLF)/power.o
endif
################################################################################
# MET_AP_EMI
################################################################################
FEATURE_AP_EMI := $(if $(FEATURE_AP_EMI),$(FEATURE_AP_EMI),y)
$(info FEATURE_AP_EMI = $(FEATURE_AP_EMI))
ifneq ($(FEATURE_AP_EMI), n)
MET_AP_EMI := y
else
MET_AP_EMI := n
endif
met-$(MET_AP_EMI) += $(MET_PLF)/met_emi.o $(MET_PLF)/mtk_emi_bm.o
################################################################################
# MET_GPU
################################################################################
MET_GPU := y
met-y += $(MET_PLF)/mtk_gpu_metmonitor.o