Skip to content
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

Added crosscompile toolchain file for aarch64. #56

Merged
merged 2 commits into from
Dec 27, 2024

Conversation

nayakned
Copy link
Collaborator

No description provided.

@nayakned
Copy link
Collaborator Author

Try running.

$ sudo apt install gcc-aarch64-linux-gnu
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../aarch64.toolchain
$ make

Artifacts can tested on a Pi or qemu+Docker.

Copy link
Collaborator

@SebastianSchildt SebastianSchildt left a comment

Choose a reason for hiding this comment

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

Seems to work.

Interesting observation: This needs to be done on the FIRST run of cmake in an empty build dir. If cmake (with or without the option) had already been run, I get

cmake .. -DCMAKE_TOOLCHAIN_FILE=../aarch64.toolchain
-- Configuring done (0.0s)
-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_TOOLCHAIN_FILE


-- Build files have been written to: /home/sebastian/Open1722/build

Maybe mention in the docs, it works only on a "fresh" cmake run

Anyway, looks good to me, but will not merge as @nayakned still seems to be tinkering with cmake, so not sure this is obsolete

@nayakned nayakned force-pushed the feature/cross_compile branch from 2791ab5 to 1118a98 Compare December 27, 2024 09:13
@nayakned nayakned merged commit 1fbe09e into COVESA:main Dec 27, 2024
1 check passed
@nayakned nayakned deleted the feature/cross_compile branch December 27, 2024 09:13
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.

2 participants