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 7*2fccb228SAntonio Nino Diaz################################################################################ 8*2fccb228SAntonio Nino Diaz# Include SPM Makefile 9*2fccb228SAntonio Nino Diaz################################################################################ 10*2fccb228SAntonio Nino Diazifeq (${ENABLE_SPM},1) 11*2fccb228SAntonio Nino Diaz$(info Including SPM makefile) 12*2fccb228SAntonio Nino Diazinclude services/std_svc/spm/spm.mk 13*2fccb228SAntonio Nino Diazendif 14*2fccb228SAntonio Nino Diaz 15*2fccb228SAntonio 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 \ 27*2fccb228SAntonio Nino Diaz ${PSCI_LIB_SOURCES} \ 28*2fccb228SAntonio Nino Diaz ${SPM_SOURCES} \ 29*2fccb228SAntonio Nino Diaz 308c5fe0b5SSoby Mathew 31a31d8983SYatharth Kocharifeq (${ENABLE_PMF}, 1) 32a31d8983SYatharth KocharBL31_SOURCES += lib/pmf/pmf_main.c 33a31d8983SYatharth Kocharendif 34a31d8983SYatharth Kochar 35bee82417SDan HandleyBL31_LINKERFILE := bl31/bl31.ld.S 36dce74b89SAchin Gupta 371645d3eeSSandrine Bailleux# Flag used to indicate if Crash reporting via console should be included 38d178637dSJuan Castillo# in BL31. This defaults to being present in DEBUG builds only 399c22b323SAndrew Thoelkeifndef CRASH_REPORTING 409c22b323SAndrew ThoelkeCRASH_REPORTING := $(DEBUG) 419c22b323SAndrew Thoelkeendif 429c22b323SAndrew Thoelke 439c22b323SAndrew Thoelke$(eval $(call assert_boolean,CRASH_REPORTING)) 449c22b323SAndrew Thoelke$(eval $(call add_define,CRASH_REPORTING)) 45