forked from vekkt0r/novatools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
30 lines (23 loc) · 1.09 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.synced_folder "./", "/home/vagrant/novatools"
# Enable USB and attach Novatouch in bootloader mode to the VM
config.vm.provider "virtualbox" do |vb|
vb.customize ['modifyvm', :id, '--usb', 'on']
vb.customize ['usbfilter', 'add', '0', '--target', :id, '--name', 'USB HID device', '--vendorid', '0x2047', '--productid', '0x0200']
end
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y make gcc-msp430 libhidapi-hidraw0 mspdebug python-pip bzr linux-image-extra-$(uname -r)
# udev rule to be able to access /dev/hidraw0 as vagrant user
cp novatools/99-hidraw.rules /etc/udev/rules.d
udevadm control --reload-rules ; udevadm trigger
# python-msp430-tools upstream package is broken.. install directly from bzr repo
# https://bugs.launchpad.net/python-msp430-tools/+bug/936695
pip install -e bzr+lp:python-msp430-tools#egg=python-msp430-tools
# cleanup
apt-get -y autoremove
SHELL
end