Skip to content

[ATfE] Add CMake Build Options for Multiple C Libraries#687

Merged
HugoSilvaSantos merged 32 commits intoarm:arm-softwarefrom
HugoSilvaSantos:arm-software-libc-atfe-package
Feb 25, 2026
Merged

[ATfE] Add CMake Build Options for Multiple C Libraries#687
HugoSilvaSantos merged 32 commits intoarm:arm-softwarefrom
HugoSilvaSantos:arm-software-libc-atfe-package

Conversation

@HugoSilvaSantos
Copy link
Copy Markdown
Contributor

@HugoSilvaSantos HugoSilvaSantos commented Jan 20, 2026

  • Replace the single LLVM_TOOLCHAIN_C_LIBRARY option with independent per-library toggles, allowing ATfE to build and package multiple C libraries such as: picolibc, newlib, newlib-nano and llvmlibc in a single build.
  • Add new per-library CMake options: a) LLVM_TOOLCHAIN_ENABLE_PICOLIBC, b) LLVM_TOOLCHAIN_ENABLE_NEWLIB c) LLVM_TOOLCHAIN_ENABLE_NEWLIB_NANO, and d) LLVM_TOOLCHAIN_ENABLE_LLVMLIBC as independent ON/OFF toggles. Note that picolibc defaults to ON.
  • Deprecate LLVM_TOOLCHAIN_C_LIBRARY.

Comment thread arm-software/embedded/arm-multilib/CMakeLists.txt
Comment thread arm-software/embedded/arm-runtimes/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt
Comment thread arm-software/embedded/CMakeLists.txt
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Hugo Silva and others added 4 commits January 27, 2026 16:09
- Add enable flags per libc
- Fix COPYING.NEWLIB error when creating the atfe package
- Fix samples related issue
@github-actions github-actions Bot added the downstream-change Downstream change to LLVM tree label Jan 27, 2026
@github-actions
Copy link
Copy Markdown

This pull review modifies files outside of the arm-software directory, so please ensure it follows the Downstream Patch Policy.
An automated check will test if the tagging requirements have been met. Please wait for approving reviews from both Arm Toolchain for Embedded and Arm Toolchain for Linux teams before merging.

@HugoSilvaSantos HugoSilvaSantos force-pushed the arm-software-libc-atfe-package branch from 793356a to 37e947a Compare January 27, 2026 16:38
@dcandler dcandler removed the downstream-change Downstream change to LLVM tree label Jan 27, 2026
Comment thread arm-software/embedded/arm-multilib/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/cmake/generate_version_txt.cmake
Comment thread arm-software/embedded/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt
Comment thread arm-software/embedded/arm-multilib/CMakeLists.txt Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
@HugoSilvaSantos HugoSilvaSantos marked this pull request as ready for review February 24, 2026 09:49
@HugoSilvaSantos HugoSilvaSantos requested a review from a team as a code owner February 24, 2026 09:49
Comment thread arm-software/embedded/cmake/generate_version_txt.cmake Outdated
Comment thread arm-software/embedded/CMakeLists.txt Outdated
@HugoSilvaSantos HugoSilvaSantos merged commit bc86d60 into arm:arm-software Feb 25, 2026
2 checks passed
@HugoSilvaSantos HugoSilvaSantos deleted the arm-software-libc-atfe-package branch February 25, 2026 16:14
HugoSilvaSantos added a commit to HugoSilvaSantos/arm-toolchain that referenced this pull request Mar 11, 2026
- Replace the single LLVM_TOOLCHAIN_C_LIBRARY option with independent
per-library toggles, allowing ATfE to build and package multiple C
libraries such as: picolibc, newlib, newlib-nano and llvmlibc in a
single build.
- Add new per-library CMake options: a) LLVM_TOOLCHAIN_ENABLE_PICOLIBC,
b) LLVM_TOOLCHAIN_ENABLE_NEWLIB c) LLVM_TOOLCHAIN_ENABLE_NEWLIB_NANO,
and d) LLVM_TOOLCHAIN_ENABLE_LLVMLIBC as independent ON/OFF toggles.
Note that picolibc defaults to ON.
- Deprecate LLVM_TOOLCHAIN_C_LIBRARY.

---------

Co-authored-by: Hugo Silva <hugsan02@e142605.arm.com>
(cherry picked from commit bc86d60)
HugoSilvaSantos added a commit that referenced this pull request Mar 11, 2026
- Replace the single LLVM_TOOLCHAIN_C_LIBRARY option with independent
per-library toggles, allowing ATfE to build and package multiple C
libraries such as: picolibc, newlib, newlib-nano and llvmlibc in a
single build.
- Add new per-library CMake options: a) LLVM_TOOLCHAIN_ENABLE_PICOLIBC,
b) LLVM_TOOLCHAIN_ENABLE_NEWLIB c) LLVM_TOOLCHAIN_ENABLE_NEWLIB_NANO,
and d) LLVM_TOOLCHAIN_ENABLE_LLVMLIBC as independent ON/OFF toggles.
Note that picolibc defaults to ON.
- Deprecate LLVM_TOOLCHAIN_C_LIBRARY.

---------

Co-authored-by: Hugo Silva <hugsan02@e142605.arm.com>
(cherry picked from commit bc86d60)
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