Soby Mathew | 5d70800 | 2017-05-10 11:49:58 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | include drivers/auth/mbedtls/mbedtls_common.mk |
| 8 | |
| 9 | # The algorithm is RSA when using Cryptocell crypto driver |
| 10 | TF_MBEDTLS_KEY_ALG_ID := TF_MBEDTLS_RSA |
| 11 | |
| 12 | # Needs to be set to drive mbed TLS configuration correctly |
| 13 | $(eval $(call add_define,TF_MBEDTLS_KEY_ALG_ID)) |
| 14 | |
| 15 | # CCSBROM_LIB_PATH must be set to the Cryptocell SBROM library path |
| 16 | ifeq (${CCSBROM_LIB_PATH},) |
| 17 | $(error Error: CCSBROM_LIB_PATH not set) |
| 18 | endif |
| 19 | |
| 20 | TF_LDFLAGS += -L$(CCSBROM_LIB_PATH) |
| 21 | LDLIBS += -lcc_712sbromx509 |
| 22 | |
Soby Mathew | 5d70800 | 2017-05-10 11:49:58 +0100 | [diff] [blame] | 23 | CRYPTOCELL_SOURCES := drivers/auth/cryptocell/cryptocell_crypto.c |
| 24 | |
| 25 | BL1_SOURCES += ${CRYPTOCELL_SOURCES} |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 26 | BL2_SOURCES += ${CRYPTOCELL_SOURCES} |