blob: 2556fc04af41c44fc86eef5571df6e4f37c4dba9 [file] [log] [blame]
Juan Castillo95cfd4a2015-04-14 12:49:03 +01001#
Roberto Vargas9d57a142018-08-06 13:35:31 +01002# Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
Juan Castillo95cfd4a2015-04-14 12:49:03 +01003#
dp-arm82cb2c12017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Juan Castillo95cfd4a2015-04-14 12:49:03 +01005#
6
Antonio Nino Diazaa7877c2018-10-10 11:14:44 +01007PLAT_INCLUDES += -Iinclude/drivers/cfi/ \
8 -Iinclude/plat/arm/board/common/
Juan Castillo95cfd4a2015-04-14 12:49:03 +01009
Antonio Nino Diazaa7877c2018-10-10 11:14:44 +010010PLAT_BL_COMMON_SOURCES += drivers/arm/pl011/${ARCH}/pl011_console.S \
Yatharth Kochar1a0a3f02016-06-28 16:58:26 +010011 plat/arm/board/common/${ARCH}/board_arm_helpers.S
Juan Castillo95cfd4a2015-04-14 12:49:03 +010012
Antonio Nino Diazaa7877c2018-10-10 11:14:44 +010013BL1_SOURCES += drivers/cfi/v2m/v2m_flash.c
Juan Castillo95cfd4a2015-04-14 12:49:03 +010014
Antonio Nino Diazaa7877c2018-10-10 11:14:44 +010015BL2_SOURCES += drivers/cfi/v2m/v2m_flash.c
Juan Castillo95cfd4a2015-04-14 12:49:03 +010016
17ifneq (${TRUSTED_BOARD_BOOT},0)
Soby Mathewf143caf2017-06-02 17:44:07 +010018 ifneq (${ARM_CRYPTOCELL_INTEG}, 1)
Juan Castillo95cfd4a2015-04-14 12:49:03 +010019 # ROTPK hash location
20 ifeq (${ARM_ROTPK_LOCATION}, regs)
21 ARM_ROTPK_LOCATION_ID = ARM_ROTPK_REGS_ID
22 else ifeq (${ARM_ROTPK_LOCATION}, devel_rsa)
Qixiang Xu9db9c652017-08-24 15:12:20 +080023 KEY_ALG := rsa
Juan Castillo95cfd4a2015-04-14 12:49:03 +010024 ARM_ROTPK_LOCATION_ID = ARM_ROTPK_DEVEL_RSA_ID
Qixiang Xu9db9c652017-08-24 15:12:20 +080025 else ifeq (${ARM_ROTPK_LOCATION}, devel_ecdsa)
26 KEY_ALG := ecdsa
27 ARM_ROTPK_LOCATION_ID = ARM_ROTPK_DEVEL_ECDSA_ID
Juan Castillo95cfd4a2015-04-14 12:49:03 +010028 else
29 $(error "Unsupported ARM_ROTPK_LOCATION value")
30 endif
31 $(eval $(call add_define,ARM_ROTPK_LOCATION_ID))
32
Juan Castillo48279d52016-01-22 11:05:57 +000033 # Certificate NV-Counters. Use values corresponding to tied off values in
34 # ARM development platforms
35 TFW_NVCTR_VAL ?= 31
36 NTFW_NVCTR_VAL ?= 223
Soby Mathewf143caf2017-06-02 17:44:07 +010037 else
38 # Certificate NV-Counters when CryptoCell is integrated. For development
39 # platforms we set the counter to first valid value.
40 TFW_NVCTR_VAL ?= 0
41 NTFW_NVCTR_VAL ?= 0
42 endif
Juan Castillo95cfd4a2015-04-14 12:49:03 +010043 BL1_SOURCES += plat/arm/board/common/board_arm_trusted_boot.c
44 BL2_SOURCES += plat/arm/board/common/board_arm_trusted_boot.c
45endif