]> git.donarmstrong.com Git - qmk_firmware.git/blob - Vagrantfile
Merge branch 'master' of https://github.com/jackhumbert/tmk_keyboard into audio
[qmk_firmware.git] / Vagrantfile
1 # -*- mode: ruby -*-\r
2 # vi: set ft=ruby :\r
3 \r
4 Vagrant.configure(2) do |config|\r
5   # You can only have one config.vm.box uncommented at a time\r
6 \r
7   # Comment this and uncomment another if you don't want to use the minimal Arch box\r
8   config.vm.box = "dragon788/arch-ala-elasticdog"\r
9 \r
10   # VMware/Virtualbox 64 bit\r
11   # config.vm.box = "phusion/ubuntu-14.04-amd64"\r
12   #\r
13   # VMware/Virtualbox 64 bit\r
14   #config.vm.box = "puphpet/centos65-x64"\r
15   #\r
16   # The opensuse boxes don't have dfu-util in their default repositories\r
17   #\r
18   # The virtualbox version has tools issues\r
19   # VMware/Virtualbox 64 bit\r
20   #config.vm.box = "bento/opensuse-13.2-x86_64"\r
21   #\r
22   # Virtualbox only\r
23   #config.vm.box = "bento/opensuse-13.2-i386"\r
24   # config.vm.box = ""\r
25   # config.vm.box = ""\r
26 \r
27   # This section allows you to customize the Virtualbox VM\r
28   # settings, ie showing the GUI or upping the memory\r
29   # or cores if desired\r
30   config.vm.provider "virtualbox" do |vb|\r
31     # Hide the VirtualBox GUI when booting the machine\r
32     vb.gui = false\r
33     # Uncomment the below lines if you want to program\r
34     # your Teensy via the VM rather than your host OS\r
35     #vb.customize ['modifyvm', :id, '--usb', 'on']\r
36     #vb.customize ['usbfilter', 'add', '0',\r
37     #             '--target', :id,\r
38     #             '--name', 'teensy',\r
39     #             '--vendorid', '0x16c0',\r
40     #             '--productid','0x0478'\r
41     #            ] \r
42     # Customize the amount of memory on the VM:\r
43     vb.memory = "512"\r
44   end\r
45 \r
46   # This section allows you to customize the VMware VM\r
47   # settings, ie showing the GUI or upping the memory\r
48   # or cores if desired\r
49   config.vm.provider "vmware_workstation" do |vmw|\r
50     # Hide the VMware GUI when booting the machine\r
51     vmw.gui = false \r
52  \r
53     # Customize the amount of memory on the VM:\r
54     vmw.memory = "512"\r
55   end\r
56 \r
57   config.vm.provider "vmware_fusion" do |vmf|\r
58     # Hide the vmfare GUI when booting the machine\r
59     vmf.gui = false\r
60  \r
61     # Customize the amount of memory on the VM:\r
62     vmf.memory = "512"\r
63   end\r
64   \r
65   # This script ensures the required packages for AVR programming are installed\r
66   # It also ensures the system always gets the latest updates when powered on\r
67   # If this causes issues you can run a 'vagrant destroy' and then\r
68   # add a # before ,args: and run 'vagrant up' to get a working\r
69   # non-updated box and then attempt to troubleshoot or open a Github issue \r
70   \r
71   config.vm.provision "shell", run: "always", path: "avr_setup.sh", args: "-update"\r
72 \r
73   config.vm.post_up_message = """\r
74   Log into the VM using 'vagrant ssh' on OSX or from Git Bash (Win)\r
75   or 'vagrant ssh-config' and Putty or Bitvise SSH or another SSH tool\r
76 \r
77   Change directory (cd) to the keyboard you wish to program \r
78   (Optionally) modify your layout, \r
79   then run 'make clean' \r
80   and then 'make' to compile the .eep and .hex files.\r
81 \r
82   Or you can copy and paste the example line below. \r
83  \r
84   cd /vagrant; cd keyboard; cd ergodox_ez; make clean; make\r
85   \r
86 \r
87   """\r
88 end\r