huawei-mrd-kernel/drivers/power/supply/mt81xx/Makefile

57 lines
1.7 KiB
Makefile
Raw Permalink Normal View History

#
# 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.
#
MTK_PLATFORM := $(subst ",,$(CONFIG_MTK_PLATFORM))
subdir-ccflags-y += -Werror -I$(srctree)/drivers/misc/mediatek/include
subdir-ccflags-y += -Werror -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include
subdir-ccflags-y += -Werror -I$(srctree)/drivers/misc/mediatek/include/mt-plat
obj-$(CONFIG_MTK_SMART_BATTERY) += mt_battery_meter.o mt_battery_common.o mt_switch_charging.o mt_bm_data.o
ifeq ($(CONFIG_MTK_BQ24297_SUPPORT),y)
obj-$(CONFIG_MTK_SMART_BATTERY) += bq24297.o
endif
ifeq ($(CONFIG_MTK_BQ24296_SUPPORT),y)
obj-$(CONFIG_MTK_SMART_BATTERY) += bq24297.o
endif
ifeq ($(CONFIG_MTK_BQ24196_SUPPORT),y)
obj-$(CONFIG_MTK_SMART_BATTERY) += bq24196.o
endif
ifeq ($(CONFIG_MTK_BQ24261_SUPPORT),y)
obj-$(CONFIG_MTK_SMART_BATTERY) += bq24261.o
endif
ifeq ($(CONFIG_MTK_BQ25890_SUPPORT),y)
obj-$(CONFIG_MTK_SMART_BATTERY) += bq25890.o
endif
ifeq ($(CONFIG_MTK_BQ25896_SUPPORT),y)
obj-$(CONFIG_MTK_SMART_BATTERY) += bq25890.o
endif
ifeq ($(CONFIG_MTK_RT9466_SUPPORT),y)
obj-$(CONFIG_MTK_SMART_BATTERY) += rt9466.o mtk_charger_intf.o
endif
obj-$(CONFIG_MTK_PMIC) += mt6397_fgadc.o
ifeq ($(CONFIG_CHARGER_SMB1351), y)
obj-$(CONFIG_CHARGER_SMB1351) += smb1351_charger.o
KBUILD_CFLAGS += -DCONFIG_SMB1351=1
endif