-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathVagrantfile
55 lines (47 loc) · 1.94 KB
/
Vagrantfile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# frozen_string_literal: true
Vagrant.configure("2") do |config|
config.vm.box = "roboxes-x32/debian11"
# Sometimes, the default seems to be too little for this one.
config.vm.boot_timeout = 600
# When using libvirt it's usefull to explicitly tell Vagrant what method
# of folder syncing to use.
config.vm.synced_folder "./", "/vagrant", type: "rsync"
config.vm.provision 'shell', inline: <<-SHELL
set -e
# Override sources.list for faster downloads (for people outside of the US).
echo deb http://httpredir.debian.org/debian/ bullseye main > /etc/apt/sources.list
echo deb-src http://httpredir.debian.org/debian/ bullseye main >> /etc/apt/sources.list
echo deb http://security.debian.org/debian-security bullseye-security main >> /etc/apt/sources.list
echo deb-src http://security.debian.org/debian-security bullseye-security main >> /etc/apt/sources.list
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
astyle \
cmake \
dosfstools \
gcc-multilib \
gdb \
genisoimage \
git \
grub-legacy \
mtools \
nasm \
psmisc \
qemu \
gcc-arm-none-eabi \
xorriso \
rake
# Disabled for now since we don't have any Rust dependencies, and it slows things down when setting the VM up.
## We need the beta channel for the #![feature] functionality.
#curl -sSf https://static.rust-lang.org/rustup.sh > /tmp/rustup.sh && \
# sh /tmp/rustup.sh --yes --channel=nightly --date=2016-01-13
cd /vagrant
./install_cmocka.sh
echo 'drive u: file="/vagrant/servers/block/initial_ramdisk/ramdisk.image"' > /etc/mtools.conf
echo 'cd /vagrant' >> /home/vagrant/.bashrc
echo 'export ARCH=x86' >> /home/vagrant/.bashrc
echo '-U' > /home/vagrant/.astylerc
echo '-H' >> /home/vagrant/.astylerc
echo '-S' >> /home/vagrant/.astylerc
echo target remote localhost:1234 > /home/vagrant/.gdbinit
SHELL
end