blob: 2023150cc041cd1eb3231e81287f7a86fbe67408 [file] [log] [blame]
Juan Castillo95cfd4a2015-04-14 12:49:03 +01001#
Vikram Kanigiric64a0442016-01-20 15:57:35 +00002# Copyright (c) 2015-2016, 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
Juan Castillo7b4c1402015-10-06 14:01:35 +01007PLAT_INCLUDES += -Iinclude/plat/arm/board/common/ \
8 -Iinclude/plat/arm/board/common/drivers
Juan Castillo95cfd4a2015-04-14 12:49:03 +01009
Yatharth Kochar1a0a3f02016-06-28 16:58:26 +010010PLAT_BL_COMMON_SOURCES += drivers/arm/pl011/${ARCH}/pl011_console.S \
11 plat/arm/board/common/${ARCH}/board_arm_helpers.S
Juan Castillo95cfd4a2015-04-14 12:49:03 +010012
Juan Castillo7b4c1402015-10-06 14:01:35 +010013BL1_SOURCES += plat/arm/board/common/drivers/norflash/norflash.c
Juan Castillo95cfd4a2015-04-14 12:49:03 +010014
Roberto Vargasf1454032017-08-03 09:16:43 +010015BL2_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 Castillo95cfd4a2015-04-14 12:49:03 +010018
Roberto Vargasf1454032017-08-03 09:16:43 +010019BL31_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 Castillo95cfd4a2015-04-14 12:49:03 +010022
23ifneq (${TRUSTED_BOARD_BOOT},0)
Soby Mathewf143caf2017-06-02 17:44:07 +010024 ifneq (${ARM_CRYPTOCELL_INTEG}, 1)
Juan Castillo95cfd4a2015-04-14 12:49:03 +010025 # 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)
29 ARM_ROTPK_LOCATION_ID = ARM_ROTPK_DEVEL_RSA_ID
30 else
31 $(error "Unsupported ARM_ROTPK_LOCATION value")
32 endif
33 $(eval $(call add_define,ARM_ROTPK_LOCATION_ID))
34
Juan Castillo48279d52016-01-22 11:05:57 +000035 # Certificate NV-Counters. Use values corresponding to tied off values in
36 # ARM development platforms
37 TFW_NVCTR_VAL ?= 31
38 NTFW_NVCTR_VAL ?= 223
Soby Mathewf143caf2017-06-02 17:44:07 +010039 else
40 # Certificate NV-Counters when CryptoCell is integrated. For development
41 # platforms we set the counter to first valid value.
42 TFW_NVCTR_VAL ?= 0
43 NTFW_NVCTR_VAL ?= 0
44 endif
Juan Castillo95cfd4a2015-04-14 12:49:03 +010045 BL1_SOURCES += plat/arm/board/common/board_arm_trusted_boot.c
46 BL2_SOURCES += plat/arm/board/common/board_arm_trusted_boot.c
47endif
Vikram Kanigiric64a0442016-01-20 15:57:35 +000048
49# This flag controls whether memory usage needs to be optimised
Antonio Nino Diaz02899702016-07-25 12:04:31 +010050ARM_BOARD_OPTIMISE_MEM ?= 0
Vikram Kanigiric64a0442016-01-20 15:57:35 +000051
52# Process flags
Antonio Nino Diaz02899702016-07-25 12:04:31 +010053$(eval $(call assert_boolean,ARM_BOARD_OPTIMISE_MEM))
54$(eval $(call add_define,ARM_BOARD_OPTIMISE_MEM))