Move
Some checks failed
Check / formatting (push) Failing after 11s
Check / linting (push) Failing after 14s
Check / build (push) Failing after 1m26s

This commit is contained in:
Mark 2025-01-26 19:28:51 -08:00
parent af1ce3c723
commit 3d084b7543
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
13 changed files with 21 additions and 3 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
/target server/target
decode/target
/build /build

View File

@ -23,10 +23,10 @@ push: $(BUILD)/$(BIN_NAME)
$(BUILD)/$(BIN_NAME): $(BUILD)/$(BIN_NAME):
@mkdir -p $(BUILD) @mkdir -p $(BUILD)
docker run --rm \ docker run --rm \
-v $(PWD):/project \ -v $(PWD)/server:/project \
-v "/project/.cargo" \ -v "/project/.cargo" \
-w "/project" \ -w "/project" \
ghcr.io/toltec-dev/rust:latest \ ghcr.io/toltec-dev/rust:latest \
cargo build --release --target=armv7-unknown-linux-gnueabihf cargo build --release --target=armv7-unknown-linux-gnueabihf
cp "target/armv7-unknown-linux-gnueabihf/release/restream" "./build/$(BIN_NAME)" cp "server/target/armv7-unknown-linux-gnueabihf/release/restream" "./build/$(BIN_NAME)"

17
server/.cargo/config.toml Normal file
View File

@ -0,0 +1,17 @@
[build]
target = "armv7-unknown-linux-gnueabihf"
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
rustflags = [
"-C",
"link-arg=-march=armv7-a",
"-C",
"link-arg=-marm",
"-C",
"link-arg=-mfpu=neon",
"-C",
"link-arg=-mfloat-abi=hard",
"-C",
"link-arg=-mcpu=cortex-a9",
]

View File