Yann Gautier | 9d135e4 | 2018-07-16 19:36:06 +0200 | [diff] [blame] | 1 | # |
Yann Gautier | 2bbf171 | 2019-08-06 17:28:23 +0200 | [diff] [blame] | 2 | # Copyright (c) 2017-2023, ARM Limited and Contributors. All rights reserved. |
Yann Gautier | 9d135e4 | 2018-07-16 19:36:06 +0200 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
Sebastien Pasdeloup | 94389ef | 2020-12-18 11:50:40 +0100 | [diff] [blame] | 7 | ifeq ($(STM32MP13),1) |
| 8 | $(error "SP_min is not supported on STM32MP13 platform") |
| 9 | endif |
| 10 | |
Yann Gautier | 9d135e4 | 2018-07-16 19:36:06 +0200 | [diff] [blame] | 11 | SP_MIN_WITH_SECURE_FIQ := 1 |
| 12 | |
Yann Gautier | 5bda08b | 2022-02-09 14:03:35 +0100 | [diff] [blame] | 13 | override ENABLE_PIE := 1 |
| 14 | BL32_CFLAGS += -fpie -DENABLE_PIE |
| 15 | BL32_LDFLAGS += $(PIE_LDFLAGS) |
Yann Gautier | 5bda08b | 2022-02-09 14:03:35 +0100 | [diff] [blame] | 16 | |
Etienne Carriere | 7ad2c01 | 2019-12-08 08:14:03 +0100 | [diff] [blame] | 17 | BL32_CFLAGS += -DSTM32MP_SHARED_RESOURCES |
| 18 | |
Etienne Carriere | e96162e | 2020-04-10 11:32:54 +0200 | [diff] [blame] | 19 | BL32_SOURCES += drivers/st/etzpc/etzpc.c \ |
| 20 | plat/common/aarch32/platform_mp_stack.S \ |
Yann Gautier | 9d135e4 | 2018-07-16 19:36:06 +0200 | [diff] [blame] | 21 | plat/st/stm32mp1/sp_min/sp_min_setup.c \ |
| 22 | plat/st/stm32mp1/stm32mp1_pm.c \ |
Etienne Carriere | 7ad2c01 | 2019-12-08 08:14:03 +0100 | [diff] [blame] | 23 | plat/st/stm32mp1/stm32mp1_shared_resources.c \ |
Yann Gautier | 9d135e4 | 2018-07-16 19:36:06 +0200 | [diff] [blame] | 24 | plat/st/stm32mp1/stm32mp1_topology.c |
Etienne Carriere | e96162e | 2020-04-10 11:32:54 +0200 | [diff] [blame] | 25 | |
Yann Gautier | 0dc9231 | 2021-10-29 17:04:17 +0200 | [diff] [blame] | 26 | # FDT wrappers |
| 27 | include common/fdt_wrappers.mk |
| 28 | BL32_SOURCES += ${FDT_WRAPPERS_SOURCES} |
| 29 | |
Yann Gautier | 9d135e4 | 2018-07-16 19:36:06 +0200 | [diff] [blame] | 30 | # Generic GIC v2 |
Yann Gautier | d501810 | 2020-08-07 09:48:30 +0200 | [diff] [blame] | 31 | include drivers/arm/gic/v2/gicv2.mk |
| 32 | |
| 33 | BL32_SOURCES += ${GICV2_SOURCES} \ |
Yann Gautier | 9d135e4 | 2018-07-16 19:36:06 +0200 | [diff] [blame] | 34 | plat/common/plat_gicv2.c \ |
Yann Gautier | 2bbf171 | 2019-08-06 17:28:23 +0200 | [diff] [blame] | 35 | plat/st/common/stm32mp_gic.c |
Yann Gautier | 9d135e4 | 2018-07-16 19:36:06 +0200 | [diff] [blame] | 36 | |
| 37 | # Generic PSCI |
| 38 | BL32_SOURCES += plat/common/plat_psci_common.c |
Yann Gautier | 05be8d8 | 2019-01-17 14:51:25 +0100 | [diff] [blame] | 39 | |
Etienne Carriere | 34f0e93 | 2020-07-16 17:36:18 +0200 | [diff] [blame] | 40 | # SCMI server drivers |
Peng Fan | 8053e07 | 2021-01-20 11:04:08 +0800 | [diff] [blame] | 41 | BL32_SOURCES += drivers/scmi-msg/base.c \ |
| 42 | drivers/scmi-msg/clock.c \ |
| 43 | drivers/scmi-msg/entry.c \ |
| 44 | drivers/scmi-msg/reset_domain.c \ |
| 45 | drivers/scmi-msg/smt.c |
Etienne Carriere | 34f0e93 | 2020-07-16 17:36:18 +0200 | [diff] [blame] | 46 | |
Yann Gautier | 05be8d8 | 2019-01-17 14:51:25 +0100 | [diff] [blame] | 47 | # stm32mp1 specific services |
Yann Gautier | 52448ab | 2019-01-17 14:53:24 +0100 | [diff] [blame] | 48 | BL32_SOURCES += plat/st/stm32mp1/services/bsec_svc.c \ |
Etienne Carriere | 34f0e93 | 2020-07-16 17:36:18 +0200 | [diff] [blame] | 49 | plat/st/stm32mp1/services/stm32mp1_svc_setup.c \ |
| 50 | plat/st/stm32mp1/stm32mp1_scmi.c |
Etienne Carriere | 196c2ac | 2020-06-23 09:26:15 +0200 | [diff] [blame] | 51 | |
| 52 | # Arm Archtecture services |
| 53 | BL32_SOURCES += services/arm_arch_svc/arm_arch_svc_setup.c |