Skip to content

Commit 3e12b0c

Browse files
nandojved3zd3z
authored andcommitted
platform: stm32wbaxx: Move provision file
The otp_provision.c file is board dependent but is defined inside common CMakeLists.txt. This means that the current behaviour do not allow customize the value for Out of Tree building. This moves the definition to the board CMakeLists.txt to solve the issue. Change-Id: I8ed751c51c7e07182b620b5cfbe5af15a25cde9a Signed-off-by: BUDKE Gerson Fernando <[email protected]> (cherry picked from commit eb22a5b5fe3993d79e8217a737607cea9a1b044c)
1 parent 4f898a9 commit 3e12b0c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ target_sources(platform_s
6262
${CMAKE_CURRENT_SOURCE_DIR}/secure/low_level_device.c
6363
${STM_COMMON_DIR}/hal/CMSIS_Driver/low_level_flash.c
6464
${STM_COMMON_DIR}/hal/CMSIS_Driver/low_level_com.c
65-
${STM_COMMON_DIR}/hal/provision/otp_provision.c
6665
${CMAKE_CURRENT_SOURCE_DIR}/hal/Src/stm32wbaxx_hal.c
6766
${CMAKE_CURRENT_SOURCE_DIR}/hal/Src/stm32wbaxx_hal_flash.c
6867
${CMAKE_CURRENT_SOURCE_DIR}/hal/Src/stm32wbaxx_hal_flash_ex.c

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ target_sources(tfm_s
2323
${STM_COMMON_DIR}/stm32wbaxx/Device/Source/startup_stm32wbaxx_s.c
2424
)
2525

26+
target_sources(platform_s
27+
PRIVATE
28+
${STM_COMMON_DIR}/hal/provision/otp_provision.c
29+
)
30+
2631
if(NS)
2732
target_sources(${NS_TARGET_NAME}
2833
PRIVATE

0 commit comments

Comments
 (0)