psci_lib.mk 954 Bytes
Newer Older
1
#
2
# Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved.
3
#
dp-arm's avatar
dp-arm committed
4
# SPDX-License-Identifier: BSD-3-Clause
5
6
#

Soby Mathew's avatar
Soby Mathew committed
7
PSCI_LIB_SOURCES	:=	lib/el3_runtime/cpu_data_array.c	\
Soby Mathew's avatar
Soby Mathew committed
8
9
10
				lib/el3_runtime/${ARCH}/cpu_data.S	\
				lib/el3_runtime/${ARCH}/context_mgmt.c	\
				lib/cpus/${ARCH}/cpu_helpers.S		\
11
				lib/cpus/errata_report.c		\
Soby Mathew's avatar
Soby Mathew committed
12
				lib/locks/exclusive/${ARCH}/spinlock.S	\
Soby Mathew's avatar
Soby Mathew committed
13
14
15
16
17
18
19
				lib/psci/psci_off.c			\
				lib/psci/psci_on.c			\
				lib/psci/psci_suspend.c			\
				lib/psci/psci_common.c			\
				lib/psci/psci_main.c			\
				lib/psci/psci_setup.c			\
				lib/psci/psci_system_off.c		\
Soby Mathew's avatar
Soby Mathew committed
20
21
22
23
24
				lib/psci/${ARCH}/psci_helpers.S

ifeq (${ARCH}, aarch64)
PSCI_LIB_SOURCES	+=	lib/el3_runtime/aarch64/context.S
endif
25
26
27
28
29
30
31
32
33
34

ifeq (${USE_COHERENT_MEM}, 1)
PSCI_LIB_SOURCES		+=	lib/locks/bakery/bakery_lock_coherent.c
else
PSCI_LIB_SOURCES		+=	lib/locks/bakery/bakery_lock_normal.c
endif

ifeq (${ENABLE_PSCI_STAT}, 1)
PSCI_LIB_SOURCES		+=	lib/psci/psci_stat.c
endif