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