# Copyright (C) 2017 MediaTek Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/performance/perf_ioctl/ \ -I$(srctree)/drivers/misc/mediatek/performance/include/ \ -I$(srctree)/drivers/misc/mediatek/base/power/include/ \ -I$(srctree)/drivers/misc/mediatek/include/ ifeq ($(CONFIG_MACH_MT6739),y) subdir-ccflags-y += -DMTK_MT6739_MTK_CPU_FREQ endif obj-y += perfmgr_main.o obj-y += base/ obj-$(CONFIG_MTK_PERF_OBSERVER) += observer/ obj-$(CONFIG_MTK_RESYM) += resym/ obj-$(CONFIG_MTK_GBE) += gbe/ obj-y += syslimiter/ #ifeq (,$(findstring mt8,$(CONFIG_MTK_PLATFORM))) obj-y += boost_ctrl/ obj-y += tchbst/ #endif obj-y += perf_ioctl/ ifeq ($(CONFIG_MACH_MT6893),y) obj-$(CONFIG_MTK_FPSGO_V3) += fpsgo_v3_topology/ else ifeq ($(CONFIG_MACH_MT6885),y) obj-$(CONFIG_MTK_FPSGO_V3) += fpsgo_v3_topology/ else ifeq ($(CONFIG_MACH_MT6877),y) obj-$(CONFIG_MTK_FPSGO_V3) += fpsgo_v3_topology/ else ifeq ($(CONFIG_MACH_MT6781),y) obj-$(CONFIG_MTK_FPSGO_V3) += fpsgo_v3_topology/ else ifeq ($(CONFIG_MACH_MT6739),y) obj-$(CONFIG_MTK_FPSGO_V3) += fpsgo_v3_topology/ else ifeq ($(CONFIG_MACH_MT6833),y) obj-$(CONFIG_MTK_FPSGO_V3) += fpsgo_v3_topology/ else ifeq ($(CONFIG_MACH_MT6768),y) obj-$(CONFIG_MTK_FPSGO_V3) += fpsgo_v3_topology/ else ifeq ($(CONFIG_MACH_MT6873),y) obj-$(CONFIG_MTK_FPSGO_V3) += fpsgo_v3_topology/ else ifeq ($(CONFIG_MACH_MT6853),y) obj-$(CONFIG_MTK_FPSGO_V3) += fpsgo_v3_topology/ else obj-$(CONFIG_MTK_FPSGO_V3) += fpsgo_v3/ endif obj-$(CONFIG_MTK_FRS) += frs/ ifneq (,$(filter $(CONFIG_MTK_LEGACY_THERMAL_PLATFORM), "mt6779")) obj-$(CONFIG_MTK_EARA_THERMAL) += eara_thermal/ endif obj-$(CONFIG_MTK_LOAD_TRACKER) += load_track/ obj-$(CONFIG_MTK_LOAD_TRACKER) += uload_ind/