blob: 84729b6e6dd5162f6c9205b9e1f6eabd78ab91ef [file] [log] [blame]
Juan Castillo31a68f02015-04-14 12:49:03 +01001#
Vikram Kanigirieade34c2016-01-20 15:57:35 +00002# Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved.
Juan Castillo31a68f02015-04-14 12:49:03 +01003#
dp-armfa3cf0b2017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Juan Castillo31a68f02015-04-14 12:49:03 +01005#
6
Juan Castillob6132f12015-10-06 14:01:35 +01007PLAT_INCLUDES += -Iinclude/plat/arm/board/common/ \
8 -Iinclude/plat/arm/board/common/drivers
Juan Castillo31a68f02015-04-14 12:49:03 +01009
Yatharth Kocharf528faf2016-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 Castillo31a68f02015-04-14 12:49:03 +010012
Juan Castillob6132f12015-10-06 14:01:35 +010013BL1_SOURCES += plat/arm/board/common/drivers/norflash/norflash.c
Juan Castillo31a68f02015-04-14 12:49:03 +010014
Juan Castillob6132f12015-10-06 14:01:35 +010015BL2_SOURCES += plat/arm/board/common/drivers/norflash/norflash.c
Juan Castillo31a68f02015-04-14 12:49:03 +010016
17#BL31_SOURCES +=
18
19ifneq (${TRUSTED_BOARD_BOOT},0)
20 # ROTPK hash location
21 ifeq (${ARM_ROTPK_LOCATION}, regs)
22 ARM_ROTPK_LOCATION_ID = ARM_ROTPK_REGS_ID
23 else ifeq (${ARM_ROTPK_LOCATION}, devel_rsa)
24 ARM_ROTPK_LOCATION_ID = ARM_ROTPK_DEVEL_RSA_ID
25 else
26 $(error "Unsupported ARM_ROTPK_LOCATION value")
27 endif
28 $(eval $(call add_define,ARM_ROTPK_LOCATION_ID))
29
Juan Castillobfb7fa62016-01-22 11:05:57 +000030 # Certificate NV-Counters. Use values corresponding to tied off values in
31 # ARM development platforms
32 TFW_NVCTR_VAL ?= 31
33 NTFW_NVCTR_VAL ?= 223
34
Juan Castillo31a68f02015-04-14 12:49:03 +010035 BL1_SOURCES += plat/arm/board/common/board_arm_trusted_boot.c
36 BL2_SOURCES += plat/arm/board/common/board_arm_trusted_boot.c
37endif
Vikram Kanigirieade34c2016-01-20 15:57:35 +000038
39# This flag controls whether memory usage needs to be optimised
Antonio Nino Diaz30ce3ad2016-07-25 12:04:31 +010040ARM_BOARD_OPTIMISE_MEM ?= 0
Vikram Kanigirieade34c2016-01-20 15:57:35 +000041
42# Process flags
Antonio Nino Diaz30ce3ad2016-07-25 12:04:31 +010043$(eval $(call assert_boolean,ARM_BOARD_OPTIMISE_MEM))
44$(eval $(call add_define,ARM_BOARD_OPTIMISE_MEM))