Onion Omega2 and musl support #1507
Replies: 2 comments 6 replies
-
I've never seen anybody using musl in an embedded context before but I guess it'll be a library size improvement over glibc, so why not!
Let's get these matches merged in! The include patch in As for avoiding If we want to prevent musl specific regressions we also probably want to add a CI job that compiles fprime and runs the unit tests using musl (maybe with an alpine image?). |
Beta Was this translation helpful? Give feedback.
-
You can also treat this like a non-Linux system and write custom Os implementations, similar to VxWorks. Then you can tailor the calls for musl. |
Beta Was this translation helpful? Give feedback.
-
Hi! I'm working on a project that uses the Onion Omega2 linux module. We have set up a custom toolchain using the template.
There is a two line patch required, due to the the toolchain using musl instead of glibc. The main incompatibility is the
pthread_attr_setaffinity_np
function, which is not supported. We chose to just disable it, as we do not need it.What is the best way to manage these changes without a fork of fprime? What would the process for upstreaming musl support into fprime look like?
Beta Was this translation helpful? Give feedback.
All reactions