Manish Pandey | 52990ae | 2018-11-28 11:20:37 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2019, Arm Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | CORSTONE700_CPU_LIBS += lib/cpus/aarch32/cortex_a32.S |
| 8 | |
| 9 | BL32_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 | |
| 16 | PLAT_INCLUDES := -Iplat/arm/board/corstone700/include |
| 17 | |
| 18 | NEED_BL32 := yes |
| 19 | |
| 20 | CORSTONE700_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \ |
| 21 | drivers/arm/gic/v2/gicv2_main.c \ |
| 22 | drivers/arm/gic/v2/gicv2_helpers.c \ |
| 23 | plat/common/plat_gicv2.c \ |
| 24 | plat/arm/common/arm_gicv2.c |
| 25 | |
| 26 | # BL1/BL2 Image not a part of the capsule Image for Corstone700 |
| 27 | override NEED_BL1 := no |
| 28 | override NEED_BL2 := no |
| 29 | override NEED_BL2U := no |
| 30 | |
| 31 | #TFA for Corstone700 starts from BL32 |
| 32 | override RESET_TO_SP_MIN := 1 |
| 33 | |
| 34 | #Device tree |
| 35 | CORSTONE700_HW_CONFIG_DTS := fdts/corstone700.dts |
| 36 | CORSTONE700_HW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}.dtb |
| 37 | FDT_SOURCES += ${CORSTONE700_HW_CONFIG_DTS} |
| 38 | $(eval CORSTONE700_HW_CONFIG := ${BUILD_PLAT}/$(patsubst %.dts,%.dtb,$(CORSTONE700_HW_CONFIG_DTS))) |
| 39 | |
| 40 | # Add the HW_CONFIG to FIP and specify the same to certtool |
| 41 | $(eval $(call TOOL_ADD_PAYLOAD,${CORSTONE700_HW_CONFIG},--hw-config)) |
| 42 | |
| 43 | # Check for Linux kernel as a BL33 image by default |
| 44 | $(eval $(call add_define,ARM_LINUX_KERNEL_AS_BL33)) |
| 45 | ifndef ARM_PRELOADED_DTB_BASE |
| 46 | $(error "ARM_PRELOADED_DTB_BASE must be set if ARM_LINUX_KERNEL_AS_BL33 is used.") |
| 47 | endif |
| 48 | $(eval $(call add_define,ARM_PRELOADED_DTB_BASE)) |
| 49 | include plat/arm/board/common/board_common.mk |