xref: /rk3399_ARM-atf/plat/mediatek/common/rules.mk (revision 02309a84fbfb8b3469aa7dba52ea15c9bf2a768d)
1394b9208SLeon Chen#
2394b9208SLeon Chen# Copyright (c) 2022, MediaTek Inc. All rights reserved.
3394b9208SLeon Chen#
4394b9208SLeon Chen# SPDX-License-Identifier: BSD-3-Clause
5394b9208SLeon Chen#
6394b9208SLeon Chen
7394b9208SLeon ChenLOCAL_DIR := $(call GET_LOCAL_DIR)
8394b9208SLeon Chen
9394b9208SLeon ChenMODULE := mtk_common
10394b9208SLeon Chen
11*97881aacSYidi LinLOCAL_SRCS-y := ${LOCAL_DIR}/mtk_bl31_lib.c
12*97881aacSYidi LinLOCAL_SRCS-y += ${LOCAL_DIR}/mtk_bl31_setup.c
13394b9208SLeon ChenLOCAL_SRCS-y += ${LOCAL_DIR}/mtk_smc_handlers.c
14394b9208SLeon ChenLOCAL_SRCS-$(MTK_SIP_KERNEL_BOOT_ENABLE) += ${LOCAL_DIR}/cold_boot.c
15394b9208SLeon Chen
16394b9208SLeon Chen$(eval $(call MAKE_LOCALS,$(LOCAL_SRCS-y),$(MTK_BL)))
17