blob: 548c7b14768b62427f4ba29942d16661317b1b42 [file] [log] [blame]
Pankaj Gupta95c7eee2020-12-09 14:02:39 +05301#
2# Copyright 2020 NXP
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#
7
8ifeq (${ADD_CAAM},)
9
10ADD_CAAM := 1
11CAAM_DRIVER_PATH := drivers/nxp/crypto/caam
12
13CAAM_DRIVER_SOURCES += $(wildcard $(CAAM_DRIVER_PATH)/src/*.c)
14
15PLAT_INCLUDES += -I$(CAAM_DRIVER_PATH)/include
16
17ifeq (${BL_COMM_CRYPTO_NEEDED},yes)
18BL_COMMON_SOURCES += ${CAAM_DRIVER_SOURCES}
19else
20ifeq (${BL2_CRYPTO_NEEDED},yes)
21BL2_SOURCES += ${CAAM_DRIVER_SOURCES}
22endif
23ifeq (${BL31_CRYPTO_NEEDED},yes)
24BL31_SOURCES += ${CAAM_DRIVER_SOURCES}
25endif
26endif
27
28endif