blob: 29080dbb05cba5b33f4260af6189e1222af0d1e6 [file] [log] [blame]
Soby Mathew0d786072016-03-24 16:56:29 +00001#
Jeenu Viswambharand5ec3672017-01-03 11:01:51 +00002# Copyright (c) 2016-2017, 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 \
Soby Mathew89d90dc2016-05-05 14:11:23 +010020 lib/psci/${ARCH}/psci_helpers.S
21
22ifeq (${ARCH}, aarch64)
23PSCI_LIB_SOURCES += lib/el3_runtime/aarch64/context.S
24endif
Soby Mathew0d786072016-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