Jens Wiklander | 52c798e | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 1 | # |
dp-arm | 230011c | 2017-03-07 11:02:47 +0000 | [diff] [blame] | 2 | # Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved. |
Jens Wiklander | 52c798e | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 3 | # |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | # SPDX-License-Identifier: BSD-3-Clause |
Jens Wiklander | 52c798e | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | include lib/libfdt/libfdt.mk |
| 8 | |
| 9 | PLAT_INCLUDES := -Iinclude/plat/arm/common/ \ |
| 10 | -Iinclude/plat/arm/common/aarch64/ \ |
| 11 | -Iplat/qemu/include \ |
| 12 | -Iinclude/common/tbbr |
| 13 | |
| 14 | |
| 15 | PLAT_BL_COMMON_SOURCES := plat/qemu/qemu_common.c \ |
Soby Mathew | 1723113 | 2016-08-08 12:33:06 +0100 | [diff] [blame] | 16 | drivers/arm/pl011/aarch64/pl011_console.S \ |
Jens Wiklander | 52c798e | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 17 | lib/xlat_tables/xlat_tables_common.c \ |
| 18 | lib/xlat_tables/aarch64/xlat_tables.c |
| 19 | |
| 20 | BL1_SOURCES += drivers/io/io_semihosting.c \ |
| 21 | drivers/io/io_storage.c \ |
| 22 | drivers/io/io_fip.c \ |
| 23 | drivers/io/io_memmap.c \ |
| 24 | lib/semihosting/semihosting.c \ |
| 25 | lib/semihosting/aarch64/semihosting_call.S \ |
| 26 | plat/qemu/qemu_io_storage.c \ |
| 27 | lib/cpus/aarch64/aem_generic.S \ |
| 28 | lib/cpus/aarch64/cortex_a53.S \ |
| 29 | lib/cpus/aarch64/cortex_a57.S \ |
Jens Wiklander | 52c798e | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 30 | plat/qemu/aarch64/plat_helpers.S \ |
| 31 | plat/qemu/qemu_bl1_setup.c |
| 32 | |
| 33 | BL2_SOURCES += drivers/io/io_semihosting.c \ |
| 34 | drivers/io/io_storage.c \ |
| 35 | drivers/io/io_fip.c \ |
| 36 | drivers/io/io_memmap.c \ |
Jens Wiklander | 52c798e | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 37 | lib/semihosting/semihosting.c \ |
| 38 | lib/semihosting/aarch64/semihosting_call.S\ |
| 39 | plat/qemu/qemu_io_storage.c \ |
| 40 | plat/qemu/aarch64/plat_helpers.S \ |
| 41 | plat/qemu/qemu_bl2_setup.c \ |
| 42 | plat/qemu/dt.c \ |
| 43 | $(LIBFDT_SRCS) |
| 44 | |
| 45 | BL31_SOURCES += lib/cpus/aarch64/aem_generic.S \ |
| 46 | lib/cpus/aarch64/cortex_a53.S \ |
| 47 | lib/cpus/aarch64/cortex_a57.S \ |
| 48 | drivers/arm/gic/v2/gicv2_helpers.c \ |
| 49 | drivers/arm/gic/v2/gicv2_main.c \ |
| 50 | drivers/arm/gic/common/gic_common.c \ |
Jens Wiklander | 52c798e | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 51 | plat/common/aarch64/plat_psci_common.c \ |
Jens Wiklander | 52c798e | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 52 | plat/qemu/qemu_pm.c \ |
| 53 | plat/qemu/topology.c \ |
| 54 | plat/qemu/aarch64/plat_helpers.S \ |
| 55 | plat/qemu/qemu_bl31_setup.c \ |
| 56 | plat/qemu/qemu_gic.c |
| 57 | |
| 58 | # Disable the PSCI platform compatibility layer |
| 59 | ENABLE_PLAT_COMPAT := 0 |
| 60 | |
| 61 | BL32_RAM_LOCATION := tdram |
| 62 | ifeq (${BL32_RAM_LOCATION}, tsram) |
| 63 | BL32_RAM_LOCATION_ID = SEC_SRAM_ID |
| 64 | else ifeq (${BL32_RAM_LOCATION}, tdram) |
| 65 | BL32_RAM_LOCATION_ID = SEC_DRAM_ID |
| 66 | else |
| 67 | $(error "Unsupported BL32_RAM_LOCATION value") |
| 68 | endif |
| 69 | |
| 70 | # Process flags |
| 71 | $(eval $(call add_define,BL32_RAM_LOCATION_ID)) |