Files
android/drivers/misc/mediatek/apusys/mdla/new_arch/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

83 lines
2.7 KiB
Makefile

#
# Copyright (C) 2019 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_MT6893),y)
PWR_PLAT=mt6885
else ifeq ($(CONFIG_MACH_MT6877),y)
PWR_PLAT=mt6877
else
PWR_PLAT=$(MTK_PLATFORM)
endif
# ------------------------------------------------------------------------------
# GKI trial run on kernel 4.14
# ------------------------------------------------------------------------------
subdir-ccflags-y += -DIS_KERNEL_4_14
# ------------------------------------------------------------------------------
# Initial flow
# ------------------------------------------------------------------------------
subdir-ccflags-y += -DINIT_MDLA_BY_SELF
#subdir-ccflags-y += -DBUILD_MODULE
# ------------------------------------------------------------------------------
# APUSYS ARCH : Legacy ARM version
# ------------------------------------------------------------------------------
subdir-ccflags-y += -DLEGACY_PROJ
ccflags-y += -I$(obj)/../../include/
ccflags-y += -I$(obj)/../../util/
ccflags-y += -I$(obj)/../../power/2.0/
ccflags-y += -I$(obj)/../../power/2.0/$(PWR_PLAT)/
ccflags-y += -I$(obj)/../../midware/1.1/
# ------------------------------------------------------------------------------
# APUSYS ARCH : uP version
# ------------------------------------------------------------------------------
#subdir-ccflags-y += -DRV_COMP
#
#ccflags-y += -I$(obj)/../util/
#ccflags-y += -I$(obj)/../power/3.0/
#ccflags-y += -I$(obj)/../power/3.0/$(PWR_PLAT)/
#
## Replace old apusys_device (Path : apusys/include -> apusys/mdla/dummy/)
#ccflags-y += -I$(obj)/dummy/
# ------------------------------------------------------------------------------
# GKI : MDLA only
# ------------------------------------------------------------------------------
src=$(srctree)/drivers/misc/mediatek/apusys/mdla
ccflags-y += -I$(src)/new_arch
obj-y += mdla.o
mdla-objs += $(shell cd $(src) && find new_arch -name "*.c" | sed 's/\.c/\.o/g')
# ------------------------------------------------------------------------------
# GKI : Copy following description to apusys/Makefile
# ------------------------------------------------------------------------------
# src=$(srctree)/drivers/misc/mediatek/apusys
# ccflags-y += -I$(src)/mdla/
# apusys-objs += $(shell cd $(src) && find mdla -name "*.c" | sed 's/\.c/\.o/g')