Skip to content

Commit bb5b802

Browse files
nandojved3zd3z
authored andcommitted
platform: stm32u5xx: 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: I6654fa7f61a3f7f33e65ac9b979e9224e009e8e9 Signed-off-by: BUDKE Gerson Fernando <[email protected]> (cherry picked from commit 845319f646659104524c840e76e398150f60ed60)
1 parent 8d461b2 commit bb5b802

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ if(BL2)
7272
${STM_COMMON_DIR}/stm32u5xx/bl2/low_level_ospi_device.c
7373
${STM_COMMON_DIR}/hal/CMSIS_Driver/low_level_ospi_flash.c
7474
${STM_COMMON_DIR}/hal/Components/mx25lm51245g/mx25lm51245g.c
75+
${STM_COMMON_DIR}/hal/provision/otp_provision.c
76+
${STM_COMMON_DIR}/hal/provision/nvm_init.c
77+
${STM_COMMON_DIR}/hal/provision/nvmcnt_init.c
7578
${B_U585I_IOT02A_DIR}/src/b_u585i_iot02a_ospi.c
7679
)
7780
endif()

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,7 @@ if(BL2)
220220
${CMAKE_CURRENT_SOURCE_DIR}/hal/Src/stm32u5xx_hal_ospi.c
221221
${CMAKE_CURRENT_SOURCE_DIR}/hal/Src/stm32u5xx_ll_dlyb.c
222222
${STM_COMMON_DIR}/hal/Native_Driver/low_level_rng.c
223-
${STM_COMMON_DIR}/hal/provision/otp_provision.c
224223
${STM_COMMON_DIR}/hal/Native_Driver/nv_counters.c
225-
${STM_COMMON_DIR}/hal/provision/nvm_init.c
226-
${STM_COMMON_DIR}/hal/provision/nvmcnt_init.c
227224
)
228225

229226
target_compile_options(platform_bl2

0 commit comments

Comments
 (0)