blob: f929f5395d633024e9dc2b9d0c17ca653f5152fd [file] [log] [blame]
Pankaj Gupta95c7eee2020-12-09 14:02:39 +05301#
Pankaj Gupta7834b462021-03-25 15:15:52 +05302# Copyright 2020-2021 NXP
Pankaj Gupta95c7eee2020-12-09 14:02:39 +05303#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#
7
8ifeq (${ADD_CAAM},)
9
10ADD_CAAM := 1
Pankaj Gupta95c7eee2020-12-09 14:02:39 +053011
Pankaj Gupta7834b462021-03-25 15:15:52 +053012CAAM_DRIVER_SOURCES += $(wildcard $(PLAT_DRIVERS_PATH)/crypto/caam/src/*.c)
Pankaj Gupta95c7eee2020-12-09 14:02:39 +053013
Pankaj Gupta7834b462021-03-25 15:15:52 +053014PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/crypto/caam
Pankaj Gupta95c7eee2020-12-09 14:02:39 +053015
16ifeq (${BL_COMM_CRYPTO_NEEDED},yes)
17BL_COMMON_SOURCES += ${CAAM_DRIVER_SOURCES}
18else
19ifeq (${BL2_CRYPTO_NEEDED},yes)
20BL2_SOURCES += ${CAAM_DRIVER_SOURCES}
21endif
22ifeq (${BL31_CRYPTO_NEEDED},yes)
23BL31_SOURCES += ${CAAM_DRIVER_SOURCES}
24endif
25endif
26
27endif