blob: e1dbec2bb9fc12c7baf4045eb86dde7ba7ddf3b1 [file] [log] [blame]
Soby Mathew532ed612016-03-24 16:56:29 +00001#
Boyan Karatotevd43b2ea2025-03-18 10:31:22 +00002# Copyright (c) 2016-2025, Arm Limited and Contributors. All rights reserved.
Soby Mathew532ed612016-03-24 16:56:29 +00003#
dp-arm82cb2c12017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Soby Mathew532ed612016-03-24 16:56:29 +00005#
6
Soby Mathewcf0b1492016-04-29 19:01:30 +01007PSCI_LIB_SOURCES := lib/el3_runtime/cpu_data_array.c \
Soby Mathew727e5232016-05-05 14:11:23 +01008 lib/el3_runtime/${ARCH}/context_mgmt.c \
9 lib/cpus/${ARCH}/cpu_helpers.S \
Jeenu Viswambharan10bcd762017-01-03 11:01:51 +000010 lib/cpus/errata_report.c \
Soby Mathew727e5232016-05-05 14:11:23 +010011 lib/locks/exclusive/${ARCH}/spinlock.S \
Soby Mathewcf0b1492016-04-29 19:01:30 +010012 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 \
Roberto Vargasd4c596b2017-08-03 08:16:16 +010019 lib/psci/psci_mem_protect.c \
Soby Mathew727e5232016-05-05 14:11:23 +010020 lib/psci/${ARCH}/psci_helpers.S
21
22ifeq (${ARCH}, aarch64)
Boyan Karatotevdb9ee832024-09-26 17:09:53 +010023PSCI_LIB_SOURCES += lib/el3_runtime/aarch64/context.S
Soby Mathew727e5232016-05-05 14:11:23 +010024endif
Soby Mathew532ed612016-03-24 16:56:29 +000025
26ifeq (${USE_COHERENT_MEM}, 1)
27PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_coherent.c
28else
29PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_normal.c
30endif
31
32ifeq (${ENABLE_PSCI_STAT}, 1)
33PSCI_LIB_SOURCES += lib/psci/psci_stat.c
34endif