Skip to content

Commit ed9a0bf

Browse files
Vge0rgeSebastianBoe
authored andcommitted
crypto: Fix oberon path when FPU is enabled
-This fixes a build issue when CONFIG_FPU is enabled with TF-M builds. Ref: NCSDK-10877 Signed-off-by: Georgios Vasilakis <[email protected]>
1 parent 1ac26d0 commit ed9a0bf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crypto/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ nrfxlib_calculate_lib_path(lib_path)
1111
add_library(nrfxlib_crypto INTERFACE)
1212

1313
if (CONFIG_NRF_OBERON OR CONFIG_BUILD_WITH_TFM)
14+
15+
# The oberon library doesn't have a softfp version so we replace its path with the soft-float one
16+
if (CONFIG_FP_SOFTABI)
17+
string(REGEX REPLACE "softfp-float" "soft-float" lib_path ${lib_path})
18+
endif()
19+
1420
set(OBERON_BASE ${CMAKE_CURRENT_SOURCE_DIR}/nrf_oberon)
1521
set(OBERON_VER 3.0.8)
1622
set(OBERON_LIB ${OBERON_BASE}/${lib_path}/liboberon_${OBERON_VER}.a)

0 commit comments

Comments
 (0)