mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-08 05:43:53 +00:00
feat(st): use dedicated version of DT for SP_MIN
If an STM32MP15 board is compiled for SP_MIN, and a specific DT file ending with "-sp_min.dts" exist, then this file will be used to generate BL2 and BL32 DT. Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Ief6fb4fcf302d07f958a0e2764b149759127f21f
This commit is contained in:
parent
bac623d186
commit
71ba1647e0
2 changed files with 9 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023-2024, STMicroelectronics - All Rights Reserved
|
# Copyright (c) 2023-2025, STMicroelectronics - All Rights Reserved
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
#
|
#
|
||||||
|
@ -41,7 +41,7 @@ check_dtc_version:
|
||||||
|
|
||||||
# Create DTB file for BL2
|
# Create DTB file for BL2
|
||||||
${BUILD_PLAT}/fdts/%-bl2.dts: fdts/%.dts fdts/${BL2_DTSI} | $$(@D)/
|
${BUILD_PLAT}/fdts/%-bl2.dts: fdts/%.dts fdts/${BL2_DTSI} | $$(@D)/
|
||||||
$(q)echo '#include "$(patsubst fdts/%,%,$<)"' > $@
|
$(q)echo '#include "$(patsubst %.dts,%$(SP_EXT).dts,$(patsubst fdts/%,%,$<))"' > $@
|
||||||
$(q)echo '#include "${BL2_DTSI}"' >> $@
|
$(q)echo '#include "${BL2_DTSI}"' >> $@
|
||||||
|
|
||||||
${BUILD_PLAT}/fdts/%-bl2.dtb: ${BUILD_PLAT}/fdts/%-bl2.dts
|
${BUILD_PLAT}/fdts/%-bl2.dtb: ${BUILD_PLAT}/fdts/%-bl2.dts
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015-2024, Arm Limited and Contributors. All rights reserved.
|
# Copyright (c) 2015-2025, Arm Limited and Contributors. All rights reserved.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
#
|
#
|
||||||
|
@ -105,6 +105,11 @@ FDT_SOURCES := $(addprefix ${BUILD_PLAT}/fdts/, $(patsubst %.dtb,%-bl2.dts,$(DT
|
||||||
ifeq ($(AARCH32_SP),sp_min)
|
ifeq ($(AARCH32_SP),sp_min)
|
||||||
BL32_DTSI := stm32mp15-bl32.dtsi
|
BL32_DTSI := stm32mp15-bl32.dtsi
|
||||||
FDT_SOURCES += $(addprefix ${BUILD_PLAT}/fdts/, $(patsubst %.dtb,%-bl32.dts,$(DTB_FILE_NAME)))
|
FDT_SOURCES += $(addprefix ${BUILD_PLAT}/fdts/, $(patsubst %.dtb,%-bl32.dts,$(DTB_FILE_NAME)))
|
||||||
|
ifneq (,$(wildcard $(patsubst %.dtb,fdts/%-sp_min.dts,$(DTB_FILE_NAME))))
|
||||||
|
ifeq (,$(findstring -sp_min,$(DTB_FILE_NAME)))
|
||||||
|
SP_EXT := -sp_min
|
||||||
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -258,7 +263,7 @@ BL2_SOURCES += plat/st/stm32mp1/plat_ddr.c
|
||||||
ifeq ($(AARCH32_SP),sp_min)
|
ifeq ($(AARCH32_SP),sp_min)
|
||||||
# Create DTB file for BL32
|
# Create DTB file for BL32
|
||||||
${BUILD_PLAT}/fdts/%-bl32.dts: fdts/%.dts fdts/${BL32_DTSI} | $$(@D)/
|
${BUILD_PLAT}/fdts/%-bl32.dts: fdts/%.dts fdts/${BL32_DTSI} | $$(@D)/
|
||||||
$(q)echo '#include "$(patsubst fdts/%,%,$<)"' > $@
|
$(q)echo '#include "$(patsubst %.dts,%$(SP_EXT).dts,$(patsubst fdts/%,%,$<))"' > $@
|
||||||
$(q)echo '#include "${BL32_DTSI}"' >> $@
|
$(q)echo '#include "${BL32_DTSI}"' >> $@
|
||||||
|
|
||||||
${BUILD_PLAT}/fdts/%-bl32.dtb: ${BUILD_PLAT}/fdts/%-bl32.dts | $$(@D)/
|
${BUILD_PLAT}/fdts/%-bl32.dtb: ${BUILD_PLAT}/fdts/%-bl32.dts | $$(@D)/
|
||||||
|
|
Loading…
Add table
Reference in a new issue