Fix unused param, add PERIPH_DRIVER flag for F4, tidied up F1 and F3 in prep.
[betaflight.git] / Vagrantfile
blobad8698227a7e989a7d259a85e6304d2e441cd358
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
4 # All Vagrant configuration is done below. The "2" in Vagrant.configure
5 # configures the configuration version (we support older styles for
6 # backwards compatibility). Please don't change it unless you know what
7 # you're doing.
8 Vagrant.configure(2) do |config|
9   # The most common configuration options are documented and commented below.
10   # For a complete reference, please see the online documentation at
11   # https://docs.vagrantup.com.
13   # Every Vagrant development environment requires a box. You can search for
14   # boxes at https://app.vagrantup.com/boxes/search
15   config.vm.box = "ubuntu/xenial64"
17   config.vm.provider "virtualbox" do |v|
18       v.memory = 4096
19   end
21   # Enable provisioning with a shell script. Additional provisioners such as
22   # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
23   # documentation for more information about their specific syntax and use.
24   config.vm.provision "shell", inline: <<-SHELL
25     apt-get remove -y binutils-arm-none-eabi gcc-arm-none-eabi
26     add-apt-repository ppa:team-gcc-arm-embedded/ppa
27     apt-get update
28     apt-get install -y git gcc-arm-embedded=6-2017q2-1~xenial1
29     apt-get install -y make python gcc clang
30   SHELL
31 end
33 # Usage
34 # On windows start a command shell in the project root directory, where the "Vagrantfile" exists.
35 # "vagrant up"     to start the VM. First time it takes a while.....
36 # "vagrant ssh"    to log into your VM.
37 # "cd /vagrant"    Here are the windows project directory mounted with all your files.
38 # "make all"       Start working, building all targets for example.
39 # "exit"           when done
40 # vagrant halt     to stop your VM
41 # vagrant --help   for more....