-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add Musl support #23
Add Musl support #23
Conversation
6a8581d
to
74e184c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did an initial pass over it. I suppose the PR will include only the last 3 commits.
The changes are fine, I feel like they need a bit more comments.
e48643f
to
0eaf1eb
Compare
@craciunoiuc , I didn't make updates to the original files. I just created patches for them. I would leave them as they are and, if required, I would create issues to fix them in the future. |
Yup, it's fine, I will take another look over it tomorrow In the meantime: Make sure to add the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't able to compile lib-lwip with these changes and musl. I'm also not sure which PRs would be necessary (I tried unikraft/unikraft#644, unikraft/lib-musl#19, and this PR).
Therefore, I just looked over the changes.
@mschlumpp , I'll be back with instructions on building LWIP + Musl. |
@craciunoiuc , done. |
Okay it seems to work fine. Other than the comment I already left, LGTM. (I guess I have to approve it after Cezar reviewed it and everything is fixed, right?) |
I want to do another pass now and also test it properly, then I guess we can approve. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some Oxford comma for you @razvand
patches/0008-src-include-Make-lwip-inet.h-compatible-with-Musl.patch
Outdated
Show resolved
Hide resolved
Functions `if_nametoindex` and `if_indextoname` are to be defined by the standard C library (Musl, nolibc). Signed-off-by: Razvan Deaconescu <razvand@unikraft.io>
Remove source code files that are to be defined by the standard C library (Musl or nolibc). Signed-off-by: Razvan Deaconescu <razvand@unikraft.io>
Lines were commented out in `Makefile.uk`. Remove them from `Makefile.uk` and also fully remove the source code files from the tree. Signed-off-by: Razvan Deaconescu <razvand@unikraft.io>
Add patch files that remove or update functions, macros and variables in LWIP original source code to make it compatible to Musl. Signed-off-by: Razvan Deaconescu <razvand@unikraft.io>
0eaf1eb
to
16ff033
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good here. Thanks!
Reviewed-by: Cezar Craciunoiu cezar.craciunoiu@unikraft.io
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now, thanks.
Approved-by: Marco Schlumpp marco@unikraft.io
Remove source code files that are to be defined by the standard C library (Musl or nolibc). Signed-off-by: Razvan Deaconescu <razvand@unikraft.io> Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io> Approved-by: Marco Schlumpp <marco@unikraft.io> Tested-by: Unikraft CI <monkey@unikraft.io> GitHub-Closes: #23
Lines were commented out in `Makefile.uk`. Remove them from `Makefile.uk` and also fully remove the source code files from the tree. Signed-off-by: Razvan Deaconescu <razvand@unikraft.io> Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io> Approved-by: Marco Schlumpp <marco@unikraft.io> Tested-by: Unikraft CI <monkey@unikraft.io> GitHub-Closes: #23
Add patch files that remove or update functions, macros and variables in LWIP original source code to make it compatible to Musl. Signed-off-by: Razvan Deaconescu <razvand@unikraft.io> Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io> Approved-by: Marco Schlumpp <marco@unikraft.io> Tested-by: Unikraft CI <monkey@unikraft.io> GitHub-Closes: #23
Make changes to build and source files for Musl integration.