c05564c4d8
Android 13
221 lines
11 KiB
Makefile
Executable file
221 lines
11 KiB
Makefile
Executable file
ifeq ($(CONFIG_MACH_MT6768),y)
|
|
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6357)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6357
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6358)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6358
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359P)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359p
|
|
obj-$(CONFIG_MTK_EXTBUCK) += extbuck/
|
|
obj-$(CONFIG_MTK_PMIC_COMMON) += common/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6357) += mt6357/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6358) += mt6358/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6359P) += mt6359p/
|
|
obj-$(CONFIG_MFD_MT6370_PMU) += mt6370/
|
|
|
|
ifeq ($(CONFIG_MTK_GAUGE_VERSION),30)
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/battery
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/misc
|
|
obj-y += mtk_battery_adc_intf.o
|
|
endif
|
|
|
|
else ifeq ($(CONFIG_MACH_MT6771),y)
|
|
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6357)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6357
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6358)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6358
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359P)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359p
|
|
obj-$(CONFIG_MTK_EXTBUCK) += extbuck/
|
|
obj-$(CONFIG_MTK_PMIC_COMMON) += common/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6357) += mt6357/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6358) += mt6358/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6359P) += mt6359p/
|
|
obj-$(CONFIG_MFD_MT6370_PMU) += mt6370/
|
|
|
|
ifeq ($(CONFIG_MTK_GAUGE_VERSION),30)
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/battery
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/misc
|
|
obj-y += mtk_battery_adc_intf.o
|
|
endif
|
|
|
|
else ifeq ($(CONFIG_MACH_MT6781),y)
|
|
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6357)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6357
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6358)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6358
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359P)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359p
|
|
obj-$(CONFIG_MTK_EXTBUCK) += extbuck/
|
|
obj-$(CONFIG_MTK_PMIC_COMMON) += common/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6357) += mt6357/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6358) += mt6358/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6359P) += mt6359p/
|
|
obj-$(CONFIG_MFD_MT6370_PMU) += mt6370/
|
|
|
|
ifeq ($(CONFIG_MTK_GAUGE_VERSION),30)
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/battery
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/misc
|
|
obj-y += mtk_battery_adc_intf.o
|
|
endif
|
|
|
|
else ifeq ($(CONFIG_MACH_MT6739),y)
|
|
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6357)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6357
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6358)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6358
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359P)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359p
|
|
obj-$(CONFIG_MTK_EXTBUCK) += extbuck/
|
|
obj-$(CONFIG_MTK_PMIC_COMMON) += common/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6357) += mt6357/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6358) += mt6358/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6359P) += mt6359p/
|
|
|
|
ifeq ($(CONFIG_MTK_GAUGE_VERSION),30)
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/battery
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/misc
|
|
obj-y += mtk_battery_adc_intf.o
|
|
endif
|
|
|
|
else ifeq ($(CONFIG_MACH_MT6877),y)
|
|
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6357)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6357
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6358)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6358
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359P)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359p
|
|
obj-$(CONFIG_MTK_EXTBUCK) += extbuck/
|
|
obj-$(CONFIG_MTK_PMIC_COMMON) += common/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6357) += mt6357/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6358) += mt6358/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6359P) += mt6359p/
|
|
obj-$(CONFIG_MFD_MT6360_PMU) += mt6360/
|
|
|
|
ifeq ($(CONFIG_MTK_GAUGE_VERSION),30)
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/battery
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/misc
|
|
obj-y += mtk_battery_adc_intf.o
|
|
endif
|
|
|
|
else ifeq ($(CONFIG_MACH_MT6833),y)
|
|
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6357)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6357
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6358)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6358
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359P)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359p
|
|
obj-$(CONFIG_MTK_EXTBUCK) += extbuck/
|
|
obj-$(CONFIG_MTK_PMIC_COMMON) += common/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6357) += mt6357/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6358) += mt6358/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6359P) += mt6359p/
|
|
obj-$(CONFIG_MFD_MT6360_PMU) += mt6360/
|
|
|
|
ifeq ($(CONFIG_MTK_GAUGE_VERSION),30)
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/battery
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/misc
|
|
obj-y += mtk_battery_adc_intf.o
|
|
endif
|
|
|
|
else ifeq ($(CONFIG_MACH_MT6853),y)
|
|
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6357)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6357
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6358)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6358
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359P)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359p
|
|
obj-$(CONFIG_MTK_EXTBUCK) += extbuck/
|
|
obj-$(CONFIG_MTK_PMIC_COMMON) += common/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6357) += mt6357/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6358) += mt6358/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6359P) += mt6359p/
|
|
obj-$(CONFIG_MFD_MT6360_PMU) += mt6360/
|
|
|
|
ifeq ($(CONFIG_MTK_GAUGE_VERSION),30)
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/battery
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/misc
|
|
obj-y += mtk_battery_adc_intf.o
|
|
endif
|
|
|
|
else ifeq ($(CONFIG_MACH_MT6873),y)
|
|
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6357)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6357
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6358)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6358
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359P)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359p
|
|
obj-$(CONFIG_MTK_EXTBUCK) += extbuck/
|
|
obj-$(CONFIG_MTK_PMIC_COMMON) += common/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6357) += mt6357/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6358) += mt6358/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6359P) += mt6359p/
|
|
obj-$(CONFIG_MFD_MT6360_PMU) += mt6360/
|
|
|
|
ifeq ($(CONFIG_MTK_GAUGE_VERSION),30)
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/battery
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/misc
|
|
obj-y += mtk_battery_adc_intf.o
|
|
endif
|
|
|
|
else ifeq ($(CONFIG_MACH_MT6885),y)
|
|
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6357)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6357
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6358)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6358
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359P)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359p
|
|
obj-$(CONFIG_MTK_EXTBUCK) += extbuck/
|
|
obj-$(CONFIG_MTK_PMIC_COMMON) += common/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6357) += mt6357/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6358) += mt6358/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6359P) += mt6359p/
|
|
obj-$(CONFIG_MFD_MT6360_PMU) += mt6360/
|
|
|
|
ifeq ($(CONFIG_MTK_GAUGE_VERSION),30)
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/battery
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/misc
|
|
obj-y += mtk_battery_adc_intf.o
|
|
endif
|
|
|
|
else ifeq ($(CONFIG_MACH_MT6893),y)
|
|
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359P)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359p
|
|
obj-$(CONFIG_MTK_EXTBUCK) += extbuck/
|
|
obj-$(CONFIG_MTK_PMIC_COMMON) += common/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6359P) += mt6359p/
|
|
obj-$(CONFIG_MFD_MT6360_PMU) += mt6360/
|
|
|
|
ifeq ($(CONFIG_MTK_GAUGE_VERSION),30)
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/battery
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/misc
|
|
obj-y += mtk_battery_adc_intf.o
|
|
endif
|
|
|
|
else ifeq ($(CONFIG_MACH_MT6785),y)
|
|
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6357)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6357
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6358)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6358
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359
|
|
subdir-ccflags-$(CONFIG_MTK_PMIC_CHIP_MT6359P)+= -I$(srctree)/drivers/misc/mediatek/pmic/include/mt6359p
|
|
obj-$(CONFIG_MTK_EXTBUCK) += extbuck/
|
|
obj-$(CONFIG_MTK_PMIC_COMMON) += common/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6357) += mt6357/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6358) += mt6358/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6359) += mt6359/
|
|
obj-$(CONFIG_MTK_PMIC_CHIP_MT6359P) += mt6359p/
|
|
obj-$(CONFIG_MFD_MT6360_PMU) += mt6360/
|
|
|
|
ifeq ($(CONFIG_MTK_GAUGE_VERSION),30)
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/pmic/include
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/battery
|
|
ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/misc
|
|
obj-y += mtk_battery_adc_intf.o
|
|
endif
|
|
|
|
else
|
|
obj-$(CONFIG_MFD_MT6370_PMU) += mt6370/
|
|
obj-$(CONFIG_MFD_MT6360_PMU) += mt6360/
|
|
obj-$(CONFIG_MFD_MT6397) += mt6397/
|
|
endif
|