| 1 |
|
| 2 |
|
| 3 |
om> |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
include lib/xlat_tables_v2/xlat_tables.mk |
| 9 |
|
| 10 |
include drivers/arm/gic/v2/gicv2.mk |
| 11 |
|
| 12 |
PLAT_INCLUDES := -Iplat/rpi/common/include \ |
| 13 |
-Iplat/rpi/rpi5/include |
| 14 |
|
| 15 |
PLAT_BL_COMMON_SOURCES := drivers/arm/pl011/aarch64/pl011_console.S \ |
| 16 |
plat/rpi/common/rpi3_common.c \ |
| 17 |
plat/rpi/common/rpi3_console_pl011.c \ |
| 18 |
${XLAT_TABLES_LIB_SRCS} |
| 19 |
|
| 20 |
BL31_SOURCES += lib/cpus/aarch64/cortex_a76.S \ |
| 21 |
plat/rpi/common/aarch64/plat_helpers.S \ |
| 22 |
plat/rpi/common/aarch64/armstub8_header.S \ |
| 23 |
drivers/delay_timer/delay_timer.c \ |
| 24 |
plat/common/plat_gicv2.c \ |
| 25 |
plat/rpi/common/rpi4_bl31_setup.c \ |
| 26 |
plat/rpi/rpi5/rpi5_setup.c \ |
| 27 |
plat/rpi/common/rpi3_pm.c \ |
| 28 |
plat/common/plat_psci_common.c \ |
| 29 |
plat/rpi/common/rpi3_topology.c \ |
| 30 |
${GICV2_SOURCES} |
| 31 |
|
| 32 |
|
| 33 |
RESET_TO_BL31 := 1 |
| 34 |
|
| 35 |
|
| 36 |
COLD_BOOT_SINGLE_CPU := 0 |
| 37 |
|
| 38 |
|
| 39 |
ifeq ($(notdir $(CC)),armclang) |
| 40 |
TF_CFLAGS_aarch64 += -mcpu=cortex-a76 |
| 41 |
else ifneq ($(findstring clang,$(notdir $(CC))),) |
| 42 |
TF_CFLAGS_aarch64 += -mcpu=cortex-a76 |
| 43 |
else |
| 44 |
TF_CFLAGS_aarch64 += -mtune=cortex-a76 |
| 45 |
endif |
| 46 |
|
| 47 |
|
| 48 |
$(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT)) |
| 49 |
|
| 50 |
|
| 51 |
ERRATA_A76_1946160 := 1 |
| 52 |
ERRATA_A76_2743102 := 1 |
| 53 |
|
| 54 |
|
| 55 |
all: bl31 |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
ENABLE_STACK_PROTECTOR := 0 |
| 62 |
|
| 63 |
|
| 64 |
SEPARATE_CODE_AND_RODATA := 1 |
| 65 |
|
| 66 |
|
| 67 |
HW_ASSISTED_COHERENCY := 1 |
| 68 |
USE_COHERENT_MEM := 0 |
| 69 |
|
| 70 |
|
| 71 |
CTX_INCLUDE_AARCH32_REGS := 0 |
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
RPI3_DIRECT_LINUX_BOOT := 1 |
| 78 |
|
| 79 |
|
| 80 |
RPI3_BL33_IN_AARCH32 := 0 |
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
RPI3_RUNTIME_UART := 0 |
| 85 |
|
| 86 |
|
| 87 |
RPI3_USE_UEFI_MAP := 0 |
| 88 |
|
| 89 |
|
| 90 |
SMC_PCI_SUPPORT := 0 |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
$(eval $(call add_define,RPI3_BL33_IN_AARCH32)) |
| 96 |
$(eval $(call add_define,RPI3_DIRECT_LINUX_BOOT)) |
| 97 |
ifdef RPI3_PRELOADED_DTB_BASE |
| 98 |
$(eval $(call add_define,RPI3_PRELOADED_DTB_BASE)) |
| 99 |
endif |
| 100 |
$(eval $(call add_define,RPI3_RUNTIME_UART)) |
| 101 |
$(eval $(call add_define,RPI3_USE_UEFI_MAP)) |
| 102 |
$(eval $(call add_define,SMC_PCI_SUPPORT)) |
| 103 |
|
| 104 |
ifeq (${ARCH},aarch32) |
| 105 |
$(error Error: AArch32 not supported on rpi5) |
| 106 |
endif |
| 107 |
|
| 108 |
ifneq ($(ENABLE_STACK_PROTECTOR), 0) |
| 109 |
PLAT_BL_COMMON_SOURCES += drivers/rpi3/rng/rpi3_rng.c \ |
| 110 |
plat/rpi/common/rpi3_stack_protector.c |
| 111 |
endif |
| 112 |
|
| 113 |
ifeq ($(SMC_PCI_SUPPORT), 1) |
| 114 |
BL31_SOURCES += plat/rpi/common/rpi_pci_svc.c |
| 115 |
endif |