blob: e7c06a80439cd60c786f0d705ce51fec8696cac7 [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
Juan Castillo48e84b32014-08-12 13:51:51 +010031# Shared memory may be allocated at the top of Trusted SRAM (tsram) or at the
32# base of Trusted SRAM (tdram)
33FVP_SHARED_DATA_LOCATION := tsram
34ifeq (${FVP_SHARED_DATA_LOCATION}, tsram)
35 FVP_SHARED_DATA_LOCATION_ID := FVP_IN_TRUSTED_SRAM
36else ifeq (${FVP_SHARED_DATA_LOCATION}, tdram)
37 FVP_SHARED_DATA_LOCATION_ID := FVP_IN_TRUSTED_DRAM
38else
39 $(error "Unsupported FVP_SHARED_DATA_LOCATION value")
40endif
41
Sandrine Bailleuxe701e302014-05-20 17:28:25 +010042# On FVP, the TSP can execute either from Trusted SRAM or Trusted DRAM.
43# Trusted SRAM is the default.
Juan Castillo0c70c572014-08-12 13:04:43 +010044FVP_TSP_RAM_LOCATION := tsram
45ifeq (${FVP_TSP_RAM_LOCATION}, tsram)
46 FVP_TSP_RAM_LOCATION_ID := FVP_IN_TRUSTED_SRAM
47else ifeq (${FVP_TSP_RAM_LOCATION}, tdram)
48 FVP_TSP_RAM_LOCATION_ID := FVP_IN_TRUSTED_DRAM
Sandrine Bailleuxe701e302014-05-20 17:28:25 +010049else
Juan Castillo0c70c572014-08-12 13:04:43 +010050 $(error "Unsupported FVP_TSP_RAM_LOCATION value")
Sandrine Bailleuxe701e302014-05-20 17:28:25 +010051endif
52
Juan Castillo48e84b32014-08-12 13:51:51 +010053ifeq (${FVP_SHARED_DATA_LOCATION}, tsram)
54 ifeq (${FVP_TSP_RAM_LOCATION}, tdram)
55 $(error Shared data in Trusted SRAM and TSP in Trusted DRAM is not supported)
56 endif
57endif
58
Juan Castillo0c70c572014-08-12 13:04:43 +010059# Process flags
Juan Castillo48e84b32014-08-12 13:51:51 +010060$(eval $(call add_define,FVP_SHARED_DATA_LOCATION_ID))
Juan Castillo0c70c572014-08-12 13:04:43 +010061$(eval $(call add_define,FVP_TSP_RAM_LOCATION_ID))
Sandrine Bailleuxe701e302014-05-20 17:28:25 +010062
Soby Mathew5e5c2072014-04-07 15:28:55 +010063PLAT_INCLUDES := -Iplat/fvp/include/
Ryan Harkin25cff832014-01-13 12:37:03 +000064
Soby Mathewc389d772014-06-24 12:28:41 +010065PLAT_BL_COMMON_SOURCES := drivers/arm/pl011/pl011_console.S \
Dan Handley176e7b42014-04-15 18:20:09 +010066 drivers/io/io_fip.c \
67 drivers/io/io_memmap.c \
68 drivers/io/io_semihosting.c \
Dan Handley7b83c442014-08-12 14:20:28 +010069 drivers/io/io_storage.c \
Dan Handley176e7b42014-04-15 18:20:09 +010070 lib/aarch64/xlat_tables.c \
71 lib/semihosting/semihosting.c \
72 lib/semihosting/aarch64/semihosting_call.S \
Dan Handleyb226a4d2014-05-16 14:08:45 +010073 plat/common/aarch64/plat_common.c \
Dan Handleyea451572014-05-15 14:53:30 +010074 plat/fvp/fvp_io_storage.c
Ryan Harkin25cff832014-01-13 12:37:03 +000075
Dan Handley176e7b42014-04-15 18:20:09 +010076BL1_SOURCES += drivers/arm/cci400/cci400.c \
Soby Mathewc704cbc2014-08-14 11:33:56 +010077 lib/cpus/aarch64/aem_generic.S \
78 lib/cpus/aarch64/cortex_a53.S \
79 lib/cpus/aarch64/cortex_a57.S \
Dan Handley176e7b42014-04-15 18:20:09 +010080 plat/common/aarch64/platform_up_stack.S \
Dan Handleyea451572014-05-15 14:53:30 +010081 plat/fvp/bl1_fvp_setup.c \
82 plat/fvp/aarch64/fvp_common.c \
83 plat/fvp/aarch64/fvp_helpers.S
Ryan Harkin25cff832014-01-13 12:37:03 +000084
Dan Handley176e7b42014-04-15 18:20:09 +010085BL2_SOURCES += drivers/arm/tzc400/tzc400.c \
86 plat/common/aarch64/platform_up_stack.S \
Dan Handleyea451572014-05-15 14:53:30 +010087 plat/fvp/bl2_fvp_setup.c \
88 plat/fvp/fvp_security.c \
89 plat/fvp/aarch64/fvp_common.c
Ryan Harkin25cff832014-01-13 12:37:03 +000090
Vikram Kanigiricf79bf52014-06-02 14:59:00 +010091BL31_SOURCES += drivers/arm/cci400/cci400.c \
Dan Handleyfb42b122014-06-20 09:43:15 +010092 drivers/arm/gic/arm_gic.c \
Vikram Kanigiricf79bf52014-06-02 14:59:00 +010093 drivers/arm/gic/gic_v2.c \
Dan Handley176e7b42014-04-15 18:20:09 +010094 drivers/arm/gic/gic_v3.c \
Vikram Kanigiricf79bf52014-06-02 14:59:00 +010095 drivers/arm/tzc400/tzc400.c \
Soby Mathewc704cbc2014-08-14 11:33:56 +010096 lib/cpus/aarch64/aem_generic.S \
97 lib/cpus/aarch64/cortex_a53.S \
98 lib/cpus/aarch64/cortex_a57.S \
Dan Handleyfb42b122014-06-20 09:43:15 +010099 plat/common/plat_gic.c \
Dan Handley176e7b42014-04-15 18:20:09 +0100100 plat/common/aarch64/platform_mp_stack.S \
Dan Handleyea451572014-05-15 14:53:30 +0100101 plat/fvp/bl31_fvp_setup.c \
Dan Handleyea451572014-05-15 14:53:30 +0100102 plat/fvp/fvp_pm.c \
Vikram Kanigiricf79bf52014-06-02 14:59:00 +0100103 plat/fvp/fvp_security.c \
Dan Handleyea451572014-05-15 14:53:30 +0100104 plat/fvp/fvp_topology.c \
105 plat/fvp/aarch64/fvp_helpers.S \
106 plat/fvp/aarch64/fvp_common.c \
Dan Handley176e7b42014-04-15 18:20:09 +0100107 plat/fvp/drivers/pwrc/fvp_pwrc.c