Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openthread: add soft float fallback for lib path calculation #1428

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions openthread/cmake/extensions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# 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)
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)
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
Loading