Update build to use musl toolchain

This commit is contained in:
Lars Westermann
2022-01-30 15:37:24 +01:00
parent cf4afb4dfb
commit 192adba794
6 changed files with 36 additions and 35 deletions

View File

@ -1,10 +1,4 @@
ARTIFACT := $(shell cargo pkgid | rev | cut -d "/" -f1 | rev | cut -d "\#" -f1) # Try to determine the artifact name. If this does not work replace it with the explicit name.
install-dependencies:
cargo vendor
build:
docker run --rm -v $(PWD):/opt/project/ -w /opt/project/ pixix4/ev3dev-rust /bin/bash -c "cargo build --release --target armv5te-unknown-linux-gnueabi && /usr/bin/arm-linux-gnueabi-strip /opt/project/target/armv5te-unknown-linux-gnueabi/release/$(ARTIFACT)"
clean:
cargo clean
strip:
docker run --rm -v $(PWD):/build -w /build pixix4/ev3dev-rust:latest arm-linux-gnueabi-strip /build/target/armv5te-unknown-linux-musleabi/release/$(ARTIFACT)