From: Jack Lange Date: Fri, 22 Feb 2008 17:25:57 +0000 (+0000) Subject: automatic build script for the build tools needed for the vmm X-Git-Tag: JACK-WORKING-STATIC-GEEKOS~1 X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=ddd0c1fd75d297ac77969a7f9e191f3209797b3d automatic build script for the build tools needed for the vmm --- diff --git a/SETUP_DEV_ENV.pl b/SETUP_DEV_ENV.pl new file mode 100755 index 0000000..1299e5c --- /dev/null +++ b/SETUP_DEV_ENV.pl @@ -0,0 +1,39 @@ +#!/usr/bin/perl + + + +$location = `pwd`; +chomp $location; +$location .= "/devtools"; + + +print "\n"; +print "Installing and configuring the v3vee development environment...\n"; +print "Location: " . $location . "\n\n"; + +mkdir $location; + + +install_nasm(); + + +sub install_nasm { + ### Setup vmx capable nasm + print "Installing VMX capable NASM...\n"; + chdir "./utils"; + print "Unpacking..."; + `tar -xzf nasm-0.98.39.tar.gz`; + print "done\n"; + chdir "./nasm-0.98.39"; + print "Patching in VMX support\n"; + `patch < ../vmx.patch`; + print "Patch to fix the stupid installer...\n"; + `patch < ../nasm-install.patch`; + print "Configuring...\n"; + `./configure --prefix=$location`; + print "Compiling...\n"; + `make`; + print "Installing..."; + `make install`; + print "Done!!\n\n"; +}