blob: 0c9e39396bc913de153f0469f2bf80817e4aa9b6 [file] [log] [blame]
Achin Gupta4f6ad662013-10-25 09:08:21 +01001#
dp-arm230011c2017-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-armfa3cf0b2017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Achin Gupta4f6ad662013-10-25 09:08:21 +01005#
6
Soby Mathew0d786072016-03-24 16:56:29 +00007include lib/psci/psci_lib.mk
8
Dan Handley176e7b42014-04-15 18:20:09 +01009BL31_SOURCES += bl31/bl31_main.c \
Achin Gupta191e86e2014-05-09 10:03:15 +010010 bl31/interrupt_mgmt.c \
Dan Handley176e7b42014-04-15 18:20:09 +010011 bl31/aarch64/bl31_entrypoint.S \
Dan Handley176e7b42014-04-15 18:20:09 +010012 bl31/aarch64/runtime_exceptions.S \
Andrew Thoelke4d2d5532014-06-02 12:38:12 +010013 bl31/aarch64/crash_reporting.S \
Yatharth Kochar6c0566c2015-10-02 17:56:48 +010014 bl31/bl31_context_mgmt.c \
Soby Mathew0d786072016-03-24 16:56:29 +000015 common/runtime_svc.c \
dp-arm230011c2017-03-07 11:02:47 +000016 plat/common/aarch64/platform_mp_stack.S \
Dan Handley176e7b42014-04-15 18:20:09 +010017 services/std_svc/std_svc_setup.c \
Soby Mathew0d786072016-03-24 16:56:29 +000018 ${PSCI_LIB_SOURCES}
Soby Mathew523d6332015-01-08 18:02:19 +000019
Yatharth Kochar9518d022016-03-11 14:20:19 +000020ifeq (${ENABLE_PMF}, 1)
21BL31_SOURCES += lib/pmf/pmf_main.c
22endif
23
Dan Handley176e7b42014-04-15 18:20:09 +010024BL31_LINKERFILE := bl31/bl31.ld.S
Achin Gupta9cf2bb72014-05-09 11:07:09 +010025
Sandrine Bailleuxf4119ec2015-12-17 13:58:58 +000026# Flag used to indicate if Crash reporting via console should be included
Juan Castillo7d199412015-12-14 09:35:25 +000027# in BL31. This defaults to being present in DEBUG builds only
Andrew Thoelke385f4d42014-06-03 11:50:53 +010028ifndef CRASH_REPORTING
29CRASH_REPORTING := $(DEBUG)
30endif
31
32$(eval $(call assert_boolean,CRASH_REPORTING))
33$(eval $(call add_define,CRASH_REPORTING))