sp_min-stm32mp1.mk 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # Copyright (c) 2017-2023, ARM Limited and Contributors. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. ifeq ($(STM32MP13),1)
  7. $(error "SP_min is not supported on STM32MP13 platform")
  8. endif
  9. SP_MIN_WITH_SECURE_FIQ := 1
  10. override ENABLE_PIE := 1
  11. BL32_CFLAGS += -fpie -DENABLE_PIE
  12. BL32_LDFLAGS += $(PIE_LDFLAGS)
  13. BL32_CFLAGS += -DSTM32MP_SHARED_RESOURCES
  14. BL32_SOURCES += drivers/st/etzpc/etzpc.c \
  15. plat/common/aarch32/platform_mp_stack.S \
  16. plat/st/stm32mp1/sp_min/sp_min_setup.c \
  17. plat/st/stm32mp1/stm32mp1_pm.c \
  18. plat/st/stm32mp1/stm32mp1_shared_resources.c \
  19. plat/st/stm32mp1/stm32mp1_topology.c
  20. # FDT wrappers
  21. include common/fdt_wrappers.mk
  22. BL32_SOURCES += ${FDT_WRAPPERS_SOURCES}
  23. # Generic GIC v2
  24. include drivers/arm/gic/v2/gicv2.mk
  25. BL32_SOURCES += ${GICV2_SOURCES} \
  26. plat/common/plat_gicv2.c \
  27. plat/st/common/stm32mp_gic.c
  28. # Generic PSCI
  29. BL32_SOURCES += plat/common/plat_psci_common.c
  30. # SCMI server drivers
  31. BL32_SOURCES += drivers/scmi-msg/base.c \
  32. drivers/scmi-msg/clock.c \
  33. drivers/scmi-msg/entry.c \
  34. drivers/scmi-msg/reset_domain.c \
  35. drivers/scmi-msg/smt.c
  36. # stm32mp1 specific services
  37. BL32_SOURCES += plat/st/stm32mp1/services/bsec_svc.c \
  38. plat/st/stm32mp1/services/stm32mp1_svc_setup.c \
  39. plat/st/stm32mp1/stm32mp1_scmi.c