psci_lib.mk 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # Copyright (c) 2016-2023, Arm Limited and Contributors. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. PSCI_LIB_SOURCES := lib/el3_runtime/cpu_data_array.c \
  7. lib/el3_runtime/${ARCH}/cpu_data.S \
  8. lib/el3_runtime/${ARCH}/context_mgmt.c \
  9. lib/cpus/${ARCH}/cpu_helpers.S \
  10. lib/cpus/errata_report.c \
  11. lib/locks/exclusive/${ARCH}/spinlock.S \
  12. lib/psci/psci_off.c \
  13. lib/psci/psci_on.c \
  14. lib/psci/psci_suspend.c \
  15. lib/psci/psci_common.c \
  16. lib/psci/psci_main.c \
  17. lib/psci/psci_setup.c \
  18. lib/psci/psci_system_off.c \
  19. lib/psci/psci_mem_protect.c \
  20. lib/psci/${ARCH}/psci_helpers.S
  21. ifeq (${ARCH}, aarch64)
  22. PSCI_LIB_SOURCES += lib/el3_runtime/aarch64/context.S \
  23. lib/cpus/aarch64/runtime_errata.S
  24. endif
  25. ifeq (${USE_COHERENT_MEM}, 1)
  26. PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_coherent.c
  27. else
  28. PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_normal.c
  29. endif
  30. ifeq (${ENABLE_PSCI_STAT}, 1)
  31. PSCI_LIB_SOURCES += lib/psci/psci_stat.c
  32. endif