blob: cf4f9ca740e27d1245edd02cfd457b9a0ce77e60 [file] [log] [blame]
Jens Wiklander52c798e2015-12-07 14:37:10 +01001#
dp-arm230011c2017-03-07 11:02:47 +00002# Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
Jens Wiklander52c798e2015-12-07 14:37:10 +01003#
dp-armfa3cf0b2017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Jens Wiklander52c798e2015-12-07 14:37:10 +01005#
6
7include lib/libfdt/libfdt.mk
8
9PLAT_INCLUDES := -Iinclude/plat/arm/common/ \
10 -Iinclude/plat/arm/common/aarch64/ \
11 -Iplat/qemu/include \
12 -Iinclude/common/tbbr
13
14
15PLAT_BL_COMMON_SOURCES := plat/qemu/qemu_common.c \
Soby Mathew17231132016-08-08 12:33:06 +010016 drivers/arm/pl011/aarch64/pl011_console.S \
Jens Wiklander52c798e2015-12-07 14:37:10 +010017 lib/xlat_tables/xlat_tables_common.c \
18 lib/xlat_tables/aarch64/xlat_tables.c
19
20BL1_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 Wiklander52c798e2015-12-07 14:37:10 +010030 plat/qemu/aarch64/plat_helpers.S \
31 plat/qemu/qemu_bl1_setup.c
32
33BL2_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 Wiklander52c798e2015-12-07 14:37:10 +010037 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
45BL31_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 Wiklander52c798e2015-12-07 14:37:10 +010051 plat/common/aarch64/plat_psci_common.c \
Jens Wiklander52c798e2015-12-07 14:37:10 +010052 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
59ENABLE_PLAT_COMPAT := 0
60
61BL32_RAM_LOCATION := tdram
62ifeq (${BL32_RAM_LOCATION}, tsram)
63 BL32_RAM_LOCATION_ID = SEC_SRAM_ID
64else ifeq (${BL32_RAM_LOCATION}, tdram)
65 BL32_RAM_LOCATION_ID = SEC_DRAM_ID
66else
67 $(error "Unsupported BL32_RAM_LOCATION value")
68endif
69
70# Process flags
71$(eval $(call add_define,BL32_RAM_LOCATION_ID))