Skip to content

Automerge conflict: [Driver] Merge CSKY bare-metal toolchain into BareMetal (#240290) - #1148

Merged
simpal01 merged 2 commits into
arm-softwarefrom
automerge
Nov 30, 2026
Merged

simpal01 merged 2 commits into
arm-softwarefrom
automerge

Conversation

@llvm-sync

@llvm-sync llvm-sync Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

CSKYToolChain is only used for csky targets that are not Linux;
csky--linux- is already handled by the generic Linux toolchain.
Fold the bare-metal handling into the BareMetal toolchain, as was
done for RISCVToolChain, and remove CSKYToolChain.

  • Route csky in the default switch to BareMetal and add csky with an
    unknown OS to BareMetal::handlesTarget().
  • Use the "cskyelf" linker emulation for non-Linux csky targets.
  • With a GCC installation, use libgcc/libstdc++ and no unwind library,
    do not warn about multilibs, and apply the selected multilib's OS
    suffix to the GCC install and sysroot library paths when the
    multilib set does not provide a file paths callback.
  • Add sysroot/include and sysroot/sys-include, link crti.o/crtn.o and
    -lnosys (or -lsemi with -msim) instead of -lgloss.

Co-authored-by: Claude Opus 5.5 noreply@anthropic.com

This upstream commit conflicts with one of the downstream patches maintained by ATfE. To resolve the conflict, I updated BareMetal.cpp to preserve both the upstream and downstream changes.
Downstream issue:#446

CSKYToolChain is only used for csky targets that are not Linux;
csky-*-linux-* is already handled by the generic Linux toolchain.
Fold the bare-metal handling into the BareMetal toolchain, as was
done for RISCVToolChain, and remove CSKYToolChain.

- Route csky in the default switch to BareMetal and add csky with an
  unknown OS to BareMetal::handlesTarget().
- Use the "cskyelf" linker emulation for non-Linux csky targets.
- With a GCC installation, use libgcc/libstdc++ and no unwind library,
  do not warn about multilibs, and apply the selected multilib's OS
  suffix to the GCC install and sysroot library paths when the
  multilib set does not provide a file paths callback.
- Add sysroot/include and sysroot/sys-include, link crti.o/crtn.o and
  -lnosys (or -lsemi with -msim) instead of -lgloss.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@llvm-sync
llvm-sync Bot requested review from a team as code owners November 28, 2026 07:20
@llvm-sync llvm-sync Bot added the automerge_conflict A merge conflict found by the automerge script label Nov 28, 2026
@github-actions github-actions Bot added the downstream-change Downstream change to LLVM tree label Nov 28, 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.

@statham-arm statham-arm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM from the ATfE side. I redid the conflict fix my own way and diffed against your version, and they were byte-for-byte identical 🙂

@amilendra amilendra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Baremetal specific code so won't affect the ATfL toolchain. If 2 ATfE engineers say LGTM then LGTM for us too. :)

@simpal01
simpal01 merged commit ed2286b into arm-software Nov 30, 2026
4 of 6 checks passed
@simpal01
simpal01 deleted the automerge branch November 30, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge_conflict A merge conflict found by the automerge script downstream-change Downstream change to LLVM tree

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants