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

uClibc compatibility #5270

Merged
merged 3 commits into from
Nov 7, 2024
Merged

uClibc compatibility #5270

merged 3 commits into from
Nov 7, 2024

Conversation

vidplace7
Copy link
Contributor

@vidplace7 vidplace7 commented Nov 7, 2024

Similar to #5219

This PR resolves errors when compiling with uClibc, so that it may be used with buildroot-meshtastic.

Notably, uClibc is the natively supported toolchain for the LuckFox Pico.

@@ -3,6 +3,7 @@
#include "PhoneAPI.h"
#include "Stream.h"
#include "concurrency/OSThread.h"
#include <cstdarg>
Copy link
Contributor Author

@vidplace7 vidplace7 Nov 7, 2024

Choose a reason for hiding this comment

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

va_list type definition is not included in uClibc by default. Easy fix.

Copy link
Contributor

@fifieldt fifieldt left a comment

Choose a reason for hiding this comment

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

Thanks!

Comment on lines +5 to +6
build_flags = ${portduino_base.build_flags} -O0 -I variants/portduino
-I /usr/include
Copy link
Contributor Author

@vidplace7 vidplace7 Nov 7, 2024

Choose a reason for hiding this comment

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

I patch (remove) this value in buildroot-meshtastic, so I can use the includes that buildroot stages.
A separate line is just a more stable target for removing. Thanks!

@@ -32,6 +32,7 @@ build_flags =
-Isrc/platform/portduino
-DRADIOLIB_EEPROM_UNSUPPORTED
-DPORTDUINO_LINUX_HARDWARE
-lstdc++fs
Copy link
Contributor Author

@vidplace7 vidplace7 Nov 7, 2024

Choose a reason for hiding this comment

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

Allows std::filesystem to function on uClibc

Adds compatibility with uclibc, the officially supported toolchain of the luckfox pico
Bringing this over from buildroot-meshtastic
@caveman99 caveman99 merged commit 286f3c6 into meshtastic:master Nov 7, 2024
12 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.

3 participants