blob: 51e3e8636c6a077c6558d06b5f91785638e7bbbf [file] [log] [blame]
Pankaj Gupta1ec78a02020-12-09 14:02:38 +05301#
2# Copyright 2021 NXP
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifeq (${ADD_SNVS},)
8
9ADD_SNVS := 1
10
11SNVS_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/sec_mon
12
13PLAT_INCLUDES += -I$(SNVS_DRIVERS_PATH)
14
15SNVS_SOURCES += $(SNVS_DRIVERS_PATH)/snvs.c
16
17ifeq (${BL_COMM_SNVS_NEEDED},yes)
18BL_COMMON_SOURCES += ${SNVS_SOURCES}
19else
20ifeq (${BL2_SNVS_NEEDED},yes)
21BL2_SOURCES += ${SNVS_SOURCES}
22endif
23ifeq (${BL31_SNVS_NEEDED},yes)
24BL31_SOURCES += ${SNVS_SOURCES}
25endif
26endif
27endif