aboutsummaryrefslogtreecommitdiff
path: root/Vagrantfile
diff options
context:
space:
mode:
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile31
1 files changed, 18 insertions, 13 deletions
diff --git a/Vagrantfile b/Vagrantfile
index 9c414b2bc..5aa56bf2a 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -2,8 +2,11 @@
2# vi: set ft=ruby : 2# vi: set ft=ruby :
3 3
4Vagrant.configure(2) do |config| 4Vagrant.configure(2) do |config|
5 # VMware/Virtualbox 64 bit 5 # define a name instead of just 'default'
6 config.vm.box = "phusion/ubuntu-14.04-amd64" 6 config.vm.define "qmk_firmware"
7
8 # VMware/Virtualbox ( and also Hyperv/Parallels) 64 bit
9 config.vm.box = "bento/ubuntu-16.04"
7 10
8 # This section allows you to customize the Virtualbox VM 11 # This section allows you to customize the Virtualbox VM
9 # settings, ie showing the GUI or upping the memory 12 # settings, ie showing the GUI or upping the memory
@@ -15,13 +18,16 @@ Vagrant.configure(2) do |config|
15 # your Teensy via the VM rather than your host OS 18 # your Teensy via the VM rather than your host OS
16 #vb.customize ['modifyvm', :id, '--usb', 'on'] 19 #vb.customize ['modifyvm', :id, '--usb', 'on']
17 #vb.customize ['usbfilter', 'add', '0', 20 #vb.customize ['usbfilter', 'add', '0',
18 # '--target', :id, 21 # '--target', :id,
19 # '--name', 'teensy', 22 # '--name', 'teensy',
20 # '--vendorid', '0x16c0', 23 # '--vendorid', '0x16c0',
21 # '--productid','0x0478' 24 # '--productid','0x0478'
22 # ] 25 # ]
23 # Customize the amount of memory on the VM: 26 # Customize the amount of memory on the VM:
24 vb.memory = "512" 27 vb.memory = "512"
28 # Uncomment the below lines if you have time sync
29 # issues with make and incremental builds
30 #vb.customize [ "guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 1000 ]
25 end 31 end
26 32
27 # This section allows you to customize the VMware VM 33 # This section allows you to customize the VMware VM
@@ -56,19 +62,18 @@ Vagrant.configure(2) do |config|
56 # This script ensures the required packages for AVR programming are installed 62 # This script ensures the required packages for AVR programming are installed
57 # It also ensures the system always gets the latest updates when powered on 63 # It also ensures the system always gets the latest updates when powered on
58 # If this causes issues you can run a 'vagrant destroy' and then 64 # If this causes issues you can run a 'vagrant destroy' and then
59 # add a # before ,args: and run 'vagrant up' to get a working 65 # add a # before ,run: (or change "always" to "once") and run 'vagrant up' to get a working
60 # non-updated box and then attempt to troubleshoot or open a Github issue 66 # non-updated box and then attempt to troubleshoot or open a Github issue
61 67 config.vm.provision "shell", inline: "/bin/sh -c 'yes | /vagrant/util/qmk_install.sh'", run: "always"
62 config.vm.provision "shell", run: "always", path: "./util/qmk_install.sh", args: "-update"
63 68
64 config.vm.post_up_message = <<-EOT 69 config.vm.post_up_message = <<-EOT
65 70
66 Log into the VM using 'vagrant ssh'. QMK directory synchronized with host is 71 Log into the VM using 'vagrant ssh'. QMK directory synchronized with host is
67 located at /vagrant 72 located at /vagrant
68 To compile the .hex files use make command inside this directory. 73 To compile the .hex files use make command inside this directory, e.g.
74 cd /vagrant
75 make <keyboard>:default
69 76
70 QMK's make format recently changed to use folder locations and colons:
71 make project_folder:keymap[:target]
72 Examples: 77 Examples:
73 make planck/rev4:default:dfu 78 make planck/rev4:default:dfu
74 make planck:default 79 make planck:default