blob: 527ad3a14a2d0666f79c2489a270fb420f1ed51e [file] [log] [blame]
Soby Mathew0d786072016-03-24 16:56:29 +00001#
Boyan Karatotev24395f42024-09-26 17:09:53 +01002# Copyright (c) 2016-2024, Arm Limited and Contributors. All rights reserved.
Soby Mathew0d786072016-03-24 16:56:29 +00003#
dp-armfa3cf0b2017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Soby Mathew0d786072016-03-24 16:56:29 +00005#
6
Soby Mathewd0194872016-04-29 19:01:30 +01007PSCI_LIB_SOURCES := lib/el3_runtime/cpu_data_array.c \
Soby Mathew89d90dc2016-05-05 14:11:23 +01008 lib/el3_runtime/${ARCH}/cpu_data.S \
9 lib/el3_runtime/${ARCH}/context_mgmt.c \
10 lib/cpus/${ARCH}/cpu_helpers.S \
Jeenu Viswambharand5ec3672017-01-03 11:01:51 +000011 lib/cpus/errata_report.c \
Soby Mathew89d90dc2016-05-05 14:11:23 +010012 lib/locks/exclusive/${ARCH}/spinlock.S \
Soby Mathewd0194872016-04-29 19:01:30 +010013 lib/psci/psci_off.c \
14 lib/psci/psci_on.c \
15 lib/psci/psci_suspend.c \
16 lib/psci/psci_common.c \
17 lib/psci/psci_main.c \
18 lib/psci/psci_setup.c \
19 lib/psci/psci_system_off.c \
Roberto Vargas0a4c2612017-08-03 08:16:16 +010020 lib/psci/psci_mem_protect.c \
Soby Mathew89d90dc2016-05-05 14:11:23 +010021 lib/psci/${ARCH}/psci_helpers.S
22
23ifeq (${ARCH}, aarch64)
Boyan Karatotev24395f42024-09-26 17:09:53 +010024PSCI_LIB_SOURCES += lib/el3_runtime/aarch64/context.S
Soby Mathew89d90dc2016-05-05 14:11:23 +010025endif
Soby Mathew0d786072016-03-24 16:56:29 +000026
27ifeq (${USE_COHERENT_MEM}, 1)
28PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_coherent.c
29else
30PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_normal.c
31endif
32
33ifeq (${ENABLE_PSCI_STAT}, 1)
34PSCI_LIB_SOURCES += lib/psci/psci_stat.c
35endif