xref: /rk3399_ARM-atf/bl31/bl31.mk (revision 75311203d8a4f8d543dae3399cfb1f33cfbef059)
14f6ad66aSAchin Gupta#
2*75311203Sdp-arm# Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
34f6ad66aSAchin Gupta#
44f6ad66aSAchin Gupta# Redistribution and use in source and binary forms, with or without
54f6ad66aSAchin Gupta# modification, are permitted provided that the following conditions are met:
64f6ad66aSAchin Gupta#
74f6ad66aSAchin Gupta# Redistributions of source code must retain the above copyright notice, this
84f6ad66aSAchin Gupta# list of conditions and the following disclaimer.
94f6ad66aSAchin Gupta#
104f6ad66aSAchin Gupta# Redistributions in binary form must reproduce the above copyright notice,
114f6ad66aSAchin Gupta# this list of conditions and the following disclaimer in the documentation
124f6ad66aSAchin Gupta# and/or other materials provided with the distribution.
134f6ad66aSAchin Gupta#
144f6ad66aSAchin Gupta# Neither the name of ARM nor the names of its contributors may be used
154f6ad66aSAchin Gupta# to endorse or promote products derived from this software without specific
164f6ad66aSAchin Gupta# prior written permission.
174f6ad66aSAchin Gupta#
184f6ad66aSAchin Gupta# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
194f6ad66aSAchin Gupta# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
204f6ad66aSAchin Gupta# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
214f6ad66aSAchin Gupta# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
224f6ad66aSAchin Gupta# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
234f6ad66aSAchin Gupta# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
244f6ad66aSAchin Gupta# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
254f6ad66aSAchin Gupta# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
264f6ad66aSAchin Gupta# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
274f6ad66aSAchin Gupta# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
284f6ad66aSAchin Gupta# POSSIBILITY OF SUCH DAMAGE.
294f6ad66aSAchin Gupta#
304f6ad66aSAchin Gupta
31532ed618SSoby Mathewinclude lib/psci/psci_lib.mk
32532ed618SSoby Mathew
33bee82417SDan HandleyBL31_SOURCES		+=	bl31/bl31_main.c				\
34e1333f75SAchin Gupta				bl31/interrupt_mgmt.c				\
35bee82417SDan Handley				bl31/aarch64/bl31_entrypoint.S			\
36bee82417SDan Handley				bl31/aarch64/runtime_exceptions.S		\
37a43d431bSSoby Mathew				bl31/aarch64/crash_reporting.S			\
38bbf8f6f9SYatharth Kochar				bl31/bl31_context_mgmt.c			\
39532ed618SSoby Mathew				common/runtime_svc.c				\
40*75311203Sdp-arm				plat/common/aarch64/platform_mp_stack.S		\
41bee82417SDan Handley				services/std_svc/std_svc_setup.c		\
42532ed618SSoby Mathew				${PSCI_LIB_SOURCES}
438c5fe0b5SSoby Mathew
44a31d8983SYatharth Kocharifeq (${ENABLE_PMF}, 1)
45a31d8983SYatharth KocharBL31_SOURCES		+=	lib/pmf/pmf_main.c
46a31d8983SYatharth Kocharendif
47a31d8983SYatharth Kochar
48bee82417SDan HandleyBL31_LINKERFILE		:=	bl31/bl31.ld.S
49dce74b89SAchin Gupta
501645d3eeSSandrine Bailleux# Flag used to indicate if Crash reporting via console should be included
51d178637dSJuan Castillo# in BL31. This defaults to being present in DEBUG builds only
529c22b323SAndrew Thoelkeifndef CRASH_REPORTING
539c22b323SAndrew ThoelkeCRASH_REPORTING		:=	$(DEBUG)
549c22b323SAndrew Thoelkeendif
559c22b323SAndrew Thoelke
569c22b323SAndrew Thoelke$(eval $(call assert_boolean,CRASH_REPORTING))
579c22b323SAndrew Thoelke$(eval $(call add_define,CRASH_REPORTING))
58