From 051f910f4dac69b5d51084c0b9931591a9dc4810 Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Wed, 24 Sep 2014 07:25:02 -0500 Subject: [PATCH] Adding Vagrantfile --- Makefile | 6 +----- Vagrantfile | 21 +++++++++++++++++++++ vagrantprov.sh | 6 ++++++ 3 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 Vagrantfile create mode 100755 vagrantprov.sh diff --git a/Makefile b/Makefile index 8012888..6283b39 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..20e6674 --- /dev/null +++ b/Vagrantfile @@ -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 diff --git a/vagrantprov.sh b/vagrantprov.sh new file mode 100755 index 0000000..42f3a80 --- /dev/null +++ b/vagrantprov.sh @@ -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