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

mpsl: Use kconfig to determine library path #1302

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

hermabe
Copy link
Member

@hermabe hermabe commented Apr 19, 2024

Instead of using SOC and ARCH configs to determine the library paths, use mpsl-specific kconfigs. We will then be able to change the paths independently of which value various upstream configs have.

This also makes it simpler to use the same library for different socs, or different libraries for the same cpu core variant.

mpsl/Kconfig Outdated
help
Hidden helper option to calculate the library path

config MPSL_LIB_FLOAT_DIR
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe ?

Suggested change
config MPSL_LIB_FLOAT_DIR
config MPSL_LIB_FLOAT_ABI_DIR

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I am also not a fan of the naming of MPSL_LIB_DIR, but there is no real connection between the different values. It is a combination of soc, cortex variant, and a bsim hardcoded value that I dont think is used anywhere.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another option would be to move more of the logic found in https://github.com/nrfconnect/sdk-nrfxlib/blob/main/common.cmake#L30 to Kconfig and add the possibility to override it somewhere else. I'm not sure if that really solves what we are trying to solve

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic there is used by most (all?) of the libraries in nrfxlib. I think the other libraries can do something similar or same as this, but I didnt want to touch the other libraries for now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also dont know if we want to force the same paths to the libraries for everyone. Other libraries may have the same implementation for different hw combinations than sdc/mpsl.

@hermabe hermabe force-pushed the rfc/library_paths branch 2 times, most recently from 579eb64 to 19f5283 Compare April 25, 2024 14:03
@hermabe hermabe marked this pull request as ready for review April 25, 2024 14:04
@hermabe hermabe requested a review from a team as a code owner April 25, 2024 14:04
Instead of using SOC and ARCH configs to determine the library
paths, use mpsl-specific kconfigs. We will then be able to change
the paths independently of which value various upstream configs
have.

This also makes it simpler to use the same library for different socs,
or different libraries for the same cpu core variant.

Signed-off-by: Herman Berget <[email protected]>
@cvinayak cvinayak merged commit beed6b3 into nrfconnect:main Apr 26, 2024
3 checks passed
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