Skip to content

Conversation

@oopsbagel
Copy link
Collaborator

@oopsbagel oopsbagel commented Apr 21, 2025

Aims to solve "I can't build on $platform".

Removes dependency on gcc-based cross-compilation toolchain.

This branch allows development on any machine that can install rustup toolchains. No special debian packages are needed to build any of the binaries, only what's installed by rustup.

Updates .cargo/config.toml, make.sh, tools/devenv, github actions, and the README to use the musl/rust-lld targets.

Pull Request Checklist

  • The Rayhunter team has recently expressed interest in reviewing a PR for this. If not, this PR may be closed due our limited resources and need to prioritize how we spend them.
  • Added or updated any documentation as needed to support the changes in this PR.
  • Code has been linted and run through cargo fmt

Removes dependency on gcc-based cross-compilation toolchain.
@oopsbagel
Copy link
Collaborator Author

oopsbagel commented Apr 21, 2025

I have tested the binaries produced with these PRs on the Orbic and host machines successfully. It could help to have a TPLink user test them.

edit: works on tplink! and alcatel mw43.

linker = "rust-lld"
rustflags = ["-C", "target-feature=+crt-static"]

[target.armv7-unknown-linux-gnueabihf]
Copy link
Collaborator Author

@oopsbagel oopsbagel Apr 21, 2025

Choose a reason for hiding this comment

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

Included to not break anyone's existing setups, but no longer used by github actions, make.sh, or tools/devenv.

@oopsbagel oopsbagel requested a review from wgreenberg April 23, 2025 19:00
@wgreenberg
Copy link
Collaborator

incredibly helpful, thanks again oops!

Copy link
Collaborator

@wgreenberg wgreenberg left a comment

Choose a reason for hiding this comment

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

verified it builds/runs on an Orbic

@wgreenberg wgreenberg merged commit a8087c6 into EFForg:main Apr 25, 2025
12 checks passed
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