Ryan Harkin | 25cff83 | 2014-01-13 12:37:03 +0000 | [diff] [blame] | 1 | # |
| 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 Bailleux | e701e30 | 2014-05-20 17:28:25 +0100 | [diff] [blame] | 31 | # On FVP, the TSP can execute either from Trusted SRAM or Trusted DRAM. |
| 32 | # Trusted SRAM is the default. |
Juan Castillo | 0c70c57 | 2014-08-12 13:04:43 +0100 | [diff] [blame] | 33 | FVP_TSP_RAM_LOCATION := tsram |
| 34 | ifeq (${FVP_TSP_RAM_LOCATION}, tsram) |
Juan Castillo | e33ee5f | 2014-12-19 09:51:00 +0000 | [diff] [blame] | 35 | FVP_TSP_RAM_LOCATION_ID := FVP_TRUSTED_SRAM_ID |
Juan Castillo | 0c70c57 | 2014-08-12 13:04:43 +0100 | [diff] [blame] | 36 | else ifeq (${FVP_TSP_RAM_LOCATION}, tdram) |
Juan Castillo | e33ee5f | 2014-12-19 09:51:00 +0000 | [diff] [blame] | 37 | FVP_TSP_RAM_LOCATION_ID := FVP_TRUSTED_DRAM_ID |
| 38 | else ifeq (${FVP_TSP_RAM_LOCATION}, dram) |
| 39 | FVP_TSP_RAM_LOCATION_ID := FVP_DRAM_ID |
Sandrine Bailleux | e701e30 | 2014-05-20 17:28:25 +0100 | [diff] [blame] | 40 | else |
Juan Castillo | 0c70c57 | 2014-08-12 13:04:43 +0100 | [diff] [blame] | 41 | $(error "Unsupported FVP_TSP_RAM_LOCATION value") |
Sandrine Bailleux | e701e30 | 2014-05-20 17:28:25 +0100 | [diff] [blame] | 42 | endif |
| 43 | |
Juan Castillo | 0c70c57 | 2014-08-12 13:04:43 +0100 | [diff] [blame] | 44 | # Process flags |
| 45 | $(eval $(call add_define,FVP_TSP_RAM_LOCATION_ID)) |
Sandrine Bailleux | e701e30 | 2014-05-20 17:28:25 +0100 | [diff] [blame] | 46 | |
Soby Mathew | 5e5c207 | 2014-04-07 15:28:55 +0100 | [diff] [blame] | 47 | PLAT_INCLUDES := -Iplat/fvp/include/ |
Ryan Harkin | 25cff83 | 2014-01-13 12:37:03 +0000 | [diff] [blame] | 48 | |
Soby Mathew | c389d77 | 2014-06-24 12:28:41 +0100 | [diff] [blame] | 49 | PLAT_BL_COMMON_SOURCES := drivers/arm/pl011/pl011_console.S \ |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 50 | drivers/io/io_fip.c \ |
| 51 | drivers/io/io_memmap.c \ |
| 52 | drivers/io/io_semihosting.c \ |
Dan Handley | 7b83c44 | 2014-08-12 14:20:28 +0100 | [diff] [blame] | 53 | drivers/io/io_storage.c \ |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 54 | lib/aarch64/xlat_tables.c \ |
| 55 | lib/semihosting/semihosting.c \ |
| 56 | lib/semihosting/aarch64/semihosting_call.S \ |
Dan Handley | b226a4d | 2014-05-16 14:08:45 +0100 | [diff] [blame] | 57 | plat/common/aarch64/plat_common.c \ |
Dan Handley | ea45157 | 2014-05-15 14:53:30 +0100 | [diff] [blame] | 58 | plat/fvp/fvp_io_storage.c |
Ryan Harkin | 25cff83 | 2014-01-13 12:37:03 +0000 | [diff] [blame] | 59 | |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 60 | BL1_SOURCES += drivers/arm/cci400/cci400.c \ |
Soby Mathew | c704cbc | 2014-08-14 11:33:56 +0100 | [diff] [blame] | 61 | lib/cpus/aarch64/aem_generic.S \ |
| 62 | lib/cpus/aarch64/cortex_a53.S \ |
| 63 | lib/cpus/aarch64/cortex_a57.S \ |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 64 | plat/common/aarch64/platform_up_stack.S \ |
Dan Handley | ea45157 | 2014-05-15 14:53:30 +0100 | [diff] [blame] | 65 | plat/fvp/bl1_fvp_setup.c \ |
| 66 | plat/fvp/aarch64/fvp_common.c \ |
| 67 | plat/fvp/aarch64/fvp_helpers.S |
Ryan Harkin | 25cff83 | 2014-01-13 12:37:03 +0000 | [diff] [blame] | 68 | |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 69 | BL2_SOURCES += drivers/arm/tzc400/tzc400.c \ |
| 70 | plat/common/aarch64/platform_up_stack.S \ |
Dan Handley | ea45157 | 2014-05-15 14:53:30 +0100 | [diff] [blame] | 71 | plat/fvp/bl2_fvp_setup.c \ |
| 72 | plat/fvp/fvp_security.c \ |
| 73 | plat/fvp/aarch64/fvp_common.c |
Ryan Harkin | 25cff83 | 2014-01-13 12:37:03 +0000 | [diff] [blame] | 74 | |
Vikram Kanigiri | cf79bf5 | 2014-06-02 14:59:00 +0100 | [diff] [blame] | 75 | BL31_SOURCES += drivers/arm/cci400/cci400.c \ |
Dan Handley | fb42b12 | 2014-06-20 09:43:15 +0100 | [diff] [blame] | 76 | drivers/arm/gic/arm_gic.c \ |
Vikram Kanigiri | cf79bf5 | 2014-06-02 14:59:00 +0100 | [diff] [blame] | 77 | drivers/arm/gic/gic_v2.c \ |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 78 | drivers/arm/gic/gic_v3.c \ |
Vikram Kanigiri | cf79bf5 | 2014-06-02 14:59:00 +0100 | [diff] [blame] | 79 | drivers/arm/tzc400/tzc400.c \ |
Soby Mathew | c704cbc | 2014-08-14 11:33:56 +0100 | [diff] [blame] | 80 | lib/cpus/aarch64/aem_generic.S \ |
| 81 | lib/cpus/aarch64/cortex_a53.S \ |
| 82 | lib/cpus/aarch64/cortex_a57.S \ |
Dan Handley | fb42b12 | 2014-06-20 09:43:15 +0100 | [diff] [blame] | 83 | plat/common/plat_gic.c \ |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 84 | plat/common/aarch64/platform_mp_stack.S \ |
Dan Handley | ea45157 | 2014-05-15 14:53:30 +0100 | [diff] [blame] | 85 | plat/fvp/bl31_fvp_setup.c \ |
Dan Handley | ea45157 | 2014-05-15 14:53:30 +0100 | [diff] [blame] | 86 | plat/fvp/fvp_pm.c \ |
Vikram Kanigiri | cf79bf5 | 2014-06-02 14:59:00 +0100 | [diff] [blame] | 87 | plat/fvp/fvp_security.c \ |
Dan Handley | ea45157 | 2014-05-15 14:53:30 +0100 | [diff] [blame] | 88 | plat/fvp/fvp_topology.c \ |
| 89 | plat/fvp/aarch64/fvp_helpers.S \ |
| 90 | plat/fvp/aarch64/fvp_common.c \ |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 91 | plat/fvp/drivers/pwrc/fvp_pwrc.c |