From: Peter Dinda Date: Sun, 6 Jul 2008 04:25:08 +0000 (+0000) Subject: Partial support for dev86 and cygwin X-Git-Tag: reaches-user-mode-on-qemu-and-both-amd-boxes-nested-paging-faults~19 X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=d964570646e2b882848b3291d59e5cf60f568533 Partial support for dev86 and cygwin --- diff --git a/SETUP_DEV_ENV.pl b/SETUP_DEV_ENV.pl index 764b67e..a2fa3ad 100755 --- a/SETUP_DEV_ENV.pl +++ b/SETUP_DEV_ENV.pl @@ -3,6 +3,11 @@ $dev_root = `pwd`; +# +# On cygwin, do something like the following +# pwd behaves trangely on cygwin +# +#$dev_root='/home/pdinda/Codes/vmm-dev'; chomp $dev_root; $location = $dev_root . "/devtools"; @@ -18,6 +23,11 @@ mkdir $location; #install_binutils_2_16_91_i386(); install_gcc_3_4_6_i386(); install_nasm(); +# +# This part is not quite working yet +# on cygwin, do through it by hand +# +#install_dev86_0_16_17(); sub install_nasm { @@ -111,3 +121,21 @@ sub install_gcc_3_4_6_x86_64 { print "done!!\n"; chdir $dev_root; } + +sub install_dev86_0_16_17 { + + print "Installing bcc, ld86, as86, and bcc-cpp from Dev86src-0.16.17.tar.gz\n"; + chdir "./utils"; + print "Unpacking..."; + `tar -xzf Dev86src-0.16.17.tar.gz`; + print "done\n"; + chdir "./dev86-0.16.17"; + print "Compiling...\n"; + `make as86 ld86 bcc`; + `make -C cpp`; + print "done\n"; + print "Installing...\n"; + `cp as/as86.exe bcc/bcc.exe bcc/bcc-cc1.exe cpp/bcc-cpp.exe ld/ld86.exe make install-gcc $location/bin`; + print "done!!\n"; + chdir $dev_root; +}