adjust cross-build.sh

This commit is contained in:
Mario Voigt 2025-03-11 13:41:42 +01:00
parent 50de3e053b
commit dc97df3cb5

View File

@ -30,8 +30,14 @@ fi
echo -e "\n+++++++++++++++++++++++++++++++++++++++++++" echo -e "\n+++++++++++++++++++++++++++++++++++++++++++"
echo -e "cross-compiling ..." echo -e "cross-compiling ..."
echo -e "+++++++++++++++++++++++++++++++++++++++++++\n" echo -e "+++++++++++++++++++++++++++++++++++++++++++\n"
CARGO_TARGET_DIR=target/x86_64-unknown-linux-gnu time cargo build --release #build bffhd binaries
cd fabfire_provision; CARGO_TARGET_DIR=../target/x86_64-unknown-linux-gnu time cargo build --release; cd ../ time cargo build --release --target-dir target/x86_64-unknown-linux-gnu
time cross build --target=aarch64-unknown-linux-gnu --release time cross build --target=aarch64-unknown-linux-gnu --release
time cross build --target=armv7-unknown-linux-gnueabihf --release time cross build --target=armv7-unknown-linux-gnueabihf --release
#build fabfire_provision binaries
cd fabfire_provision/
time cargo build --release --target-dir ../target/x86_64-unknown-linux-gnu
time cross build --target=aarch64-unknown-linux-gnu --release
time cross build --target=armv7-unknown-linux-gnueabihf --release
cd ../