Adding Vagrantfile

This commit is contained in:
Michael Lee 2014-09-24 07:25:02 -05:00
parent 6e0d8f2ef6
commit 051f910f4d
3 changed files with 28 additions and 5 deletions

View File

@ -28,11 +28,7 @@ OBJS = \
vectors.o\
vm.o\
# Cross-compiling (e.g., on Mac OS X)
TOOLPREFIX = i386-elf-
# Using native tools (e.g., on X86 Linux)
#TOOLPREFIX =
TOOLPREFIX =
# Try to infer the correct TOOLPREFIX if not set
ifndef TOOLPREFIX

21
Vagrantfile vendored Normal file
View File

@ -0,0 +1,21 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
config.vm.provision :shell, path: "vagrantprov.sh"
end

6
vagrantprov.sh Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
apt-get update
apt-get install -y qemu-system-x86
apt-get install -y gdb
echo "set auto-load safe-path /" > ~/.gdbinit