2 # Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
4 # SPDX-License-Identifier: BSD-3-Clause
7 JUNO_GIC_SOURCES
:= drivers
/arm
/gic
/common
/gic_common.c \
8 drivers
/arm
/gic
/v2
/gicv2_main.c \
9 drivers
/arm
/gic
/v2
/gicv2_helpers.c \
10 plat
/common
/plat_gicv2.c \
11 plat
/arm
/common
/arm_gicv2.c
13 JUNO_INTERCONNECT_SOURCES
:= drivers
/arm
/cci
/cci.c \
14 plat
/arm
/common
/arm_cci.c
16 JUNO_SECURITY_SOURCES
:= drivers
/arm
/tzc
/tzc400.c \
17 plat
/arm
/board
/juno
/juno_security.c \
18 plat
/arm
/board
/juno
/juno_trng.c \
19 plat
/arm
/common
/arm_tzc400.c
21 ifneq (${ENABLE_STACK_PROTECTOR}, 0)
22 JUNO_SECURITY_SOURCES
+= plat
/arm
/board
/juno
/juno_stack_protector.c
25 PLAT_INCLUDES
:= -Iplat
/arm
/board
/juno
/include
27 PLAT_BL_COMMON_SOURCES
:= plat
/arm
/board
/juno
/${ARCH}/juno_helpers.S
29 # Flag to enable support for AArch32 state on JUNO
30 JUNO_AARCH32_EL3_RUNTIME
:= 0
31 $(eval
$(call assert_boolean
,JUNO_AARCH32_EL3_RUNTIME
))
32 $(eval
$(call add_define
,JUNO_AARCH32_EL3_RUNTIME
))
34 ifeq (${JUNO_AARCH32_EL3_RUNTIME}, 1)
37 # BL31 is not required
38 override BL31_SOURCES
=
40 # The BL32 needs to be built separately invoking the AARCH32 compiler and
41 # be specifed via `BL32` build option.
42 ifneq (${ARCH}, aarch32
)
43 override BL32_SOURCES
=
47 ifeq (${ARCH},aarch64
)
48 BL1_SOURCES
+= lib
/cpus
/aarch64
/cortex_a53.S \
49 lib
/cpus
/aarch64
/cortex_a57.S \
50 lib
/cpus
/aarch64
/cortex_a72.S \
51 plat
/arm
/board
/juno
/juno_bl1_setup.c \
52 plat
/arm
/board
/juno
/juno_err.c \
53 ${JUNO_INTERCONNECT_SOURCES} \
54 ${JUNO_SECURITY_SOURCES}
56 BL2_SOURCES
+= plat
/arm
/board
/juno
/juno_err.c \
57 plat
/arm
/board
/juno
/juno_bl2_setup.c \
58 ${JUNO_SECURITY_SOURCES}
60 BL2U_SOURCES
+= ${JUNO_SECURITY_SOURCES}
62 BL31_SOURCES
+= lib
/cpus
/aarch64
/cortex_a53.S \
63 lib
/cpus
/aarch64
/cortex_a57.S \
64 lib
/cpus
/aarch64
/cortex_a72.S \
65 plat
/arm
/board
/juno
/juno_topology.c \
67 ${JUNO_INTERCONNECT_SOURCES} \
68 ${JUNO_SECURITY_SOURCES}
71 # Errata workarounds for Cortex-A53:
72 ERRATA_A53_826319
:= 1
73 ERRATA_A53_835769
:= 1
74 ERRATA_A53_836870
:= 1
75 ERRATA_A53_843419
:= 1
76 ERRATA_A53_855873
:= 1
78 # Errata workarounds for Cortex-A57:
79 ERRATA_A57_806969
:= 0
80 ERRATA_A57_813419
:= 1
81 ERRATA_A57_813420
:= 1
82 ERRATA_A57_826974
:= 1
83 ERRATA_A57_826977
:= 1
84 ERRATA_A57_828024
:= 1
85 ERRATA_A57_829520
:= 1
86 ERRATA_A57_833471
:= 1
87 ERRATA_A57_859972
:= 0
89 # Errata workarounds for Cortex-A72:
90 ERRATA_A72_859971
:= 0
92 # Enable option to skip L1 data cache flush during the Cortex-A57 cluster
94 SKIP_A57_L1_FLUSH_PWR_DWN
:= 1
96 # Disable the PSCI platform compatibility layer
97 ENABLE_PLAT_COMPAT
:= 0
99 # Enable memory map related constants optimisation
100 ARM_BOARD_OPTIMISE_MEM
:= 1
103 ENABLE_SVE_FOR_NS
:= 0
105 include plat
/arm
/board
/common
/board_css.mk
106 include plat
/arm
/common
/arm_common.mk
107 include plat
/arm
/soc
/common
/soc_css.mk
108 include plat
/arm
/css
/common
/css_common.mk