Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hatomist committed Jan 1, 2025
1 parent a509ed3 commit 3e79130
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,21 @@ rustflags = [
[target.aarch64-unknown-linux-gnu]

linker = "aarch64-linux-gnu-gcc"

[target.riscv64gc-unknown-linux-musl]
rustflags = [
"-C", "target-feature=-crt-static",
"-Clink-args=--sysroot=/sdk/host/riscv64-buildroot-linux-musl/sysroot",
"-L", "./firmware/cviwrapper",
"-L", "./firmware/sts3215",
"-L", "./firmware/tpu-sdk-sg200x/lib",
"-L", "./firmware/duo-sdk/rootfs/usr/lib",
"-L", "./models/tpu-mlir/lib",
"-Clink-arg=-Wl,-rpath,../models/tpu-mlir/lib",
"-Clink-arg=-Wl,-rpath,./firmware/tpu-sdk-sg200x/lib",
"-Clink-arg=-Wl,-rpath,./firmware/duo-sdk/rootfs/lib",
"-Clink-arg=-Wl,-rpath,./tpu-libs",
"-Clink-arg=-Wl,-rpath,./sysroot/lib",
"-Clink-arg=-Wl,-rpath,./sysroot/usr/lib",
]
linker = "/sdk/host/bin/riscv64-buildroot-linux-musl-gcc.br_real"

0 comments on commit 3e79130

Please sign in to comment.