Add restream Rust executable

This commit is contained in:
Rien Maertens
2020-12-12 22:45:47 +01:00
parent 2e280f889d
commit 9352090965
4 changed files with 157 additions and 0 deletions

14
.cargo/config Normal file
View File

@ -0,0 +1,14 @@
[target.armv7-unknown-linux-gnueabihf]
linker = "/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-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",
"-C", "link-arg=--sysroot=/usr/local/oecore-x86_64/sysroots/cortexa9hf-neon-oe-linux-gnueabi",
]
[build]
# Set the default --target flag
target = "armv7-unknown-linux-gnueabihf"