Pankaj Gupta | 5aa0ffa | 2020-12-09 14:02:40 +0530 | [diff] [blame] | 1 | # |
| 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 | |
| 13 | ifeq (${ADD_SIPSVC},) |
| 14 | |
| 15 | ADD_SIPSVC := 1 |
| 16 | |
| 17 | PLAT_SIPSVC_PATH := $(PLAT_COMMON_PATH)/sip_svc |
| 18 | |
| 19 | SIPSVC_SOURCES := ${PLAT_SIPSVC_PATH}/sip_svc.c \ |
| 20 | ${PLAT_SIPSVC_PATH}/$(ARCH)/sipsvc.S |
| 21 | |
| 22 | PLAT_INCLUDES += -I${PLAT_SIPSVC_PATH}/include |
| 23 | |
| 24 | ifeq (${BL_COMM_SIPSVC_NEEDED},yes) |
| 25 | BL_COMMON_SOURCES += ${SIPSVC_SOURCES} |
| 26 | else |
| 27 | ifeq (${BL2_SIPSVC_NEEDED},yes) |
| 28 | BL2_SOURCES += ${SIPSVC_SOURCES} |
| 29 | endif |
| 30 | ifeq (${BL31_SIPSVC_NEEDED},yes) |
| 31 | BL31_SOURCES += ${SIPSVC_SOURCES} |
| 32 | endif |
| 33 | endif |
| 34 | endif |
| 35 | # ----------------------------------------------------------------------------- |