1# Copyright (c) 2021-2022, ProvenRun S.A.S. All rights reserved.
2#
3# SPDX-License-Identifier: BSD-3-Clause
4
5PNCD_DIR		:=	services/spd/pncd
6SPD_INCLUDES		:=	-Iinclude/bl32/pnc
7SPD_INCLUDES		+=	-Iinclude/common/
8
9SPD_SOURCES		:=	services/spd/pncd/pncd_common.c		\
10				services/spd/pncd/pncd_helpers.S	\
11				services/spd/pncd/pncd_main.c
12
13NEED_BL32		:=	yes
14
15# The following constants need to be defined:
16#   - SPD_PNCD_NS_IRQ: IRQ number used to notify NS world when SMC_ACTION_FROM_S is received
17#   - SPD_PNCD_S_IRQ: IRQ number used to notify S world when SMC_ACTION_FROM_NS is received
18$(eval $(call assert_numerics, SPD_PNCD_NS_IRQ SPD_PNCD_S_IRQ))
19
20$(eval $(call add_defines,\
21    $(sort \
22        SPD_PNCD_NS_IRQ \
23        SPD_PNCD_S_IRQ \
24)))
25