blob: 1d4aac4a345bbaa2bb732fe571f51609769196d6 [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 \
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)
24PSCI_LIB_SOURCES += lib/el3_runtime/aarch64/context.S
25endif
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