6db4831e98
Android 14
90 lines
2.8 KiB
Makefile
90 lines
2.8 KiB
Makefile
#
|
|
# 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.
|
|
#
|
|
|
|
ccflags-y += -I$(srctree)
|
|
ifeq ($(CONFIG_MACH_MT6833),y)
|
|
PDIR = mt6833
|
|
else ifeq ($(CONFIG_MACH_MT6885),y)
|
|
PDIR = mt6885
|
|
else ifeq ($(CONFIG_MACH_MT6893),y)
|
|
PDIR = mt6893
|
|
else ifeq ($(CONFIG_MACH_MT6877),y)
|
|
PDIR = mt6877
|
|
else ifeq ($(CONFIG_MACH_MT6781),y)
|
|
PDIR = mt6781
|
|
else ifeq ($(CONFIG_MACH_MT6739),y)
|
|
PDIR = mt6739
|
|
else ifeq ($(CONFIG_MACH_MT6768),y)
|
|
PDIR = mt6768
|
|
else ifeq ($(CONFIG_MACH_MT6853),y)
|
|
PDIR = mt6853
|
|
else ifeq ($(CONFIG_MACH_MT6873),y)
|
|
PDIR = mt6873
|
|
else ifeq ($(CONFIG_MACH_MT6785),y)
|
|
PDIR = mt6785
|
|
else ifeq ($(CONFIG_MACH_MT6771),y)
|
|
PDIR = mt6771
|
|
else
|
|
PDIR = $(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/include/
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/thermal/fakeHeader/
|
|
ccflags-y += -I$(srctree)/drivers/gpu/mediatek/gpufreq/include/
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/gpu/hal/
|
|
ccflags-y += -I$(srctree)/drivers/gpu/mediatek/gpufreq/
|
|
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/base/power/include/gpufreq_v1/
|
|
|
|
obj-y += mtk_thermal_monitor.o
|
|
obj-y += mtk_cooler_shutdown.o
|
|
ifeq ($(CONFIG_MTK_LEDS), y)
|
|
# setMaxbrightness() defined in mediatek/kernel/drivers/leds/leds_drv.c only built when CONFIG_MTK_LEDS is set
|
|
obj-y += mtk_cooler_backlight.o
|
|
endif
|
|
obj-y += mtk_cooler_kshutdown.o
|
|
obj-y += mtk_cooler_cam.o
|
|
|
|
ifeq (,$(filter $(CONFIG_ARCH_MT8173) $(CONFIG_ARCH_MT8163) $(CONFIG_MACH_MT2701) $(CONFIG_ARCH_MT7623) $(CONFIG_ARCH_MT8127) $(CONFIG_MACH_MT8167), y))
|
|
obj-y += common/
|
|
endif
|
|
|
|
ifeq ($(CONFIG_MACH_MT6781),y)
|
|
obj-y += mt6781/
|
|
else ifeq ($(CONFIG_MACH_MT6885),y)
|
|
obj-y += mt6885/
|
|
else ifeq ($(CONFIG_MACH_MT6833),y)
|
|
obj-y += mt6833/
|
|
else ifeq ($(CONFIG_MACH_MT6893),y)
|
|
obj-y += mt6893/
|
|
else ifeq ($(CONFIG_MACH_MT6739),y)
|
|
obj-y += mt6739/
|
|
else ifeq ($(CONFIG_MACH_MT6877),y)
|
|
obj-y += mt6877/
|
|
else ifeq ($(CONFIG_MACH_MT6768),y)
|
|
obj-y += mt6768/
|
|
else ifeq ($(CONFIG_MACH_MT6873),y)
|
|
obj-y += mt6873/
|
|
else ifeq ($(CONFIG_MACH_MT6853),y)
|
|
obj-y += mt6853/
|
|
else ifeq ($(CONFIG_MACH_MT6785),y)
|
|
obj-y += mt6785/
|
|
else ifeq ($(CONFIG_MACH_MT6771),y)
|
|
obj-y += mt6771/
|
|
else
|
|
obj-y += $(subst ",,$(CONFIG_MTK_LEGACY_THERMAL_PLATFORM))/
|
|
|
|
endif
|