Open
Conversation
Some arm-none-eabi toolchains include picolibc instead of newlib, so if newlib fails, check to see if we can build with that instead.
Reduce syscalls.c to provide only _exit as required by picolibc. Signed-off-by: Keith Packard <keithp@keithp.com>
Test whether gcc --specs=picolibc.specs works, if so use that instead of newlib. Signed-off-by: Keith Packard <keithp@keithp.com>
We don't need any of these with picolibc. Signed-off-by: Keith Packard <keithp@keithp.com>
drashna
requested changes
Feb 14, 2026
Member
There was a problem hiding this comment.
Any changes on chibiOS libraries need to go upstream. We don't accept any changes to our repos directly.
Member
There was a problem hiding this comment.
@keith-packard had already raised a corresponding PR against our fork before I'd disabled PRs on the repo.
The usual upstreaming process for ChibiOS changes is to post on https://forum.chibios.org -- they still do everything manually through Subversion.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Check for picolibc support in the toolchain, if available use that.
Pull in a version of chibios with some small picolibc compatibility fixes.
Disable a range of syscall stubs required for newlib but not necesary with picolibc.
Types of Changes