Debian Codegraph @

plat/qemu/qemu_sbsa/platform.mk

raw symbols SCIP
1 #
2 # Copyright (c) 2019-2023, Linaro Limited and Contributors. All rights reserved.
3 #
4 # SPDX-License-Identifier: BSD-3-Clause
5 #
6
7 PLAT_QEMU_PATH := plat/qemu/qemu_sbsa
8 PLAT_QEMU_COMMON_PATH := plat/qemu/common
9
10 CRASH_REPORTING := 1
11
12 # Disable the PSCI platform compatibility layer
13 ENABLE_PLAT_COMPAT := 0
14
15 SEPARATE_CODE_AND_RODATA := 1
16 ENABLE_STACK_PROTECTOR := 0
17
18 ifeq (${SPM_MM},1)
19 NEED_BL32 := yes
20 EL3_EXCEPTION_HANDLING := 1
21 endif
22
23 include plat/qemu/common/common.mk
24
25 # Enable new version of image loading on QEMU platforms
26 LOAD_IMAGE_V2 := 1
27
28 ifeq ($(NEED_BL32),yes)
29 $(eval $(call add_define,QEMU_LOAD_BL32))
30 endif
31
32 BL2_SOURCES += $(LIBFDT_SRCS)
33
34 # Include GICv3 driver files
35 include drivers/arm/gic/v3/gicv3.mk
36
37 QEMU_GIC_SOURCES := ${GICV3_SOURCES} \
38 plat/common/plat_gicv3.c
39
40 BL31_SOURCES += ${PLAT_QEMU_PATH}/sbsa_gic.c \
41 ${PLAT_QEMU_PATH}/sbsa_pm.c \
42 ${PLAT_QEMU_PATH}/sbsa_sip_svc.c \
43 ${PLAT_QEMU_PATH}/sbsa_topology.c
44
45 BL31_SOURCES += ${FDT_WRAPPERS_SOURCES}
46
47 ifeq (${SPM_MM},1)
48 BL31_SOURCES += ${PLAT_QEMU_COMMON_PATH}/qemu_spm.c
49 endif
50
51 # Use known base for UEFI if not given from command line
52 # By default BL33 is at FLASH1 base
53 PRELOADED_BL33_BASE ?= 0x10000000
54
55 # Qemu SBSA plafrom only support SEC_SRAM
56 BL32_RAM_LOCATION_ID = SEC_SRAM_ID
57 $(eval $(call add_define,BL32_RAM_LOCATION_ID))
58
59 # Don't have the Linux kernel as a BL33 image by default
60 ARM_LINUX_KERNEL_AS_BL33 := 0
61 $(eval $(call assert_boolean,ARM_LINUX_KERNEL_AS_BL33))
62 $(eval $(call add_define,ARM_LINUX_KERNEL_AS_BL33))
63
64 ARM_PRELOADED_DTB_BASE := PLAT_QEMU_DT_BASE
65 $(eval $(call add_define,ARM_PRELOADED_DTB_BASE))