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