1# 2# Copyright (c) 2019-2020, Arm Limited and Contributors. All rights reserved. 3# 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 \ 14 ${CORSTONE700_CPU_LIBS} \ 15 plat/arm/board/corstone700/drivers/mhu/mhu.c 16 17PLAT_INCLUDES := -Iplat/arm/board/corstone700/include \ 18 -Iinclude/plat/arm/common \ 19 -Iplat/arm/board/corstone700/drivers/mhu 20 21NEED_BL32 := yes 22 23CORSTONE700_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 \ 27 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 53