Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 1 | # |
Roberto Vargas | b96ee4b | 2018-08-06 13:35:31 +0100 | [diff] [blame] | 2 | # Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 3 | # |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | # SPDX-License-Identifier: BSD-3-Clause |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 5 | # |
| 6 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 7 | PLAT_INCLUDES += -Iinclude/plat/arm/board/common/ |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 8 | |
Antonio Nino Diaz | d7da2f8 | 2018-10-10 11:14:44 +0100 | [diff] [blame] | 9 | PLAT_BL_COMMON_SOURCES += drivers/arm/pl011/${ARCH}/pl011_console.S \ |
Yatharth Kochar | f528faf | 2016-06-28 16:58:26 +0100 | [diff] [blame] | 10 | plat/arm/board/common/${ARCH}/board_arm_helpers.S |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 11 | |
Antonio Nino Diaz | d7da2f8 | 2018-10-10 11:14:44 +0100 | [diff] [blame] | 12 | BL1_SOURCES += drivers/cfi/v2m/v2m_flash.c |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 13 | |
Antonio Nino Diaz | d7da2f8 | 2018-10-10 11:14:44 +0100 | [diff] [blame] | 14 | BL2_SOURCES += drivers/cfi/v2m/v2m_flash.c |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 15 | |
| 16 | ifneq (${TRUSTED_BOARD_BOOT},0) |
Soby Mathew | 3e6bbda | 2017-06-02 17:44:07 +0100 | [diff] [blame] | 17 | ifneq (${ARM_CRYPTOCELL_INTEG}, 1) |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 18 | # 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 Xu | 1c2aef1 | 2017-08-24 15:12:20 +0800 | [diff] [blame] | 22 | KEY_ALG := rsa |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 23 | ARM_ROTPK_LOCATION_ID = ARM_ROTPK_DEVEL_RSA_ID |
Qixiang Xu | 1c2aef1 | 2017-08-24 15:12:20 +0800 | [diff] [blame] | 24 | else ifeq (${ARM_ROTPK_LOCATION}, devel_ecdsa) |
| 25 | KEY_ALG := ecdsa |
| 26 | ARM_ROTPK_LOCATION_ID = ARM_ROTPK_DEVEL_ECDSA_ID |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 27 | else |
| 28 | $(error "Unsupported ARM_ROTPK_LOCATION value") |
| 29 | endif |
| 30 | $(eval $(call add_define,ARM_ROTPK_LOCATION_ID)) |
| 31 | |
Juan Castillo | bfb7fa6 | 2016-01-22 11:05:57 +0000 | [diff] [blame] | 32 | # 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 Mathew | 3e6bbda | 2017-06-02 17:44:07 +0100 | [diff] [blame] | 36 | 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 Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 42 | BL1_SOURCES += plat/arm/board/common/board_arm_trusted_boot.c |
| 43 | BL2_SOURCES += plat/arm/board/common/board_arm_trusted_boot.c |
| 44 | endif |