blob: a4d4f2227c327554a5abead96cd1da10cc9e0073 [file] [log] [blame]
Manish Pandey52990ae2018-11-28 11:20:37 +00001#
Khandelwal368564c2020-01-29 16:51:42 +00002# Copyright (c) 2019-2020, Arm Limited and Contributors. All rights reserved.
Manish Pandey52990ae2018-11-28 11:20:37 +00003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7CORSTONE700_CPU_LIBS += lib/cpus/aarch32/cortex_a32.S
8
9BL32_SOURCES += plat/arm/common/aarch32/arm_helpers.S \
10 plat/arm/common/arm_console.c \
11 plat/arm/common/arm_common.c \
12 lib/xlat_tables/aarch32/xlat_tables.c \
13 lib/xlat_tables/xlat_tables_common.c \
Khandelwal368564c2020-01-29 16:51:42 +000014 ${CORSTONE700_CPU_LIBS} \
15 plat/arm/board/corstone700/drivers/mhu/mhu.c
Manish Pandey52990ae2018-11-28 11:20:37 +000016
Khandelwal368564c2020-01-29 16:51:42 +000017PLAT_INCLUDES := -Iplat/arm/board/corstone700/include \
18 -Iinclude/plat/arm/common \
19 -Iplat/arm/board/corstone700/drivers/mhu
Manish Pandey52990ae2018-11-28 11:20:37 +000020
21NEED_BL32 := yes
22
Khandelwal368564c2020-01-29 16:51:42 +000023CORSTONE700_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \
24 drivers/arm/gic/v2/gicv2_main.c \
25 drivers/arm/gic/v2/gicv2_helpers.c \
26 plat/common/plat_gicv2.c \
Manish Pandey52990ae2018-11-28 11:20:37 +000027 plat/arm/common/arm_gicv2.c
28
29# BL1/BL2 Image not a part of the capsule Image for Corstone700
30override NEED_BL1 := no
31override NEED_BL2 := no
32override NEED_BL2U := no
33
34#TFA for Corstone700 starts from BL32
35override RESET_TO_SP_MIN := 1
36
37#Device tree
38CORSTONE700_HW_CONFIG_DTS := fdts/corstone700.dts
39CORSTONE700_HW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}.dtb
40FDT_SOURCES += ${CORSTONE700_HW_CONFIG_DTS}
41$(eval CORSTONE700_HW_CONFIG := ${BUILD_PLAT}/$(patsubst %.dts,%.dtb,$(CORSTONE700_HW_CONFIG_DTS)))
42
43# Add the HW_CONFIG to FIP and specify the same to certtool
44$(eval $(call TOOL_ADD_PAYLOAD,${CORSTONE700_HW_CONFIG},--hw-config))
45
46# Check for Linux kernel as a BL33 image by default
47$(eval $(call add_define,ARM_LINUX_KERNEL_AS_BL33))
48 ifndef ARM_PRELOADED_DTB_BASE
49 $(error "ARM_PRELOADED_DTB_BASE must be set if ARM_LINUX_KERNEL_AS_BL33 is used.")
50 endif
51 $(eval $(call add_define,ARM_PRELOADED_DTB_BASE))
52include plat/arm/board/common/board_common.mk