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)
45 lines
1.7 KiB
Makefile
45 lines
1.7 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.
|
|
#
|
|
ifdef CONFIG_LEDS_MTK_DISP
|
|
obj-$(CONFIG_LEDS_MTK_DISP) += leds-mtk-disp.o
|
|
else ifdef CONFIG_LEDS_MTK_PWM
|
|
obj-$(CONFIG_LEDS_MTK_PWM) += leds-mtk-pwm.o
|
|
else ifdef CONFIG_LEDS_MTK_I2C
|
|
obj-$(CONFIG_LEDS_MTK_I2C) += leds-mtk-i2c.o
|
|
else
|
|
ifeq (y, $(filter y, $(CONFIG_MACH_MT6765) $(CONFIG_MACH_MT6761)))
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/leds/mt6765
|
|
else ifeq (y, $(filter y, $(CONFIG_MACH_MT6885) $(CONFIG_MACH_MT6893)))
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/leds/mt6885
|
|
else ifeq (y, $(filter y, $(CONFIG_MACH_MT6853) $(CONFIG_MACH_MT6833)))
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/leds/mt6853
|
|
else
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/leds/$(MTK_PLATFORM)
|
|
endif
|
|
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/video/include
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/gate_ic
|
|
|
|
obj-$(CONFIG_MTK_LEDS) += mtk_leds_drv.o
|
|
|
|
ifeq (y, $(filter y, $(CONFIG_MACH_MT6765) $(CONFIG_MACH_MT6761)))
|
|
obj-y += $(subst ",,mt6765)/
|
|
else ifeq (y, $(filter y, $(CONFIG_MACH_MT6885) $(CONFIG_MACH_MT6893)))
|
|
obj-y += $(subst ",,mt6885)/
|
|
else ifeq (y, $(filter y, $(CONFIG_MACH_MT6853) $(CONFIG_MACH_MT6833)))
|
|
obj-y += $(subst ",,mt6853)/
|
|
else
|
|
obj-y += $(subst ",,$(CONFIG_MTK_PLATFORM))/
|
|
endif
|
|
endif
|