blob: 6607dc0262b5ef3320c4727b95e9bc2691d52748 [file] [log] [blame]
Achin Gupta4f6ad662013-10-25 09:08:21 +01001#
dp-arm75311202017-03-07 11:02:47 +00002# Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
Achin Gupta4f6ad662013-10-25 09:08:21 +01003#
dp-arm82cb2c12017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Achin Gupta4f6ad662013-10-25 09:08:21 +01005#
6
Antonio Nino Diaz2fccb222017-10-24 10:07:35 +01007################################################################################
8# Include SPM Makefile
9################################################################################
10ifeq (${ENABLE_SPM},1)
11$(info Including SPM makefile)
12include services/std_svc/spm/spm.mk
13endif
14
15
Soby Mathew532ed612016-03-24 16:56:29 +000016include lib/psci/psci_lib.mk
17
Dan Handleybee82412014-04-15 18:20:09 +010018BL31_SOURCES += bl31/bl31_main.c \
Achin Guptae1333f72014-05-09 10:03:15 +010019 bl31/interrupt_mgmt.c \
Dan Handleybee82412014-04-15 18:20:09 +010020 bl31/aarch64/bl31_entrypoint.S \
Dan Handleybee82412014-04-15 18:20:09 +010021 bl31/aarch64/runtime_exceptions.S \
Andrew Thoelkeee94cc62014-06-02 12:38:12 +010022 bl31/aarch64/crash_reporting.S \
Yatharth Kocharbbf8f6f2015-10-02 17:56:48 +010023 bl31/bl31_context_mgmt.c \
Soby Mathew532ed612016-03-24 16:56:29 +000024 common/runtime_svc.c \
dp-arm75311202017-03-07 11:02:47 +000025 plat/common/aarch64/platform_mp_stack.S \
Dan Handleybee82412014-04-15 18:20:09 +010026 services/std_svc/std_svc_setup.c \
Antonio Nino Diaz2fccb222017-10-24 10:07:35 +010027 ${PSCI_LIB_SOURCES} \
28 ${SPM_SOURCES} \
29
Soby Mathew8c5fe0b2015-01-08 18:02:19 +000030
Yatharth Kochara31d8982016-03-11 14:20:19 +000031ifeq (${ENABLE_PMF}, 1)
32BL31_SOURCES += lib/pmf/pmf_main.c
33endif
34
Dan Handleybee82412014-04-15 18:20:09 +010035BL31_LINKERFILE := bl31/bl31.ld.S
Achin Guptadce74b82014-05-09 11:07:09 +010036
Sandrine Bailleux1645d3e2015-12-17 13:58:58 +000037# Flag used to indicate if Crash reporting via console should be included
Juan Castillod1786372015-12-14 09:35:25 +000038# in BL31. This defaults to being present in DEBUG builds only
Andrew Thoelke9c22b322014-06-03 11:50:53 +010039ifndef CRASH_REPORTING
40CRASH_REPORTING := $(DEBUG)
41endif
42
43$(eval $(call assert_boolean,CRASH_REPORTING))
44$(eval $(call add_define,CRASH_REPORTING))