blob: f0904ef0946b9a0cbb7f0ee0f966d7106c3ef380 [file] [log] [blame]
Sandrine Bailleux01b916b2014-07-17 16:06:39 +01001#
2# Copyright (c) 2013-2014, ARM Limited and Contributors. All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are met:
6#
7# Redistributions of source code must retain the above copyright notice, this
8# list of conditions and the following disclaimer.
9#
10# Redistributions in binary form must reproduce the above copyright notice,
11# this list of conditions and the following disclaimer in the documentation
12# and/or other materials provided with the distribution.
13#
14# Neither the name of ARM nor the names of its contributors may be used
15# to endorse or promote products derived from this software without specific
16# prior written permission.
17#
18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28# POSSIBILITY OF SUCH DAMAGE.
29#
30
31PLAT_INCLUDES := -Iplat/juno/include/
32
33PLAT_BL_COMMON_SOURCES := drivers/arm/pl011/pl011_console.S \
34 drivers/io/io_fip.c \
35 drivers/io/io_memmap.c \
36 drivers/io/io_storage.c \
37 lib/aarch64/xlat_tables.c \
38 plat/common/aarch64/plat_common.c \
Juan Castillo33132e62014-10-20 12:29:58 +010039 plat/common/plat_gic.c \
Sandrine Bailleux01b916b2014-07-17 16:06:39 +010040 plat/juno/plat_io_storage.c
41
42BL1_SOURCES += drivers/arm/cci400/cci400.c \
43 lib/cpus/aarch64/cortex_a53.S \
44 lib/cpus/aarch64/cortex_a57.S \
45 plat/common/aarch64/platform_up_stack.S \
46 plat/juno/bl1_plat_setup.c \
47 plat/juno/aarch64/bl1_plat_helpers.S \
48 plat/juno/aarch64/plat_helpers.S \
49 plat/juno/aarch64/juno_common.c
50
51BL2_SOURCES += lib/locks/bakery/bakery_lock.c \
52 plat/common/aarch64/platform_up_stack.S \
53 plat/juno/bl2_plat_setup.c \
54 plat/juno/mhu.c \
55 plat/juno/aarch64/plat_helpers.S \
56 plat/juno/aarch64/juno_common.c \
57 plat/juno/scp_bootloader.c \
58 plat/juno/scpi.c
59
60BL31_SOURCES += drivers/arm/cci400/cci400.c \
Juan Castillo33132e62014-10-20 12:29:58 +010061 drivers/arm/gic/arm_gic.c \
Sandrine Bailleux01b916b2014-07-17 16:06:39 +010062 drivers/arm/gic/gic_v2.c \
Juan Castillo33132e62014-10-20 12:29:58 +010063 drivers/arm/gic/gic_v3.c \
Sandrine Bailleux01b916b2014-07-17 16:06:39 +010064 lib/cpus/aarch64/cortex_a53.S \
65 lib/cpus/aarch64/cortex_a57.S \
66 plat/common/aarch64/platform_mp_stack.S \
67 plat/juno/bl31_plat_setup.c \
68 plat/juno/mhu.c \
69 plat/juno/aarch64/plat_helpers.S \
70 plat/juno/aarch64/juno_common.c \
71 plat/juno/plat_pm.c \
72 plat/juno/plat_topology.c \
Sandrine Bailleux01b916b2014-07-17 16:06:39 +010073 plat/juno/scpi.c
74
75ifneq (${RESET_TO_BL31},0)
76 $(error "Using BL3-1 as the reset vector is not supported on Juno. \
77 Please set RESET_TO_BL31 to 0.")
78endif
79
80NEED_BL30 := yes
81
82# Enable workarounds for selected Cortex-A57 erratas.
83ERRATA_A57_806969 := 1
84ERRATA_A57_813420 := 1