blob: fdcee50b454dce909cbbdc6bd08fae235184048c [file] [log] [blame]
Ryan Harkin25cff832014-01-13 12:37:03 +00001#
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
Sandrine Bailleux53514b22014-05-20 17:28:25 +010031# On FVP, the TSP can execute either from Trusted SRAM or Trusted DRAM.
32# Trusted SRAM is the default.
Juan Castillo637ebd22014-08-12 13:04:43 +010033FVP_TSP_RAM_LOCATION := tsram
34ifeq (${FVP_TSP_RAM_LOCATION}, tsram)
35 FVP_TSP_RAM_LOCATION_ID := FVP_IN_TRUSTED_SRAM
36else ifeq (${FVP_TSP_RAM_LOCATION}, tdram)
37 FVP_TSP_RAM_LOCATION_ID := FVP_IN_TRUSTED_DRAM
Sandrine Bailleux53514b22014-05-20 17:28:25 +010038else
Juan Castillo637ebd22014-08-12 13:04:43 +010039 $(error "Unsupported FVP_TSP_RAM_LOCATION value")
Sandrine Bailleux53514b22014-05-20 17:28:25 +010040endif
41
Juan Castillo637ebd22014-08-12 13:04:43 +010042# Process flags
43$(eval $(call add_define,FVP_TSP_RAM_LOCATION_ID))
Sandrine Bailleux53514b22014-05-20 17:28:25 +010044
Soby Mathewa43d4312014-04-07 15:28:55 +010045PLAT_INCLUDES := -Iplat/fvp/include/
Ryan Harkin25cff832014-01-13 12:37:03 +000046
Soby Mathewfce5f752014-06-24 12:28:41 +010047PLAT_BL_COMMON_SOURCES := drivers/arm/pl011/pl011_console.S \
Dan Handleybee82412014-04-15 18:20:09 +010048 drivers/io/io_fip.c \
49 drivers/io/io_memmap.c \
50 drivers/io/io_semihosting.c \
Dan Handley935db692014-08-12 14:20:28 +010051 drivers/io/io_storage.c \
Dan Handleybee82412014-04-15 18:20:09 +010052 lib/aarch64/xlat_tables.c \
53 lib/semihosting/semihosting.c \
54 lib/semihosting/aarch64/semihosting_call.S \
Dan Handleydff8e472014-05-16 14:08:45 +010055 plat/common/aarch64/plat_common.c \
Dan Handley17a387a2014-05-15 14:53:30 +010056 plat/fvp/fvp_io_storage.c
Ryan Harkin25cff832014-01-13 12:37:03 +000057
Dan Handleybee82412014-04-15 18:20:09 +010058BL1_SOURCES += drivers/arm/cci400/cci400.c \
Soby Mathew9b476842014-08-14 11:33:56 +010059 lib/cpus/aarch64/aem_generic.S \
60 lib/cpus/aarch64/cortex_a53.S \
61 lib/cpus/aarch64/cortex_a57.S \
Dan Handleybee82412014-04-15 18:20:09 +010062 plat/common/aarch64/platform_up_stack.S \
Dan Handley17a387a2014-05-15 14:53:30 +010063 plat/fvp/bl1_fvp_setup.c \
64 plat/fvp/aarch64/fvp_common.c \
65 plat/fvp/aarch64/fvp_helpers.S
Ryan Harkin25cff832014-01-13 12:37:03 +000066
Dan Handleybee82412014-04-15 18:20:09 +010067BL2_SOURCES += drivers/arm/tzc400/tzc400.c \
68 plat/common/aarch64/platform_up_stack.S \
Dan Handley17a387a2014-05-15 14:53:30 +010069 plat/fvp/bl2_fvp_setup.c \
70 plat/fvp/fvp_security.c \
71 plat/fvp/aarch64/fvp_common.c
Ryan Harkin25cff832014-01-13 12:37:03 +000072
Vikram Kanigiri03396c42014-06-02 14:59:00 +010073BL31_SOURCES += drivers/arm/cci400/cci400.c \
Dan Handley1e8c5c42014-06-20 09:43:15 +010074 drivers/arm/gic/arm_gic.c \
Vikram Kanigiri03396c42014-06-02 14:59:00 +010075 drivers/arm/gic/gic_v2.c \
Dan Handleybee82412014-04-15 18:20:09 +010076 drivers/arm/gic/gic_v3.c \
Vikram Kanigiri03396c42014-06-02 14:59:00 +010077 drivers/arm/tzc400/tzc400.c \
Soby Mathew9b476842014-08-14 11:33:56 +010078 lib/cpus/aarch64/aem_generic.S \
79 lib/cpus/aarch64/cortex_a53.S \
80 lib/cpus/aarch64/cortex_a57.S \
Dan Handley1e8c5c42014-06-20 09:43:15 +010081 plat/common/plat_gic.c \
Dan Handleybee82412014-04-15 18:20:09 +010082 plat/common/aarch64/platform_mp_stack.S \
Dan Handley17a387a2014-05-15 14:53:30 +010083 plat/fvp/bl31_fvp_setup.c \
Dan Handley17a387a2014-05-15 14:53:30 +010084 plat/fvp/fvp_pm.c \
Vikram Kanigiri03396c42014-06-02 14:59:00 +010085 plat/fvp/fvp_security.c \
Dan Handley17a387a2014-05-15 14:53:30 +010086 plat/fvp/fvp_topology.c \
87 plat/fvp/aarch64/fvp_helpers.S \
88 plat/fvp/aarch64/fvp_common.c \
Dan Handleybee82412014-04-15 18:20:09 +010089 plat/fvp/drivers/pwrc/fvp_pwrc.c