xref: /rk3399_ARM-atf/bl31/bl31.mk (revision 82cb2c1ad9897473743f08437d0a3995bed561b9)
14f6ad66aSAchin Gupta#
275311203Sdp-arm# Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
34f6ad66aSAchin Gupta#
4*82cb2c1aSdp-arm# SPDX-License-Identifier: BSD-3-Clause
54f6ad66aSAchin Gupta#
64f6ad66aSAchin Gupta
7532ed618SSoby Mathewinclude lib/psci/psci_lib.mk
8532ed618SSoby Mathew
9bee82417SDan HandleyBL31_SOURCES		+=	bl31/bl31_main.c				\
10e1333f75SAchin Gupta				bl31/interrupt_mgmt.c				\
11bee82417SDan Handley				bl31/aarch64/bl31_entrypoint.S			\
12bee82417SDan Handley				bl31/aarch64/runtime_exceptions.S		\
13a43d431bSSoby Mathew				bl31/aarch64/crash_reporting.S			\
14bbf8f6f9SYatharth Kochar				bl31/bl31_context_mgmt.c			\
15532ed618SSoby Mathew				common/runtime_svc.c				\
1675311203Sdp-arm				plat/common/aarch64/platform_mp_stack.S		\
17bee82417SDan Handley				services/std_svc/std_svc_setup.c		\
18532ed618SSoby Mathew				${PSCI_LIB_SOURCES}
198c5fe0b5SSoby Mathew
20a31d8983SYatharth Kocharifeq (${ENABLE_PMF}, 1)
21a31d8983SYatharth KocharBL31_SOURCES		+=	lib/pmf/pmf_main.c
22a31d8983SYatharth Kocharendif
23a31d8983SYatharth Kochar
24bee82417SDan HandleyBL31_LINKERFILE		:=	bl31/bl31.ld.S
25dce74b89SAchin Gupta
261645d3eeSSandrine Bailleux# Flag used to indicate if Crash reporting via console should be included
27d178637dSJuan Castillo# in BL31. This defaults to being present in DEBUG builds only
289c22b323SAndrew Thoelkeifndef CRASH_REPORTING
299c22b323SAndrew ThoelkeCRASH_REPORTING		:=	$(DEBUG)
309c22b323SAndrew Thoelkeendif
319c22b323SAndrew Thoelke
329c22b323SAndrew Thoelke$(eval $(call assert_boolean,CRASH_REPORTING))
339c22b323SAndrew Thoelke$(eval $(call add_define,CRASH_REPORTING))
34