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