blob: c71580f950ddfacfb12c9bda1bc7002e757aa6d7 [file] [log] [blame]
Soby Mathew0d786072016-03-24 16:56:29 +00001#
Harrison Mutaie5249fe2022-12-09 12:14:25 +00002# Copyright (c) 2016-2023, 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)
Harrison Mutaie5249fe2022-12-09 12:14:25 +000024PSCI_LIB_SOURCES += lib/el3_runtime/aarch64/context.S \
Chris Kay02198cb2023-03-28 17:38:02 +010025 lib/psci/aarch64/runtime_errata.S
Soby Mathew89d90dc2016-05-05 14:11:23 +010026endif
Soby Mathew0d786072016-03-24 16:56:29 +000027
28ifeq (${USE_COHERENT_MEM}, 1)
29PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_coherent.c
30else
31PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_normal.c
32endif
33
34ifeq (${ENABLE_PSCI_STAT}, 1)
35PSCI_LIB_SOURCES += lib/psci/psci_stat.c
36endif