xref: /rk3399_ARM-atf/bl31/bl31.mk (revision 21b818c05fa4ec8cec468aad690267c5be930ccd)
14f6ad66aSAchin Gupta#
275311203Sdp-arm# Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
34f6ad66aSAchin Gupta#
482cb2c1aSdp-arm# SPDX-License-Identifier: BSD-3-Clause
54f6ad66aSAchin Gupta#
64f6ad66aSAchin Gupta
72fccb228SAntonio Nino Diaz################################################################################
82fccb228SAntonio Nino Diaz# Include SPM Makefile
92fccb228SAntonio Nino Diaz################################################################################
102fccb228SAntonio Nino Diazifeq (${ENABLE_SPM},1)
112fccb228SAntonio Nino Diaz$(info Including SPM makefile)
122fccb228SAntonio Nino Diazinclude services/std_svc/spm/spm.mk
132fccb228SAntonio Nino Diazendif
142fccb228SAntonio Nino Diaz
152fccb228SAntonio Nino Diaz
16532ed618SSoby Mathewinclude lib/psci/psci_lib.mk
17532ed618SSoby Mathew
18bee82417SDan HandleyBL31_SOURCES		+=	bl31/bl31_main.c				\
19e1333f75SAchin Gupta				bl31/interrupt_mgmt.c				\
20bee82417SDan Handley				bl31/aarch64/bl31_entrypoint.S			\
21bee82417SDan Handley				bl31/aarch64/runtime_exceptions.S		\
22a43d431bSSoby Mathew				bl31/aarch64/crash_reporting.S			\
23bbf8f6f9SYatharth Kochar				bl31/bl31_context_mgmt.c			\
24532ed618SSoby Mathew				common/runtime_svc.c				\
2575311203Sdp-arm				plat/common/aarch64/platform_mp_stack.S		\
26bee82417SDan Handley				services/std_svc/std_svc_setup.c		\
272fccb228SAntonio Nino Diaz				${PSCI_LIB_SOURCES}				\
282fccb228SAntonio Nino Diaz				${SPM_SOURCES}					\
292fccb228SAntonio Nino Diaz
308c5fe0b5SSoby Mathew
31a31d8983SYatharth Kocharifeq (${ENABLE_PMF}, 1)
32a31d8983SYatharth KocharBL31_SOURCES		+=	lib/pmf/pmf_main.c
33a31d8983SYatharth Kocharendif
34a31d8983SYatharth Kochar
35*21b818c0SJeenu Viswambharanifeq (${EL3_EXCEPTION_HANDLING},1)
36*21b818c0SJeenu ViswambharanBL31_SOURCES		+=	bl31/ehf.c
37*21b818c0SJeenu Viswambharanendif
38*21b818c0SJeenu Viswambharan
39bee82417SDan HandleyBL31_LINKERFILE		:=	bl31/bl31.ld.S
40dce74b89SAchin Gupta
411645d3eeSSandrine Bailleux# Flag used to indicate if Crash reporting via console should be included
42d178637dSJuan Castillo# in BL31. This defaults to being present in DEBUG builds only
439c22b323SAndrew Thoelkeifndef CRASH_REPORTING
449c22b323SAndrew ThoelkeCRASH_REPORTING		:=	$(DEBUG)
459c22b323SAndrew Thoelkeendif
469c22b323SAndrew Thoelke
479c22b323SAndrew Thoelke$(eval $(call assert_boolean,CRASH_REPORTING))
48*21b818c0SJeenu Viswambharan$(eval $(call assert_boolean,EL3_EXCEPTION_HANDLING))
49*21b818c0SJeenu Viswambharan
509c22b323SAndrew Thoelke$(eval $(call add_define,CRASH_REPORTING))
51*21b818c0SJeenu Viswambharan$(eval $(call add_define,EL3_EXCEPTION_HANDLING))
52