blob: f6e58e97313376132dc480f72ae6704a340d967f [file] [log] [blame]
Soby Mathewec8ac1c2016-05-05 14:32:05 +01001#
2# Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
3#
dp-armfa3cf0b2017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Soby Mathewec8ac1c2016-05-05 14:32:05 +01005#
6
7ifneq (${ARCH}, aarch32)
8 $(error SP_MIN is only supported on AArch32 platforms)
9endif
10
11include lib/psci/psci_lib.mk
12
13INCLUDES += -Iinclude/bl32/sp_min
14
15BL32_SOURCES += bl32/sp_min/sp_min_main.c \
16 bl32/sp_min/aarch32/entrypoint.S \
17 common/runtime_svc.c \
18 services/std_svc/std_svc_setup.c \
19 ${PSCI_LIB_SOURCES}
20
21ifeq (${ENABLE_PMF}, 1)
22BL32_SOURCES += lib/pmf/pmf_main.c
23endif
24
25BL32_LINKERFILE := bl32/sp_min/sp_min.ld.S
26
27# Include the platform-specific SP_MIN Makefile
28# If no platform-specific SP_MIN Makefile exists, it means SP_MIN is not supported
29# on this platform.
30SP_MIN_PLAT_MAKEFILE := $(wildcard ${PLAT_DIR}/sp_min/sp_min-${PLAT}.mk)
31ifeq (,${SP_MIN_PLAT_MAKEFILE})
32 $(error SP_MIN is not supported on platform ${PLAT})
33else
34 include ${SP_MIN_PLAT_MAKEFILE}
35endif
36
Yatharth Kochar1c16a4c2016-06-30 14:50:58 +010037RESET_TO_SP_MIN := 0
Soby Mathewec8ac1c2016-05-05 14:32:05 +010038$(eval $(call add_define,RESET_TO_SP_MIN))
39$(eval $(call assert_boolean,RESET_TO_SP_MIN))