2017-10-24 10:07:35 +01:00
|
|
|
#
|
2019-01-30 16:01:49 +00:00
|
|
|
# Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
|
2017-10-24 10:07:35 +01:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
#
|
|
|
|
|
|
|
|
ifneq (${SPD},none)
|
|
|
|
$(error "Error: SPD and SPM are incompatible build options.")
|
|
|
|
endif
|
|
|
|
ifneq (${ARCH},aarch64)
|
|
|
|
$(error "Error: SPM is only supported on aarch64.")
|
|
|
|
endif
|
|
|
|
|
2018-11-08 09:21:48 +00:00
|
|
|
include lib/sprt/sprt_host.mk
|
|
|
|
|
2017-10-24 10:07:35 +01:00
|
|
|
SPM_SOURCES := $(addprefix services/std_svc/spm/, \
|
|
|
|
${ARCH}/spm_helpers.S \
|
2018-05-23 11:40:46 +01:00
|
|
|
${ARCH}/spm_shim_exceptions.S \
|
2018-11-08 14:12:40 +00:00
|
|
|
spci.c \
|
2018-10-18 14:54:57 +01:00
|
|
|
spm_buffers.c \
|
2018-11-08 14:12:40 +00:00
|
|
|
spm_main.c \
|
2018-11-15 08:57:18 +00:00
|
|
|
spm_setup.c \
|
|
|
|
spm_xlat.c \
|
2018-11-08 09:21:48 +00:00
|
|
|
sprt.c) \
|
|
|
|
${SPRT_LIB_SOURCES}
|
2018-11-08 14:12:40 +00:00
|
|
|
|
2018-11-08 09:21:48 +00:00
|
|
|
INCLUDES += ${SPRT_LIB_INCLUDES}
|
2017-10-24 10:07:35 +01:00
|
|
|
|
|
|
|
# Let the top-level Makefile know that we intend to include a BL32 image
|
|
|
|
NEED_BL32 := yes
|