Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 1 | # |
Qixiang Xu | 1c2aef1 | 2017-08-24 15:12:20 +0800 | [diff] [blame] | 2 | # Copyright (c) 2015-2017, 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 | |
Juan Castillo | b6132f1 | 2015-10-06 14:01:35 +0100 | [diff] [blame] | 7 | PLAT_INCLUDES += -Iinclude/plat/arm/board/common/ \ |
| 8 | -Iinclude/plat/arm/board/common/drivers |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 9 | |
Yatharth Kochar | f528faf | 2016-06-28 16:58:26 +0100 | [diff] [blame] | 10 | PLAT_BL_COMMON_SOURCES += drivers/arm/pl011/${ARCH}/pl011_console.S \ |
| 11 | plat/arm/board/common/${ARCH}/board_arm_helpers.S |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 12 | |
Juan Castillo | b6132f1 | 2015-10-06 14:01:35 +0100 | [diff] [blame] | 13 | BL1_SOURCES += plat/arm/board/common/drivers/norflash/norflash.c |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 14 | |
Roberto Vargas | a1c16b6 | 2017-08-03 09:16:43 +0100 | [diff] [blame] | 15 | BL2_SOURCES += lib/utils/mem_region.c \ |
| 16 | plat/arm/common/arm_nor_psci_mem_protect.c \ |
| 17 | plat/arm/board/common/drivers/norflash/norflash.c |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 18 | |
Roberto Vargas | a1c16b6 | 2017-08-03 09:16:43 +0100 | [diff] [blame] | 19 | BL31_SOURCES += lib/utils/mem_region.c \ |
| 20 | plat/arm/board/common/drivers/norflash/norflash.c \ |
| 21 | plat/arm/common/arm_nor_psci_mem_protect.c |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 22 | |
| 23 | ifneq (${TRUSTED_BOARD_BOOT},0) |
Soby Mathew | 3e6bbda | 2017-06-02 17:44:07 +0100 | [diff] [blame] | 24 | ifneq (${ARM_CRYPTOCELL_INTEG}, 1) |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 25 | # ROTPK hash location |
| 26 | ifeq (${ARM_ROTPK_LOCATION}, regs) |
| 27 | ARM_ROTPK_LOCATION_ID = ARM_ROTPK_REGS_ID |
| 28 | else ifeq (${ARM_ROTPK_LOCATION}, devel_rsa) |
Qixiang Xu | 1c2aef1 | 2017-08-24 15:12:20 +0800 | [diff] [blame] | 29 | KEY_ALG := rsa |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 30 | ARM_ROTPK_LOCATION_ID = ARM_ROTPK_DEVEL_RSA_ID |
Qixiang Xu | 1c2aef1 | 2017-08-24 15:12:20 +0800 | [diff] [blame] | 31 | else ifeq (${ARM_ROTPK_LOCATION}, devel_ecdsa) |
| 32 | KEY_ALG := ecdsa |
| 33 | ARM_ROTPK_LOCATION_ID = ARM_ROTPK_DEVEL_ECDSA_ID |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 34 | else |
| 35 | $(error "Unsupported ARM_ROTPK_LOCATION value") |
| 36 | endif |
| 37 | $(eval $(call add_define,ARM_ROTPK_LOCATION_ID)) |
| 38 | |
Juan Castillo | bfb7fa6 | 2016-01-22 11:05:57 +0000 | [diff] [blame] | 39 | # Certificate NV-Counters. Use values corresponding to tied off values in |
| 40 | # ARM development platforms |
| 41 | TFW_NVCTR_VAL ?= 31 |
| 42 | NTFW_NVCTR_VAL ?= 223 |
Soby Mathew | 3e6bbda | 2017-06-02 17:44:07 +0100 | [diff] [blame] | 43 | else |
| 44 | # Certificate NV-Counters when CryptoCell is integrated. For development |
| 45 | # platforms we set the counter to first valid value. |
| 46 | TFW_NVCTR_VAL ?= 0 |
| 47 | NTFW_NVCTR_VAL ?= 0 |
| 48 | endif |
Juan Castillo | 31a68f0 | 2015-04-14 12:49:03 +0100 | [diff] [blame] | 49 | BL1_SOURCES += plat/arm/board/common/board_arm_trusted_boot.c |
| 50 | BL2_SOURCES += plat/arm/board/common/board_arm_trusted_boot.c |
| 51 | endif |
Vikram Kanigiri | eade34c | 2016-01-20 15:57:35 +0000 | [diff] [blame] | 52 | |
| 53 | # This flag controls whether memory usage needs to be optimised |
Antonio Nino Diaz | 30ce3ad | 2016-07-25 12:04:31 +0100 | [diff] [blame] | 54 | ARM_BOARD_OPTIMISE_MEM ?= 0 |
Vikram Kanigiri | eade34c | 2016-01-20 15:57:35 +0000 | [diff] [blame] | 55 | |
| 56 | # Process flags |
Antonio Nino Diaz | 30ce3ad | 2016-07-25 12:04:31 +0100 | [diff] [blame] | 57 | $(eval $(call assert_boolean,ARM_BOARD_OPTIMISE_MEM)) |
| 58 | $(eval $(call add_define,ARM_BOARD_OPTIMISE_MEM)) |