Skip to content

Added cross compile scripts for ARM Cortex-M #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nayakned
Copy link
Collaborator

@nayakned nayakned commented Jun 2, 2025

This should partly take care of #51

@nayakned nayakned requested a review from Copilot June 2, 2025 07:07
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for cross-compiling for ARM Cortex-M by introducing a new toolchain file and updating CMake configurations. Key changes include:

  • Adding branch conditions in src/CMakeLists.txt for library creation when not on Linux or Zephyr.
  • Introducing a new arm-cortex-m.toolchain file to support ARM cross-compilation.
  • Updating README.md and the root CMakeLists.txt to reference and integrate the new toolchain.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/CMakeLists.txt Added additional branches for library creation in non-Linux/Zephyr cases.
arm-cortex-m.toolchain New toolchain file to configure the build for ARM Cortex-M.
README.md Documented the availability of the ARM Cortex-M toolchain file.
CMakeLists.txt Adjusted example target inclusion based on the system name.
Comments suppressed due to low confidence (1)

arm-cortex-m.toolchain:5

  • It appears that 'tripe' might be a typo. If the intent is to set the toolchain triple, the variable should likely be renamed accordingly.
set(tripe arm-none-eabi)

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.

1 participant