2015-11-28 15:15:34 +01:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
2016-09-16 17:15:24 +02:00
|
|
|
require 'fileutils'
|
|
|
|
|
2016-09-20 13:31:06 +02:00
|
|
|
RIOTBASE ||= "./"
|
2015-11-28 15:15:34 +01:00
|
|
|
|
2016-09-20 13:31:06 +02:00
|
|
|
Vagrant.configure(2) do |config|
|
|
|
|
# For a complete reference, please see the online documentation at https://docs.vagrantup.com.
|
2016-09-16 13:48:21 +02:00
|
|
|
|
2016-08-29 16:59:02 +02:00
|
|
|
config.vm.box = "boxcutter/ubuntu1604"
|
2016-09-20 13:31:06 +02:00
|
|
|
config.vm.synced_folder RIOTBASE, "/home/vagrant/RIOT"
|
2015-11-28 15:15:34 +01:00
|
|
|
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
2015-12-11 08:53:25 +01:00
|
|
|
vb.name = "RIOT VM"
|
2015-11-28 15:15:34 +01:00
|
|
|
vb.customize ["modifyvm", :id, "--usb", "on"]
|
|
|
|
vb.customize ["modifyvm", :id, "--usbxhci", "on"]
|
|
|
|
vb.customize ['usbfilter', 'add', '0', '--target', :id, '--name', 'FTDI USB-TTL',
|
|
|
|
'--vendorid', '0x0403', '--productid', '0x6001']
|
|
|
|
vb.customize ['usbfilter', 'add', '0', '--target', :id, '--name', 'CP2102 USB to UART',
|
|
|
|
'--vendorid', '0x10c4', '--productid', '0xea60']
|
|
|
|
vb.customize ['usbfilter', 'add', '0', '--target', :id, '--name', 'STM32 STLink',
|
|
|
|
'--vendorid', '0x0483', '--productid', '0x3748']
|
|
|
|
vb.customize ['usbfilter', 'add', '0', '--target', :id, '--name', 'USBasp',
|
|
|
|
'--vendorid', '0x16c0', '--productid', '0x05dc']
|
|
|
|
vb.customize ['usbfilter', 'add', '0', '--target', :id, '--name', 'iotlab-m3',
|
|
|
|
'--vendorid', '0x0403', '--productid', '0x6010']
|
|
|
|
vb.customize ['usbfilter', 'add', '0', '--target', :id, '--name', 'samr21-xpro',
|
|
|
|
'--vendorid', '0x03eb', '--productid', '0x2111']
|
|
|
|
vb.customize ['usbfilter', 'add', '0', '--target', :id, '--name', 'Arduino Mega 2560',
|
|
|
|
'--vendorid', '0x2341', '--productid', '0x0042']
|
2016-04-08 20:29:00 +02:00
|
|
|
vb.customize ['usbfilter', 'add', '0', '--target', :id, '--name', 'Phytec phyWAVE KW22',
|
|
|
|
'--vendorid', '0x0d28', '--productid', '0x0204']
|
2015-11-28 15:15:34 +01:00
|
|
|
end
|
|
|
|
|
2016-09-16 17:15:24 +02:00
|
|
|
if File.exists?(File.join(Dir.home, ".gitconfig"))
|
|
|
|
config.vm.provision "file", source: File.join(Dir.home, ".gitconfig"), destination: ".gitconfig"
|
|
|
|
end
|
|
|
|
|
2016-09-20 13:31:06 +02:00
|
|
|
config.vm.provision "shell", path: File.join(RIOTBASE,'/dist/tools/vagrant/bootstrap.sh')
|
2015-11-28 15:15:34 +01:00
|
|
|
end
|