Skip to content

Bazel: Add aarch64 and armv7 cross compilation toolchains#1895

Draft
dorezyuk wants to merge 7 commits intomainfrom
feat/add_aarch64_cross_toolchains
Draft

Bazel: Add aarch64 and armv7 cross compilation toolchains#1895
dorezyuk wants to merge 7 commits intomainfrom
feat/add_aarch64_cross_toolchains

Conversation

@dorezyuk
Copy link
Contributor

@dorezyuk dorezyuk commented Feb 27, 2026

Describe your changes

Adds 4 cross compilation toolchains

  • aarch64-linux-gnu: Here glibc is picked to be 2.35 which is a compatible version with yocto kirkstone.
  • aarch64-linux-musl: Musl version - everything is liked into the binaries
  • armv7-linux-gnueabihf: As as for aarch64-linux-gnu - sysroot uses glibc 2.35.
  • armv7-linux-musleabihf: As as armv7-linux-gnueabihf but with musl as libc

Some notes: the bcr version of openssl did not support armv7 musl cross compilation, so I've added a switch/select and used the foreign_rules_cc as fallback

@dorezyuk dorezyuk marked this pull request as ready for review February 27, 2026 14:18
@dorezyuk dorezyuk marked this pull request as draft February 27, 2026 14:18
SirVer
SirVer previously approved these changes Feb 27, 2026
Copy link
Contributor

@SirVer SirVer left a comment

Choose a reason for hiding this comment

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

Looks pretty similar to what we do internally now, So i guess that is good.

@dorezyuk dorezyuk force-pushed the feat/add_aarch64_cross_toolchains branch 2 times, most recently from 08991e6 to f81eb3b Compare February 27, 2026 18:16
Dima Dorezyuk added 6 commits February 27, 2026 19:54
Signed-off-by: Dima Dorezyuk <ddo@qwello.eu>
Signed-off-by: Dima Dorezyuk <ddo@qwello.eu>
Signed-off-by: Dima Dorezyuk <ddo@qwello.eu>
Signed-off-by: Dima Dorezyuk <ddo@qwello.eu>
Signed-off-by: Dima Dorezyuk <ddo@qwello.eu>
Signed-off-by: Dima Dorezyuk <ddo@qwello.eu>
@dorezyuk dorezyuk force-pushed the feat/add_aarch64_cross_toolchains branch 2 times, most recently from 07d2daa to 5d049d4 Compare March 1, 2026 07:22
@dorezyuk dorezyuk changed the title Bazel: Add aarch64 cross compilation toolchains Bazel: Add aarch64 and armv7 cross compilation toolchains Mar 1, 2026
Signed-off-by: Dima Dorezyuk <ddo@qwello.eu>
@dorezyuk dorezyuk force-pushed the feat/add_aarch64_cross_toolchains branch from 5d049d4 to 1d4a39c Compare March 2, 2026 07:22
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