Skip to content

Commit 4f898a9

Browse files
nandojved3zd3z
authored andcommitted
platform: stm32h5xx: Move provision files
The provision files are board dependent but are defined inside common CMakeLists.txt. This means that the current behaviour do not allow customize this values for Out of Tree buildings. This moves the definition to the board CMakeLists.txt to solve the issue. Change-Id: I593c070f5fe9280c14c344aa49c89230383033dd Signed-off-by: BUDKE Gerson Fernando <[email protected]> (cherry picked from commit 62c51f68482511f13c5dc3c02d86f75d3c813ecb)
1 parent bb5b802 commit 4f898a9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

platform/ext/target/stm/common/stm32h5xx/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,6 @@ if(BL2)
152152
${CMAKE_CURRENT_SOURCE_DIR}/hal/Src/stm32h5xx_hal_rtc_ex.c
153153
${CMAKE_CURRENT_SOURCE_DIR}/hal/Src/stm32h5xx_hal_icache.c
154154
${STM_COMMON_DIR}/hal/Native_Driver/low_level_rng.c
155-
${STM_COMMON_DIR}/hal/provision/otp_provision.c
156-
${STM_COMMON_DIR}/hal/provision/nvm_init.c
157-
${STM_COMMON_DIR}/hal/provision/nvmcnt_init.c
158155
)
159156

160157
target_compile_options(platform_bl2

platform/ext/target/stm/stm32h573i_dk/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ if(BL2)
3131
target_sources(bl2
3232
PRIVATE
3333
${STM_COMMON_DIR}/stm32h5xx/Device/Source/startup_stm32h5xx_bl2.c
34+
${STM_COMMON_DIR}/hal/provision/otp_provision.c
35+
${STM_COMMON_DIR}/hal/provision/nvm_init.c
36+
${STM_COMMON_DIR}/hal/provision/nvmcnt_init.c
3437
)
3538
endif()
3639

0 commit comments

Comments
 (0)