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)
24 lines
946 B
Makefile
24 lines
946 B
Makefile
subdir-ccflags-y += -Wall
|
|
ifeq ($(CONFIG_MTK_GAUGE_VERSION),30)
|
|
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/typec/tcpc/inc
|
|
subdir-ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/charger
|
|
subdir-ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/misc
|
|
else
|
|
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/power/mt6757
|
|
endif
|
|
|
|
obj-$(CONFIG_MFD_MT6370_PMU) += mt6370_pmu_i2c.o mt6370_pmu_regmap.o\
|
|
mt6370_pmu_irq.o mt6370_pmu_subdevs.o\
|
|
mt6370_pmu_core.o
|
|
obj-$(CONFIG_MT6370_PMU_LDO) += mt6370_pmu_ldo.o
|
|
obj-$(CONFIG_MT6370_PMU_DSV) += mt6370_pmu_dsv.o mt6370_pmu_dsv_debugfs.o
|
|
obj-$(CONFIG_MT6370_PMU_FLED) += mt6370_pmu_fled.o
|
|
obj-$(CONFIG_MT6370_PMU_BLED) += mt6370_pmu_bled.o
|
|
obj-$(CONFIG_MT6370_PMU_RGBLED) += mt6370_pmu_rgbled.o
|
|
|
|
ifeq ($(CONFIG_MTK_GAUGE_VERSION),30)
|
|
obj-$(CONFIG_MT6370_PMU_CHARGER) += mt6370_pmu_charger.o
|
|
else
|
|
obj-$(CONFIG_MT6370_PMU_CHARGER) += mt6370_pmu_charger_gm20.o
|
|
endif
|