mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2025-04-20 19:26:26 +02:00
advance cross-build.sh
This commit is contained in:
parent
fa2f8d6e6a
commit
8cfca6f530
@ -7,11 +7,40 @@
|
|||||||
# requirements
|
# requirements
|
||||||
# - this script only runs on debianoid OS (Debian, Ubuntu, Kubuntu, ... having dpkg)
|
# - this script only runs on debianoid OS (Debian, Ubuntu, Kubuntu, ... having dpkg)
|
||||||
|
|
||||||
|
git branch
|
||||||
|
|
||||||
|
# init submodules, if not done yet. running multiple times does not matter
|
||||||
|
git submodule update --init --recursive
|
||||||
|
|
||||||
|
# pull latest stuff from submodules
|
||||||
|
git pull --recurse-submodules
|
||||||
|
|
||||||
echo -e "\n+++++++++++++++++++++++++++++++++++++++++++"
|
echo -e "\n+++++++++++++++++++++++++++++++++++++++++++"
|
||||||
echo -e "installing requirements ..."
|
echo -e "installing requirements ..."
|
||||||
echo -e "+++++++++++++++++++++++++++++++++++++++++++\n"
|
echo -e "+++++++++++++++++++++++++++++++++++++++++++\n"
|
||||||
|
|
||||||
sudo apt install podman gsasl libgsasl7-dev libssl-dev libclang-dev cmake clang capnproto mosquitto mosquitto-clients build-essential libpcsclite-dev
|
sudo apt install podman gsasl libgsasl7-dev libssl-dev libclang-dev cmake clang capnproto mosquitto mosquitto-clients build-essential libpcsclite-dev
|
||||||
|
|
||||||
|
if ! command -v rustup 2>&1 >/dev/null
|
||||||
|
then
|
||||||
|
echo -e "Istalling rustup with stable rust + cargo..."
|
||||||
|
curl https://sh.rustup.rs -sSf | sh
|
||||||
|
echo 'source "$HOME/.cargo/env"' >> ~/.bashrc
|
||||||
|
source ~/.bashrc
|
||||||
|
rustup install stable
|
||||||
|
rustup default stable
|
||||||
|
echo -e "rustup installed:"
|
||||||
|
rustc +stable --version
|
||||||
|
cargo +stable --version
|
||||||
|
else
|
||||||
|
echo -e "rustup found:"
|
||||||
|
rustc +stable --version
|
||||||
|
cargo +stable --version
|
||||||
|
echo -e "rustup: updating ..."
|
||||||
|
rustup update
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "Installing cross-rs ..."
|
||||||
cargo install cross
|
cargo install cross
|
||||||
|
|
||||||
echo -e "\n+++++++++++++++++++++++++++++++++++++++++++"
|
echo -e "\n+++++++++++++++++++++++++++++++++++++++++++"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user