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