summaryrefslogtreecommitdiff
path: root/Vagrantfile
blob: 7f542e110cbcb00196a968263844af18d0ba74a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#-----------------------------------------------------------------------
$bootstrap = <<BOOTSTRAP
export DEBIAN_FRONTEND=noninteractive
apt-get update && apt-get upgrade

# install base development tools
apt-get -y install build-essential
apt-get -y install cmake valgrind
apt-get -y install crossbuild-essential-armhf
apt-get -y install libboost-all-dev
apt-get -y install libasio-dev
wget https://musl.cc/arm-linux-musleabihf-cross.tgz
tar -xzvf arm-linux-musleabihf-cross.tgz
echo 'export PATH="\$PATH:/home/vagrant/arm-linux-musleabihf-cross/bin"' >> .bashrc
rm -r arm-linux-musleabihf-cross.tgz

BOOTSTRAP
#-----------------------------------------------------------------------


# Configuration
Vagrant.configure("2") do |config|
  config.vm.box = "debian/bullseye64"
  config.vm.box_version = "11.20230615.1"

  # (default timeout is 300 s)
  config.vm.boot_timeout = 600

  # set up the VM
  config.vm.provision "shell", inline: $bootstrap
end