blob: 2398f8a9e5ba296286eaf93c434cd5795ad3c9fe [file] [log] [blame]
Song Fana4efd722022-07-25 19:50:52 +08001#
2# Copyright (c) 2022, MediaTek Inc. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7LOCAL_DIR := $(call GET_LOCAL_DIR)
8
9MODULE := rtc
10
11LOCAL_SRCS-y := ${LOCAL_DIR}/rtc_common.c
12
13ifeq (${USE_RTC_MT6359P}, 1)
14LOCAL_SRCS-y += ${LOCAL_DIR}/rtc_mt6359p.c
15PLAT_INCLUDES += -I${LOCAL_DIR}
16endif
17
18PLAT_INCLUDES += -I${LOCAL_DIR}/${MTK_SOC}
19
20$(eval $(call MAKE_MODULE,$(MODULE),$(LOCAL_SRCS-y),$(MTK_BL)))