Skip to content

Conversation

@pratlucas
Copy link
Contributor

This cherry-picks the following changes into the 20.x release branch:

stevew817 and others added 2 commits February 28, 2025 12:01
See
ARM-software/LLVM-embedded-toolchain-for-Arm#628
for context.

This enables newlib-nano as a multilib. I didn't find any release
scripts, so I don't know how to add it to the CI such that it also
generates an overlay package for newlib-nano on release.

Note: this also fixes an issue with the current newlib builds where they
don't get built correctly for anything above ARMv6 as the `-march`,
`-mfloat-abi` and `-mfpu` arguments weren't being passed on to the
newlib compilation configuration. A little unsure why this hasn't popped
up before...
Commit 23f1d75 included `$(LLVM_TOOLCHAIN_C_LIBRARY)`, which
isn't valid cmake syntax – to interpolate a cmake variable you have to
use braces, not parentheses.

This led to a mysterious error from git

fatal: cannot change to 'rev-parse': No such file or directory

because once `${base_library}` is set to something that doesn't make
sense, `git -C ${${base_library}_SOURCE_DIR} rev-parse HEAD` substitutes
nothing at all for the source directory, and the command collapses to
just `git -C rev-parse` which indeed interprets `rev-parse` as the
directory to change into.
Copy link
Contributor

@simpal01 simpal01 left a comment

Choose a reason for hiding this comment

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

LGTM

@pratlucas pratlucas merged commit 2b95ca8 into arm:release/arm-software/20.x Feb 28, 2025
@pratlucas pratlucas deleted the cherry-pick-newlib-nano branch February 28, 2025 12:09
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.

4 participants