kernel_samsung_a34x-permissive/drivers/misc/mediatek/thermal/common/Makefile
2024-04-28 15:49:01 +02:00

66 lines
2.2 KiB
Makefile
Executable file

#
# Copyright (C) 2015 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.
#
ifeq ($(CONFIG_MACH_MT6833),y)
PDIR = mt6833
else ifeq ($(CONFIG_MACH_MT6893),y)
PDIR = mt6893
else ifeq ($(CONFIG_MACH_MT6885),y)
PDIR = mt6885
else ifeq ($(CONFIG_MACH_MT6781),y)
PDIR = mt6781
else ifeq ($(CONFIG_MACH_MT6768),y)
PDIR = mt6768
else ifeq ($(CONFIG_MACH_MT6877),y)
PDIR = mt6877
else ifeq ($(CONFIG_MACH_MT6739),y)
PDIR = mt6739
else ifeq ($(CONFIG_MACH_MT6873),y)
PDIR = mt6873
else ifeq ($(CONFIG_MACH_MT6853),y)
PDIR = mt6853
else ifeq ($(CONFIG_MACH_MT6785),y)
PDIR = mt6785
else
PDIR = $(CONFIG_MTK_PLATFORM)
endif
THERMAL_CHIP_DRIVER_DIR := $(srctree)/drivers/misc/mediatek/thermal/$(PDIR)
ccflags-y += -I$(THERMAL_CHIP_DRIVER_DIR)/inc
ccflags-y += -I$(srctree)/drivers/misc/mediatek/base/power/$(PDIR)
ccflags-y += -I$(srctree)/drivers/misc/mediatek/base/power/include/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/gpu/hal/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/thermal/fakeHeader/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/thermal/common/inc/
ccflags-y += -I$(srctree)./drivers/misc/mediatek/thermal/$(PDIR)/inc/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/base/power/eem_v1/inc/
ifeq ($(CONFIG_MTK_APUSYS_SUPPORT),y)
ccflags-y += -I$(srctree)/drivers/misc/mediatek/apusys/power/2.0/$(MTK_PLATFORM)
else
ccflags-y += -I$(srctree)/drivers/misc/mediatek/vpu/$(PDIR)
ccflags-y += -I$(srctree)/drivers/misc/mediatek/mdla/1.0
endif
ccflags-y += -I$(srctree)/drivers/gpu/mediatek/gpufreq/include/
obj-$(CONFIG_THERMAL) += mtk_thermal_platform.o
obj-$(CONFIG_THERMAL) += ap_thermal_limit.o
#obj-$(CONFIG_THERMAL) += mtk_change_policy.o
obj-y += thermal_zones/
obj-y += coolers/
obj-y += mtk_thermal_timer.o