psci.mk 831 B

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # Copyright 2018-2020 NXP
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. #
  7. #------------------------------------------------------------------------------
  8. #
  9. # Select the PSCI files
  10. #
  11. # -----------------------------------------------------------------------------
  12. ifeq (${ADD_PSCI},)
  13. ADD_PSCI := 1
  14. PLAT_PSCI_PATH := $(PLAT_COMMON_PATH)/psci
  15. PSCI_SOURCES := ${PLAT_PSCI_PATH}/plat_psci.c \
  16. ${PLAT_PSCI_PATH}/$(ARCH)/psci_utils.S \
  17. plat/common/plat_psci_common.c
  18. PLAT_INCLUDES += -I${PLAT_PSCI_PATH}/include
  19. ifeq (${BL_COMM_PSCI_NEEDED},yes)
  20. BL_COMMON_SOURCES += ${PSCI_SOURCES}
  21. else
  22. ifeq (${BL2_PSCI_NEEDED},yes)
  23. BL2_SOURCES += ${PSCI_SOURCES}
  24. endif
  25. ifeq (${BL31_PSCI_NEEDED},yes)
  26. BL31_SOURCES += ${PSCI_SOURCES}
  27. endif
  28. endif
  29. endif
  30. # -----------------------------------------------------------------------------