Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vagrant: add Vagrantfile for the Tutorials repo
This new `Vagrantfile` loads the `Vagrantfile` that is located in the `RIOT` directory, but furthermore adds the `Tutorials` directory as a synced folder to the virtual machine.
- Loading branch information
Cenk Gündoğan
committed
Sep 21, 2016
1 parent
7c87f85
commit f86eb59
Showing
4 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ bin | |
.swp | ||
*~ | ||
.vagrant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule RIOT
updated
5 files
+5 −38 | Vagrantfile | |
+1 −1 | boards/nucleo-f207/Makefile.features | |
+10 −5 | cpu/samd21/periph/i2c.c | |
+1 −1 | dist/tools/tunslip/README.md | |
+6 −1 | dist/tools/vagrant/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
require 'fileutils' | ||
|
||
riot_vagrantfile = File.expand_path('RIOT/Vagrantfile') | ||
RIOTBASE ||= "RIOT/" | ||
|
||
if File.exists?(riot_vagrantfile) | ||
load riot_vagrantfile | ||
else | ||
abort "No Vagrantfile found in the RIOT directory. ABORTING!" | ||
end | ||
|
||
Vagrant.configure(2) do |config| | ||
config.vm.provider "virtualbox" do |vb| | ||
vb.name = "RIOT VM - Tutorials" | ||
end | ||
config.vm.synced_folder ".", "/home/vagrant/Tutorials" | ||
end |