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

Conversation

maciejbaczmanski
Copy link
Member

@maciejbaczmanski maciejbaczmanski commented Aug 8, 2024

Add soft float fallback to enable building from libs with softfp ABI enabled.

Code built with soft and softfp float-abi options can be linked together as they both use the same soft-float ABI and generate functions to pass floating-point arguments to integer registers. This is contrary to the hard option where floating-point arguments are passed directly to FPU registers. softfp additionally allows using hardware floating-point instructions instead of emulated ones.

openthread/cmake/extensions.cmake Outdated Show resolved Hide resolved
Add soft float fallback to enable building from libs with softfp
ABI enabled.

Code built with `soft` and `softfp` `float-abi` options
can be linked together as they both use the same soft-float ABI
and generate functions to pass floating-point arguments
to integer registers.
This is contrary to the `hard` option where floating-point arguments
are passed directly to FPU registers.
`softfp` additionally allows using hardware floating-point
instructions instead of emulated ones.

Signed-off-by: Maciej Baczmanski <[email protected]>
@nordicjm nordicjm merged commit 3eb9429 into nrfconnect:main Aug 9, 2024
4 checks passed
@maciejbaczmanski maciejbaczmanski deleted the ot_lib_cmake_fix branch August 9, 2024 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants