blob: cec047ce7783a9f4c35ce024a201d908f974b766 [file] [log] [blame]
Daniel Boulbyc19215a2023-05-17 13:50:36 +01001#
2# Copyright (c) 2020-2023, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7# Default number of threads per CPU on FVP
8TC_MAX_PE_PER_CPU := 1
9
10# Check the PE per core count
11ifneq ($(TC_MAX_PE_PER_CPU),$(filter $(TC_MAX_PE_PER_CPU),1 2))
12$(error "Incorrect TC_MAX_PE_PER_CPU specified for TC port")
13endif
14
15# Pass FVP_MAX_PE_PER_CPU to the build system
16$(eval $(call add_define,TFTF_DEFINES,TC_MAX_PE_PER_CPU))
17$(eval $(call add_define,NS_BL1U_DEFINES,TC_MAX_PE_PER_CPU))
18$(eval $(call add_define,NS_BL2U_DEFINES,TC_MAX_PE_PER_CPU))
19
20PLAT_INCLUDES += -Iplat/arm/tc/include/
21
22PLAT_SOURCES := drivers/arm/gic/arm_gic_v2v3.c \
23 drivers/arm/gic/gic_v2.c \
24 drivers/arm/gic/gic_v3.c \
25 drivers/arm/sp805/sp805.c \
26 drivers/arm/timer/private_timer.c \
27 drivers/arm/timer/system_timer.c \
28 plat/arm/tc/${ARCH}/plat_helpers.S \
29 plat/arm/tc/plat_setup.c \
30 plat/arm/tc/tc_mem_prot.c \
31 plat/arm/tc/tc_pwr_state.c \
32 plat/arm/tc/tc_topology.c
33
34CACTUS_SOURCES += plat/arm/tc/${ARCH}/plat_helpers.S
35IVY_SOURCES += plat/arm/tc/${ARCH}/plat_helpers.S
36
37PLAT_TESTS_SKIP_LIST := plat/arm/tc/tests_to_skip.txt
38
39ifeq (${USE_NVM},1)
40$(error "USE_NVM is not supported on TC platforms")
41endif
42
43include plat/arm/common/arm_common.mk