blob: a2791c290d88e2413b2e164475a42d11a2afa9cb [file] [log] [blame]
Pankaj Guptaa9e3ac22020-12-09 14:02:40 +05301#
2# Copyright 2018-2020 NXP
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#
7#------------------------------------------------------------------------------
8#
9# Select the PSCI files
10#
11# -----------------------------------------------------------------------------
12
13ifeq (${ADD_PSCI},)
14
15ADD_PSCI := 1
16PLAT_PSCI_PATH := $(PLAT_COMMON_PATH)/psci
17
18PSCI_SOURCES := ${PLAT_PSCI_PATH}/plat_psci.c \
19 ${PLAT_PSCI_PATH}/$(ARCH)/psci_utils.S \
20 plat/common/plat_psci_common.c
21
22PLAT_INCLUDES += -I${PLAT_PSCI_PATH}/include
23
24ifeq (${BL_COMM_PSCI_NEEDED},yes)
25BL_COMMON_SOURCES += ${PSCI_SOURCES}
26else
27ifeq (${BL2_PSCI_NEEDED},yes)
28BL2_SOURCES += ${PSCI_SOURCES}
29endif
30ifeq (${BL31_PSCI_NEEDED},yes)
31BL31_SOURCES += ${PSCI_SOURCES}
32endif
33endif
34endif
35# -----------------------------------------------------------------------------