blob: c3a57dea1f3058b1393d370ddab766297ccc744f [file] [log] [blame]
Pankaj Gupta5aa0ffa2020-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 SIP SVC files
10#
11# -----------------------------------------------------------------------------
12
13ifeq (${ADD_SIPSVC},)
14
15ADD_SIPSVC := 1
16
17PLAT_SIPSVC_PATH := $(PLAT_COMMON_PATH)/sip_svc
18
19SIPSVC_SOURCES := ${PLAT_SIPSVC_PATH}/sip_svc.c \
20 ${PLAT_SIPSVC_PATH}/$(ARCH)/sipsvc.S
21
22PLAT_INCLUDES += -I${PLAT_SIPSVC_PATH}/include
23
24ifeq (${BL_COMM_SIPSVC_NEEDED},yes)
25BL_COMMON_SOURCES += ${SIPSVC_SOURCES}
26else
27ifeq (${BL2_SIPSVC_NEEDED},yes)
28BL2_SOURCES += ${SIPSVC_SOURCES}
29endif
30ifeq (${BL31_SIPSVC_NEEDED},yes)
31BL31_SOURCES += ${SIPSVC_SOURCES}
32endif
33endif
34endif
35# -----------------------------------------------------------------------------