spm.mk 632 B

1234567891011121314151617181920212223
  1. #
  2. # Copyright (c) 2022-2023, ARM Limited and Contributors. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. ifneq (${ARCH},aarch64)
  7. $(error "Error: SPM is only supported on aarch64.")
  8. endif
  9. INCLUDES += -Iservices/std_svc/spm/common/include
  10. SPM_SOURCES := $(addprefix services/std_svc/spm/common/, \
  11. ${ARCH}/spm_helpers.S \
  12. ${ARCH}/spm_shim_exceptions.S)
  13. ifeq (1, $(filter 1, ${SPM_MM} ${SPMC_AT_EL3_SEL0_SP}))
  14. SPM_SOURCES += $(addprefix services/std_svc/spm/common/, \
  15. spm_xlat_common.c)
  16. endif
  17. # Let the top-level Makefile know that we intend to include a BL32 image
  18. NEED_BL32 := yes