Debian Codegraph @

plat/nxp/common/psci/psci.mk

raw
1 #
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
13 ifeq (${ADD_PSCI},)
14
15 ADD_PSCI := 1
16 PLAT_PSCI_PATH := $(PLAT_COMMON_PATH)/psci
17
18 PSCI_SOURCES := ${PLAT_PSCI_PATH}/plat_psci.c \
19 ${PLAT_PSCI_PATH}/$(ARCH)/psci_utils.S \
20 plat/common/plat_psci_common.c
21
22 PLAT_INCLUDES += -I${PLAT_PSCI_PATH}/include
23
24 ifeq (${BL_COMM_PSCI_NEEDED},yes)
25 BL_COMMON_SOURCES += ${PSCI_SOURCES}
26 else
27 ifeq (${BL2_PSCI_NEEDED},yes)
28 BL2_SOURCES += ${PSCI_SOURCES}
29 endif
30 ifeq (${BL31_PSCI_NEEDED},yes)
31 BL31_SOURCES += ${PSCI_SOURCES}
32 endif
33 endif
34 endif
35 # -----------------------------------------------------------------------------