Skip to content

Commit

Permalink
openthread: add soft float fallback for lib path calculation
Browse files Browse the repository at this point in the history
Add soft float fallback to enable building from libs with softfp
ABI enabled.

Signed-off-by: Maciej Baczmanski <[email protected]>
  • Loading branch information
maciejbaczmanski committed Aug 8, 2024
1 parent d7d06de commit 1ec9df8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions openthread/cmake/extensions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
# The Build the path of the library taking in nrf_security backend type,
# OpenThread version and feature set
function(openthread_calculate_lib_path ot_version lib_path)
if(CONFIG_OPENTHREAD_NORDIC_LIBRARY_MASTER)
set(OPENTHREAD_LIB_BASE_DIR "${ZEPHYR_NRFXLIB_MODULE_DIR}/openthread")

if(CONFIG_OPENTHREAD_NORDIC_LIBRARY_MASTER)
set(ot_feature_set "master")
elseif(CONFIG_OPENTHREAD_NORDIC_LIBRARY_FTD)
set(ot_feature_set "ftd")
Expand All @@ -19,14 +21,15 @@ function(openthread_calculate_lib_path ot_version lib_path)
set(ot_feature_set "custom")
endif()

nrfxlib_calculate_lib_path(nrfxlib_path)
nrfxlib_calculate_lib_path(nrfxlib_path BASE_DIR ${OPENTHREAD_LIB_BASE_DIR} SOFT_FLOAT_FALLBACK)

if(CONFIG_OPENTHREAD_COPROCESSOR_RCP)
set(${lib_path}
"${ZEPHYR_NRFXLIB_MODULE_DIR}/openthread/${nrfxlib_path}/${ot_version}/rcp"
"${nrfxlib_path}/${ot_version}/rcp"
PARENT_SCOPE)
else()
set(${lib_path}
"${ZEPHYR_NRFXLIB_MODULE_DIR}/openthread/${nrfxlib_path}/${ot_version}/${ot_feature_set}/${nrf_security_backend}"
"${nrfxlib_path}/${ot_version}/${ot_feature_set}/${nrf_security_backend}"
PARENT_SCOPE)
endif()

Expand Down

0 comments on commit 1ec9df8

Please sign in to comment.