aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/km/build
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--km/build/wdk7.1/.gitignore2
-rw-r--r--km/build/wdk7.1/add_cert.bat (renamed from add_cert.bat)0
-rw-r--r--km/build/wdk7.1/build_driver.bat (renamed from build_driver.bat)2
-rw-r--r--km/build/wdk7.1/build_drivers.bat (renamed from build_drivers.bat)2
-rw-r--r--km/build/wdk7.1/check_ddk.bat (renamed from check_ddk.bat)4
-rw-r--r--km/build/wdk7.1/check_env.bat (renamed from check_env.bat)0
-rw-r--r--km/build/wdk7.1/clean_driver.bat (renamed from clean_driver.bat)0
-rw-r--r--km/build/wdk7.1/clean_drivers.bat (renamed from clean_drivers.bat)2
-rw-r--r--km/build/wdk7.1/setenv.bat (renamed from setenv.bat)12
-rw-r--r--km/build/wdk7.1/sign.bat (renamed from sign.bat)0
-rw-r--r--km/build/wdk8.1update/minimal/.gitignore (renamed from src/minimal/vs12/.gitignore)0
-rw-r--r--km/build/wdk8.1update/minimal/minimal.vs12.sln (renamed from src/minimal/vs12/minimal.vs12.sln)0
-rw-r--r--km/build/wdk8.1update/minimal/minimal.vs12.vcxproj (renamed from src/minimal/vs12/minimal.vs12.vcxproj)2
-rw-r--r--km/build/wdk8.1update/simple/.gitignore (renamed from src/nt_path_converter/vs12/.gitignore)0
-rw-r--r--km/build/wdk8.1update/simple/simple.vs12.sln (renamed from src/simple/vs12/simple.vs12.sln)0
-rw-r--r--km/build/wdk8.1update/simple/simple.vs12.vcxproj (renamed from src/simple/vs12/simple.vs12.vcxproj)6
-rw-r--r--km/build/wdk8.1update/special/nt_path_converter/.gitignore (renamed from src/simple/vs12/.gitignore)0
-rw-r--r--km/build/wdk8.1update/special/nt_path_converter/nt_path_converter.vs12.sln (renamed from src/nt_path_converter/vs12/nt_path_converter.vs12.sln)0
-rw-r--r--km/build/wdk8.1update/special/nt_path_converter/nt_path_converter.vs12.vcxproj (renamed from src/nt_path_converter/vs12/nt_path_converter.vs12.vcxproj)12
-rw-r--r--km/build/wdk8.1update/special/sysenter/.gitignore (renamed from src/sysenter/vs12/.gitignore)0
-rw-r--r--km/build/wdk8.1update/special/sysenter/sysenter.vs12.sln (renamed from src/sysenter/vs12/sysenter.vs12.sln)0
-rw-r--r--km/build/wdk8.1update/special/sysenter/sysenter.vs12.vcxproj (renamed from src/sysenter/vs12/sysenter.vs12.vcxproj)2
22 files changed, 26 insertions, 20 deletions
diff --git a/km/build/wdk7.1/.gitignore b/km/build/wdk7.1/.gitignore
new file mode 100644
index 0000000..e6416c5
--- /dev/null
+++ b/km/build/wdk7.1/.gitignore
@@ -0,0 +1,2 @@
+/bin/
+/lib/
diff --git a/add_cert.bat b/km/build/wdk7.1/add_cert.bat
index 7223a2a..7223a2a 100644
--- a/add_cert.bat
+++ b/km/build/wdk7.1/add_cert.bat
diff --git a/build_driver.bat b/km/build/wdk7.1/build_driver.bat
index 83961ad..1cf2a9a 100644
--- a/build_driver.bat
+++ b/km/build/wdk7.1/build_driver.bat
@@ -57,7 +57,7 @@ set "lib_path=%driver_src_root%\obj%BUILD_ALT_DIR%\%buildarch_directory%\%driver
if exist "%sys_path%" (
echo.
- call "%root%\sign.bat" "%sys_path%" || exit /b !errorlevel!
+ call "%build_root%\sign.bat" "%sys_path%" || exit /b !errorlevel!
)
echo.
diff --git a/build_drivers.bat b/km/build/wdk7.1/build_drivers.bat
index 8bec487..35b2867 100644
--- a/build_drivers.bat
+++ b/km/build/wdk7.1/build_drivers.bat
@@ -6,7 +6,7 @@
@setlocal enabledelayedexpansion
@echo off
-for /f "delims=" %%i in ('dir /s sources /b') do (
+for /f "delims=" %%i in ('dir "%src_root%\sources" /b /s') do (
set "driver_src_root=%%~dpi"
echo.
call build_driver.bat "!driver_src_root:~0,-1!" || exit /b !errorlevel!
diff --git a/check_ddk.bat b/km/build/wdk7.1/check_ddk.bat
index 0c4d414..aaabd76 100644
--- a/check_ddk.bat
+++ b/km/build/wdk7.1/check_ddk.bat
@@ -11,8 +11,8 @@ call check_env.bat || exit /b !errorlevel!
if not defined BUILD_ALT_DIR goto :ddk_not_set
if not defined _BUILDARCH goto :ddk_not_set
-if not exist "%root%\sign.bat" (
- echo Error: %root%\sign.bat was not found ^(don^'t know how to sign drivers otherwise^) >&2
+if not exist "%build_root%\sign.bat" (
+ echo Error: %build_root%\sign.bat was not found ^(don^'t know how to sign drivers otherwise^) >&2
exit /b 1
)
diff --git a/check_env.bat b/km/build/wdk7.1/check_env.bat
index f3cb382..f3cb382 100644
--- a/check_env.bat
+++ b/km/build/wdk7.1/check_env.bat
diff --git a/clean_driver.bat b/km/build/wdk7.1/clean_driver.bat
index 2a98624..2a98624 100644
--- a/clean_driver.bat
+++ b/km/build/wdk7.1/clean_driver.bat
diff --git a/clean_drivers.bat b/km/build/wdk7.1/clean_drivers.bat
index ca2e48e..8442c90 100644
--- a/clean_drivers.bat
+++ b/km/build/wdk7.1/clean_drivers.bat
@@ -6,7 +6,7 @@
@setlocal enabledelayedexpansion
@echo off
-for /f "delims=" %%i in ('dir /s sources /b') do (
+for /f "delims=" %%i in ('dir "%src_root%\sources" /b /s') do (
set "driver_src_root=%%~dpi"
echo.
call clean_driver.bat "!driver_src_root:~0,-1!" || exit /b !errorlevel!
diff --git a/setenv.bat b/km/build/wdk7.1/setenv.bat
index ee164df..c77bb92 100644
--- a/setenv.bat
+++ b/km/build/wdk7.1/setenv.bat
@@ -5,10 +5,14 @@
@echo off
-set "root=%~dp0%"
-set "src_root=%root%src"
-set "bin_root=%root%bin"
-set "lib_root=%root%lib"
+set "build_root=%~dp0%"
+
+set "root=%build_root%\..\..\.."
+for /f "delims=" %%i in ("%root%") do set "root=%%~fi"
+
+set "src_root=%root%\km\src"
+set "bin_root=%root%\km\build\wdk7.1\bin"
+set "lib_root=%root%\km\build\wdk7.1\lib"
set target_configuration=Release
diff --git a/sign.bat b/km/build/wdk7.1/sign.bat
index 9955ac2..9955ac2 100644
--- a/sign.bat
+++ b/km/build/wdk7.1/sign.bat
diff --git a/src/minimal/vs12/.gitignore b/km/build/wdk8.1update/minimal/.gitignore
index cd42ee3..cd42ee3 100644
--- a/src/minimal/vs12/.gitignore
+++ b/km/build/wdk8.1update/minimal/.gitignore
diff --git a/src/minimal/vs12/minimal.vs12.sln b/km/build/wdk8.1update/minimal/minimal.vs12.sln
index ad150d0..ad150d0 100644
--- a/src/minimal/vs12/minimal.vs12.sln
+++ b/km/build/wdk8.1update/minimal/minimal.vs12.sln
diff --git a/src/minimal/vs12/minimal.vs12.vcxproj b/km/build/wdk8.1update/minimal/minimal.vs12.vcxproj
index b50d993..fae1fe4 100644
--- a/src/minimal/vs12/minimal.vs12.vcxproj
+++ b/km/build/wdk8.1update/minimal/minimal.vs12.vcxproj
@@ -277,7 +277,7 @@
<FilesToPackage Include="@(Inf->'%(CopyOutput)')" Condition="'@(Inf)'!=''" />
</ItemGroup>
<ItemGroup>
- <ClCompile Include="..\main.c" />
+ <ClCompile Include="..\..\..\src\minimal\main.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/src/nt_path_converter/vs12/.gitignore b/km/build/wdk8.1update/simple/.gitignore
index cd42ee3..cd42ee3 100644
--- a/src/nt_path_converter/vs12/.gitignore
+++ b/km/build/wdk8.1update/simple/.gitignore
diff --git a/src/simple/vs12/simple.vs12.sln b/km/build/wdk8.1update/simple/simple.vs12.sln
index 2b1ad11..2b1ad11 100644
--- a/src/simple/vs12/simple.vs12.sln
+++ b/km/build/wdk8.1update/simple/simple.vs12.sln
diff --git a/src/simple/vs12/simple.vs12.vcxproj b/km/build/wdk8.1update/simple/simple.vs12.vcxproj
index 5fee57f..b758480 100644
--- a/src/simple/vs12/simple.vs12.vcxproj
+++ b/km/build/wdk8.1update/simple/simple.vs12.vcxproj
@@ -217,11 +217,11 @@
<FilesToPackage Include="@(Inf->'%(CopyOutput)')" Condition="'@(Inf)'!=''" />
</ItemGroup>
<ItemGroup>
- <ClCompile Include="..\device.c" />
- <ClCompile Include="..\main.c" />
+ <ClCompile Include="..\..\..\src\simple\device.c" />
+ <ClCompile Include="..\..\..\src\simple\main.c" />
</ItemGroup>
<ItemGroup>
- <ClInclude Include="..\device.h" />
+ <ClInclude Include="..\..\..\src\simple\device.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/src/simple/vs12/.gitignore b/km/build/wdk8.1update/special/nt_path_converter/.gitignore
index cd42ee3..cd42ee3 100644
--- a/src/simple/vs12/.gitignore
+++ b/km/build/wdk8.1update/special/nt_path_converter/.gitignore
diff --git a/src/nt_path_converter/vs12/nt_path_converter.vs12.sln b/km/build/wdk8.1update/special/nt_path_converter/nt_path_converter.vs12.sln
index 45cf003..45cf003 100644
--- a/src/nt_path_converter/vs12/nt_path_converter.vs12.sln
+++ b/km/build/wdk8.1update/special/nt_path_converter/nt_path_converter.vs12.sln
diff --git a/src/nt_path_converter/vs12/nt_path_converter.vs12.vcxproj b/km/build/wdk8.1update/special/nt_path_converter/nt_path_converter.vs12.vcxproj
index 4a50b17..f87134e 100644
--- a/src/nt_path_converter/vs12/nt_path_converter.vs12.vcxproj
+++ b/km/build/wdk8.1update/special/nt_path_converter/nt_path_converter.vs12.vcxproj
@@ -217,14 +217,14 @@
<FilesToPackage Include="@(Inf->'%(CopyOutput)')" Condition="'@(Inf)'!=''" />
</ItemGroup>
<ItemGroup>
- <ClInclude Include="..\control_codes.h" />
- <ClInclude Include="..\device.h" />
- <ClInclude Include="..\nt2dos.h" />
+ <ClInclude Include="..\..\..\..\src\special\nt_path_converter\control_codes.h" />
+ <ClInclude Include="..\..\..\..\src\special\nt_path_converter\device.h" />
+ <ClInclude Include="..\..\..\..\src\special\nt_path_converter\nt2dos.h" />
</ItemGroup>
<ItemGroup>
- <ClCompile Include="..\device.c" />
- <ClCompile Include="..\main.c" />
- <ClCompile Include="..\nt2dos.c" />
+ <ClCompile Include="..\..\..\..\src\special\nt_path_converter\device.c" />
+ <ClCompile Include="..\..\..\..\src\special\nt_path_converter\main.c" />
+ <ClCompile Include="..\..\..\..\src\special\nt_path_converter\nt2dos.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/src/sysenter/vs12/.gitignore b/km/build/wdk8.1update/special/sysenter/.gitignore
index cd42ee3..cd42ee3 100644
--- a/src/sysenter/vs12/.gitignore
+++ b/km/build/wdk8.1update/special/sysenter/.gitignore
diff --git a/src/sysenter/vs12/sysenter.vs12.sln b/km/build/wdk8.1update/special/sysenter/sysenter.vs12.sln
index ec3ab31..ec3ab31 100644
--- a/src/sysenter/vs12/sysenter.vs12.sln
+++ b/km/build/wdk8.1update/special/sysenter/sysenter.vs12.sln
diff --git a/src/sysenter/vs12/sysenter.vs12.vcxproj b/km/build/wdk8.1update/special/sysenter/sysenter.vs12.vcxproj
index eaba723..966eb6a 100644
--- a/src/sysenter/vs12/sysenter.vs12.vcxproj
+++ b/km/build/wdk8.1update/special/sysenter/sysenter.vs12.vcxproj
@@ -57,7 +57,7 @@
<FilesToPackage Include="@(Inf->'%(CopyOutput)')" Condition="'@(Inf)'!=''" />
</ItemGroup>
<ItemGroup>
- <ClCompile Include="..\main.c" />
+ <ClCompile Include="..\..\..\..\src\special\sysenter\main.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">