kernel_samsung_a34x-permissive/drivers/misc/mediatek/rtc/Makefile
2024-04-28 15:49:01 +02:00

51 lines
1.2 KiB
Makefile
Executable file

#
# 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.
#
#set IP folder name
ifeq ($(CONFIG_RTC_DRV_MT6358), y)
obj-$(CONFIG_MTK_RTC) += mtk_rtc_debug_v1.o
else
#legacy
ifneq (,$(filter y,$(CONFIG_MTK_PMIC_CHIP_MT6357)))
MDI_IP_FOLDER:=mt6357
endif
ifneq (,$(filter y,$(CONFIG_MTK_PMIC_CHIP_MT6358)))
MDI_IP_FOLDER:=mt6358
endif
ifneq (,$(filter y,$(CONFIG_MTK_PMIC_CHIP_MT6359)))
MDI_IP_FOLDER:=mt6359
endif
ifneq (,$(filter y,$(CONFIG_MTK_PMIC_CHIP_MT6390)))
MDI_IP_FOLDER:=mt6357
endif
MDP_COMMON_FOLDER:= ./
ccflags-y += -I$(srctree)/drivers/misc/mediatek/rtc/$(MDI_IP_FOLDER)
ccflags-y += -I$(srctree)/drivers/misc/mediatek/rtc/include
#Top level common code
obj-$(CONFIG_MTK_RTC) += mtk_rtc_common.o mtk_rtc_hal_common.o mtk_rtc_debug.o
MTK_MDI_IP_SRC:= $(MDI_IP_FOLDER)/
#IP dependent part
obj-y += \
$(MTK_MDI_IP_SRC)
endif