• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (c) 2015-2017, 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				-Iinclude/plat/arm/board/common/drivers
9
10PLAT_BL_COMMON_SOURCES	+=	drivers/arm/pl011/${ARCH}/pl011_console.S		\
11				plat/arm/board/common/${ARCH}/board_arm_helpers.S
12
13BL1_SOURCES		+=	plat/arm/board/common/drivers/norflash/norflash.c
14
15BL2_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
18
19BL31_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
22
23ifneq (${TRUSTED_BOARD_BOOT},0)
24  ifneq (${ARM_CRYPTOCELL_INTEG}, 1)
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)
29        KEY_ALG := rsa
30        ARM_ROTPK_LOCATION_ID = ARM_ROTPK_DEVEL_RSA_ID
31    else ifeq (${ARM_ROTPK_LOCATION}, devel_ecdsa)
32        KEY_ALG := ecdsa
33        ARM_ROTPK_LOCATION_ID = ARM_ROTPK_DEVEL_ECDSA_ID
34    else
35        $(error "Unsupported ARM_ROTPK_LOCATION value")
36    endif
37    $(eval $(call add_define,ARM_ROTPK_LOCATION_ID))
38
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
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
49    BL1_SOURCES		+=	plat/arm/board/common/board_arm_trusted_boot.c
50    BL2_SOURCES		+=	plat/arm/board/common/board_arm_trusted_boot.c
51endif
52
53# This flag controls whether memory usage needs to be optimised
54ARM_BOARD_OPTIMISE_MEM	?=	0
55
56# Process flags
57$(eval $(call assert_boolean,ARM_BOARD_OPTIMISE_MEM))
58$(eval $(call add_define,ARM_BOARD_OPTIMISE_MEM))
59