xref: /rk3399_ARM-atf/plat/mediatek/drivers/rtc/rules.mk (revision 04f28f895f1dc8683838a1382c8f92881f4cf21d)
1*af5d8e07SSong Fan#
2*af5d8e07SSong Fan# Copyright (c) 2022, MediaTek Inc. All rights reserved.
3*af5d8e07SSong Fan#
4*af5d8e07SSong Fan# SPDX-License-Identifier: BSD-3-Clause
5*af5d8e07SSong Fan#
6*af5d8e07SSong Fan
7*af5d8e07SSong FanLOCAL_DIR := $(call GET_LOCAL_DIR)
8*af5d8e07SSong Fan
9*af5d8e07SSong FanMODULE := rtc
10*af5d8e07SSong Fan
11*af5d8e07SSong FanLOCAL_SRCS-y := ${LOCAL_DIR}/rtc_common.c
12*af5d8e07SSong Fan
13*af5d8e07SSong Fanifeq (${USE_RTC_MT6359P}, 1)
14*af5d8e07SSong FanLOCAL_SRCS-y += ${LOCAL_DIR}/rtc_mt6359p.c
15*af5d8e07SSong FanPLAT_INCLUDES += -I${LOCAL_DIR}
16*af5d8e07SSong Fanendif
17*af5d8e07SSong Fan
18*af5d8e07SSong FanPLAT_INCLUDES += -I${LOCAL_DIR}/${MTK_SOC}
19*af5d8e07SSong Fan
20*af5d8e07SSong Fan$(eval $(call MAKE_MODULE,$(MODULE),$(LOCAL_SRCS-y),$(MTK_BL)))
21