Debian Codegraph @

lib/psci/psci_lib.mk

raw
1 #
2 # Copyright (c) 2016-2024, Arm Limited and Contributors. All rights reserved.
3 #
4 # SPDX-License-Identifier: BSD-3-Clause
5 #
6
7 PSCI_LIB_SOURCES := lib/el3_runtime/cpu_data_array.c \
8 lib/el3_runtime/${ARCH}/cpu_data.S \
9 lib/el3_runtime/${ARCH}/context_mgmt.c \
10 lib/cpus/${ARCH}/cpu_helpers.S \
11 lib/cpus/errata_report.c \
12 lib/locks/exclusive/${ARCH}/spinlock.S \
13 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 \
20 lib/psci/psci_mem_protect.c \
21 lib/psci/${ARCH}/psci_helpers.S
22
23 ifeq (${ARCH}, aarch64)
24 PSCI_LIB_SOURCES += lib/el3_runtime/aarch64/context.S
25 endif
26
27 ifeq (${USE_COHERENT_MEM}, 1)
28 PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_coherent.c
29 else
30 PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_normal.c
31 endif
32
33 ifeq (${ENABLE_PSCI_STAT}, 1)
34 PSCI_LIB_SOURCES += lib/psci/psci_stat.c
35 endif