blob: d78817706327b0db202c828c8b9b2ddf1d36674b [file] [log] [blame]
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +02001#
John Tsichritzisd1193ef2019-07-16 15:30:22 +01002# Copyright (c) 2018-2019, Arm Limited. All rights reserved.
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +02003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
Sandrine Bailleux2b001322018-12-10 13:51:32 +01007PLAT_INCLUDES := -Iplat/arm/juno/include/
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +02008
9PLAT_SOURCES := drivers/arm/gic/arm_gic_v2.c \
10 drivers/arm/gic/gic_v2.c \
11 drivers/arm/sp805/sp805.c \
12 drivers/arm/timer/private_timer.c \
13 drivers/arm/timer/sp804.c \
Sandrine Bailleux2b001322018-12-10 13:51:32 +010014 plat/arm/juno/${ARCH}/plat_helpers.S \
15 plat/arm/juno/juno_pwr_state.c \
16 plat/arm/juno/juno_timers.c \
17 plat/arm/juno/juno_topology.c \
18 plat/arm/juno/juno_mem_prot.c \
19 plat/arm/juno/plat_setup.c
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020020
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020021ifeq (${ARCH},aarch32)
John Tsichritzisd1193ef2019-07-16 15:30:22 +010022# Some tests are not supported on Juno AArch32.
23 PLAT_TESTS_SKIP_LIST := plat/arm/juno/juno32_tests_to_skip.txt
24else
25 PLAT_TESTS_SKIP_LIST := plat/arm/juno/juno64_tests_to_skip.txt
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020026endif
27
28PLAT_SUPPORTS_NS_RESET := 1
29
30# Process PLAT_SUPPORTS_NS_RESET flag
31$(eval $(call assert_boolean,PLAT_SUPPORTS_NS_RESET))
32$(eval $(call add_define,TFTF_DEFINES,PLAT_SUPPORTS_NS_RESET))
33
34ifeq (${ARCH},aarch32)
35ifeq (${FIRMWARE_UPDATE},1)
36$(error "FIRMWARE_UPDATE is not supported on Juno aarch32")
37endif
38else
39FIRMWARE_UPDATE := 1
40endif
41
42include plat/arm/common/arm_common.mk