Skip to content

Use picolibc on arm devices#26017

Open
keith-packard wants to merge 4 commits intoqmk:developfrom
keith-packard:picolibc-arm
Open

Use picolibc on arm devices#26017
keith-packard wants to merge 4 commits intoqmk:developfrom
keith-packard:picolibc-arm

Conversation

@keith-packard
Copy link

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

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout (addition or update)
  • Documentation

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>
@zvecr zvecr changed the base branch from master to develop February 13, 2026 23:38
@zvecr zvecr added the no-ci Signals to the CI runners not to build. label Feb 13, 2026
Copy link
Member

Choose a reason for hiding this comment

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

Any changes on chibiOS libraries need to go upstream. We don't accept any changes to our repos directly.

Copy link
Member

@tzarc tzarc Feb 14, 2026

Choose a reason for hiding this comment

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

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli qmk cli command core dependencies no-ci Signals to the CI runners not to build. python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants