blob: 487aad7399ac6e046fec18fbd6183131b1b8b7ed [file] [log] [blame]
Juan Castillo31a68f02015-04-14 12:49:03 +01001#
Roberto Vargasb96ee4b2018-08-06 13:35:31 +01002# Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
Juan Castillo31a68f02015-04-14 12:49:03 +01003#
dp-armfa3cf0b2017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Juan Castillo31a68f02015-04-14 12:49:03 +01005#
6
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00007PLAT_INCLUDES += -Iinclude/plat/arm/board/common/
Juan Castillo31a68f02015-04-14 12:49:03 +01008
Antonio Nino Diazd7da2f82018-10-10 11:14:44 +01009PLAT_BL_COMMON_SOURCES += drivers/arm/pl011/${ARCH}/pl011_console.S \
Yatharth Kocharf528faf2016-06-28 16:58:26 +010010 plat/arm/board/common/${ARCH}/board_arm_helpers.S
Juan Castillo31a68f02015-04-14 12:49:03 +010011
Antonio Nino Diazd7da2f82018-10-10 11:14:44 +010012BL1_SOURCES += drivers/cfi/v2m/v2m_flash.c
Juan Castillo31a68f02015-04-14 12:49:03 +010013
Antonio Nino Diazd7da2f82018-10-10 11:14:44 +010014BL2_SOURCES += drivers/cfi/v2m/v2m_flash.c
Juan Castillo31a68f02015-04-14 12:49:03 +010015
16ifneq (${TRUSTED_BOARD_BOOT},0)
Soby Mathew3e6bbda2017-06-02 17:44:07 +010017 ifneq (${ARM_CRYPTOCELL_INTEG}, 1)
Juan Castillo31a68f02015-04-14 12:49:03 +010018 # ROTPK hash location
19 ifeq (${ARM_ROTPK_LOCATION}, regs)
20 ARM_ROTPK_LOCATION_ID = ARM_ROTPK_REGS_ID
21 else ifeq (${ARM_ROTPK_LOCATION}, devel_rsa)
Qixiang Xu1c2aef12017-08-24 15:12:20 +080022 KEY_ALG := rsa
Juan Castillo31a68f02015-04-14 12:49:03 +010023 ARM_ROTPK_LOCATION_ID = ARM_ROTPK_DEVEL_RSA_ID
Qixiang Xu1c2aef12017-08-24 15:12:20 +080024 else ifeq (${ARM_ROTPK_LOCATION}, devel_ecdsa)
25 KEY_ALG := ecdsa
26 ARM_ROTPK_LOCATION_ID = ARM_ROTPK_DEVEL_ECDSA_ID
Juan Castillo31a68f02015-04-14 12:49:03 +010027 else
28 $(error "Unsupported ARM_ROTPK_LOCATION value")
29 endif
30 $(eval $(call add_define,ARM_ROTPK_LOCATION_ID))
31
Juan Castillobfb7fa62016-01-22 11:05:57 +000032 # Certificate NV-Counters. Use values corresponding to tied off values in
33 # ARM development platforms
34 TFW_NVCTR_VAL ?= 31
35 NTFW_NVCTR_VAL ?= 223
Soby Mathew3e6bbda2017-06-02 17:44:07 +010036 else
37 # Certificate NV-Counters when CryptoCell is integrated. For development
38 # platforms we set the counter to first valid value.
39 TFW_NVCTR_VAL ?= 0
40 NTFW_NVCTR_VAL ?= 0
41 endif
Juan Castillo31a68f02015-04-14 12:49:03 +010042 BL1_SOURCES += plat/arm/board/common/board_arm_trusted_boot.c
43 BL2_SOURCES += plat/arm/board/common/board_arm_trusted_boot.c
44endif