1# 2# Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6 7PLAT_INCLUDES += -Iinclude/plat/arm/board/common/ 8 9PLAT_BL_COMMON_SOURCES += drivers/arm/pl011/${ARCH}/pl011_console.S \ 10 plat/arm/board/common/${ARCH}/board_arm_helpers.S 11 12BL1_SOURCES += drivers/cfi/v2m/v2m_flash.c 13 14BL2_SOURCES += drivers/cfi/v2m/v2m_flash.c 15 16ifneq (${TRUSTED_BOARD_BOOT},0) 17 ifneq (${ARM_CRYPTOCELL_INTEG}, 1) 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) 22 KEY_ALG := rsa 23 ARM_ROTPK_LOCATION_ID = ARM_ROTPK_DEVEL_RSA_ID 24 else ifeq (${ARM_ROTPK_LOCATION}, devel_ecdsa) 25 KEY_ALG := ecdsa 26 ARM_ROTPK_LOCATION_ID = ARM_ROTPK_DEVEL_ECDSA_ID 27 else 28 $(error "Unsupported ARM_ROTPK_LOCATION value") 29 endif 30 $(eval $(call add_define,ARM_ROTPK_LOCATION_ID)) 31 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 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 42 BL1_SOURCES += plat/arm/board/common/board_arm_trusted_boot.c 43 BL2_SOURCES += plat/arm/board/common/board_arm_trusted_boot.c 44endif 45