-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
SYSROOT=/build/root | ||
|
||
export PKG_CONFIG_DIR= | ||
export PKG_CONFIG_LIBDIR=${SYSROOT}/usr/lib/pkgconfig:${SYSROOT}/usr/share/pkgconfig | ||
export PKG_CONFIG_SYSROOT_DIR=${SYSROOT} | ||
export PKG_CONFIG_ALLOW_CROSS=1 | ||
# tell pkg-config where to find libudev.pc | ||
export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig | ||
# tell cargo to link with an armhf compatible linker | ||
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc | ||
|
||
cargo build --release --target=aarch64-unknown-linux-gnu |