repository: C:/dev/kvm-guest-drivers-windows
branch: master
commit 9a903b9ef2e73c3da6f700aabb86ea38b472a9e5
Author: Yan Vugenfirer <[email protected]>
Date: Wed Feb 10 17:26:50 2010 +0200
[WIN-GUEST-DRIVERS] VirtIO lib: Adding compilation to Win 7 platform.
Also allowing to specify specific path to DDK (no longer tied to
installation in C:\WINDDK)
Signed-off-by: Yan Vugenfirer <[email protected]>
diff --git a/VirtIO/buildAll.bat b/VirtIO/buildAll.bat
index 8d05802..3b98210 100644
--- a/VirtIO/buildAll.bat
+++ b/VirtIO/buildAll.bat
@@ -1,19 +1,23 @@
:
: Set global parameters:
:
+
+: Use Windows 7 DDK
if "%DDKVER%"=="" set DDKVER=7600.16385.0
-set BUILDROOT=C:\WINDDK\%DDKVER%
+
+: By default DDK is installed under C:\WINDDK, but it can be installed in
different location
+if "%DDKISNTALLROOT%"=="" set DDKISNTALLROOT=C:\WINDDK\
+set BUILDROOT=%DDKISNTALLROOT%%DDKVER%
set X64ENV=x64
if "%DDKVER%"=="6000" set X64ENV=amd64
if not "%1"=="" goto parameters_here
echo no parameters specified, rebuild all
call clean.bat
-call "%0" Vista Vista64 Win2003 Win200364 XP
+call "%0" Win7 Win7_64 Vista Vista64 Win2003 Win200364 XP
goto :eof
:parameters_here
-
:nextparam
if "%1"=="" goto :eof
goto %1
@@ -21,20 +25,29 @@ goto %1
shift
goto nextparam
+:Win7
+set DDKBUILDENV=
+pushd %BUILDROOT%
+call %BUILDROOT%\bin\setenv.bat %BUILDROOT% fre Wlh
+popd
+build -cZg
+
+goto continue
+
+:Win7_64
+set DDKBUILDENV=
+pushd %BUILDROOT%
+call %BUILDROOT%\bin\setenv.bat %BUILDROOT% %X64ENV% fre WIN7
+popd
+build -cZg
+
+goto continue
-:preparebuild
-echo DIRS=%* > dirs
-for %%f in (%*) do echo !include $(NTMAKEENV)\makefile.def > %%f\makefile
-set /a _NT_TARGET_MAJ="%_NT_TARGET_VERSION% >> 8"
-set /a _NT_TARGET_MIN="%_NT_TARGET_VERSION% & 255"
-set
_VERSION_=%_NT_TARGET_MAJ%.%_NT_TARGET_MIN%.%_MAJORVERSION_%.%_MINORVERSION_%
-echo version set: %_VERSION_%
-goto :eof
:Vista
set DDKBUILDENV=
pushd %BUILDROOT%
-call %BUILDROOT%\bin\setenv.bat %BUILDROOT% fre Wlh
+call %BUILDROOT%\bin\setenv.bat %BUILDROOT% fre WIN7
popd
build -cZg
@@ -74,7 +87,4 @@ call %BUILDROOT%\bin\setenv.bat %BUILDROOT% fre WXP
popd
build -cZg
-
-
-
goto :eof
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html