Files
android/drivers/misc/mediatek/performance/fpsgo_v3/fbt/Makefile
T
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
Squashed backup commit (no shallow-clone history issues) of
xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream
commit 9eece662e) plus all fixes applied to get everpal_defconfig building
clean against a modern (GCC 15.2.0) toolchain -- see the previous commit
message on the lineage-23.2 branch (also in this repo history is not
available here since this is a squashed snapshot; full incremental history
lives in the local DL380 checkout and the upstream GitHub remote).

Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
2026-09-12 13:36:46 +00:00

66 lines
1.9 KiB
Makefile

#
# 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.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
FPSGO_TOP = $(srctree)/drivers/misc/mediatek/performance/fpsgo_v3
FBT_TOP = $(FPSGO_TOP)/fbt
COMP_TOP = $(FPSGO_TOP)/composer
MTK_TOP = $(srctree)/drivers/misc/mediatek
BASE_TOP = $(FPSGO_TOP)/base
FSTB_TOP = $(FPSGO_TOP)/fstb
EARA_TOP = $(FPSGO_TOP)/eara_job
ccflags-y += -DNR_FREQ_CPU=16
ifeq ($(CONFIG_MACH_MT6893),y)
obj-y += platform/mt6893/fbt_cpu_platform.o
else ifeq ($(CONFIG_MACH_MT6877),y)
obj-y += platform/mt6877/fbt_cpu_platform.o
else
obj-y += platform/$(MTK_PLATFORM)/fbt_cpu_platform.o
endif
ifeq ($(CONFIG_MACH_MT6893),y)
CONFIG_FPSGO_THERMAL_SUPPORT := y
ccflags-y += -DCONFIG_FPSGO_THERMAL_SUPPORT
else
CONFIG_FPSGO_THERMAL_SUPPORT := n
endif
obj-y += \
src/fbt_cpu.o \
src/xgf.o \
src/mini_top.o \
src/uboost.o \
obj-$(CONFIG_FPSGO_THERMAL_SUPPORT) += src/thermal_aware.o
ccflags-y += \
-I$(srctree)/include/ \
-I$(MTK_TOP)/include/ \
-I$(FPSGO_TOP)/base/include/ \
-I$(COMP_TOP)/include/ \
-I$(FBT_TOP)/include/ \
-I$(BASE_TOP)/include/ \
-I$(MTK_TOP)/base/power/include/ \
-I$(MTK_TOP)/base/power/$(MTK_PLATFORM)/ \
-I$(FSTB_TOP)/ \
-I$(EARA_TOP)/include/ \
-I$(srctree)/kernel/ \
-I$(MTK_TOP)/thermal/$(MTK_PLATFORM)/inc/ \
-I$(MTK_TOP)/thermal/$(MTK_PLATFORM)/inc/mach \
-I$(MTK_TOP)/include/mt-plat \
-I$(MTK_TOP)/include/mt-plat/$(MTK_PLATFORM)/include/mach