conduwuit/cross
Jonas Zohren fa4099b138 Use prebuilt CI-containers from https://gitlab.com/jfowl/conduit-containers
Also run all builds on approved MRs
2022-02-01 23:51:38 +00:00
..
README.md feat: use rustembedded/cross images and use static relocation model to fix cross-compile 2022-01-23 14:41:39 +01:00

README.md

Cross compilation

The cross folder contains a set of convenience scripts (build.sh and test.sh) for cross-compiling Conduit.

Currently supported targets are

  • aarch64-unknown-linux-musl
  • arm-unknown-linux-musleabihf
  • armv7-unknown-linux-musleabihf
  • x86_64-unknown-linux-musl

Install prerequisites

Docker

Installation guide.

$ sudo apt install docker
$ sudo systemctl start docker
$ sudo usermod -aG docker $USER
$ newgrp docker

Cross

Installation guide.

$ cargo install cross

Buiding Conduit

$ TARGET=armv7-unknown-linux-musleabihf ./cross/build.sh --release

The cross-compiled binary is at target/armv7-unknown-linux-musleabihf/release/conduit

Testing Conduit

$ TARGET=armv7-unknown-linux-musleabihf ./cross/test.sh --release