diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-04-27 19:19:56 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-04-27 19:19:56 +0300 |
commit | 974bd0388994715b4fa35ac54986e3c1ed4e3f55 (patch) | |
tree | 53b23c15bde662804ecb7ef8f54026ff883a7cc2 /km | |
parent | sysenter: add missing configurations to solution (diff) | |
download | windows7-drivers-974bd0388994715b4fa35ac54986e3c1ed4e3f55.tar.gz windows7-drivers-974bd0388994715b4fa35ac54986e3c1ed4e3f55.zip |
reorganize files
* src/ -> km/src/
* utils/ -> um/
* Move WDK 7.1-specific *.bat files to km/build/wdk7.1/
* Move WDK 8.1 Update 1 solutions to km/build/wdk8.1update/
Diffstat (limited to '')
-rw-r--r-- | km/build/wdk7.1/.gitignore | 2 | ||||
-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 | ||||
-rw-r--r-- | km/src/dirs | 1 | ||||
-rw-r--r-- | km/src/minimal/main.c (renamed from src/minimal/main.c) | 0 | ||||
-rw-r--r-- | km/src/minimal/makefile (renamed from src/minimal/makefile) | 0 | ||||
-rw-r--r-- | km/src/minimal/sources (renamed from src/minimal/sources) | 0 | ||||
-rw-r--r-- | km/src/simple/device.c (renamed from src/simple/device.c) | 0 | ||||
-rw-r--r-- | km/src/simple/device.h (renamed from src/nt_path_converter/device.h) | 0 | ||||
-rw-r--r-- | km/src/simple/main.c (renamed from src/simple/main.c) | 0 | ||||
-rw-r--r-- | km/src/simple/makefile (renamed from src/nt_path_converter/makefile) | 0 | ||||
-rw-r--r-- | km/src/simple/sources (renamed from src/simple/sources) | 0 | ||||
-rw-r--r-- | km/src/special/dirs | 1 | ||||
-rw-r--r-- | km/src/special/nt_path_converter/control_codes.h (renamed from src/nt_path_converter/control_codes.h) | 0 | ||||
-rw-r--r-- | km/src/special/nt_path_converter/device.c (renamed from src/nt_path_converter/device.c) | 0 | ||||
-rw-r--r-- | km/src/special/nt_path_converter/device.h (renamed from src/simple/device.h) | 0 | ||||
-rw-r--r-- | km/src/special/nt_path_converter/main.c (renamed from src/nt_path_converter/main.c) | 0 | ||||
-rw-r--r-- | km/src/special/nt_path_converter/makefile (renamed from src/simple/makefile) | 0 | ||||
-rw-r--r-- | km/src/special/nt_path_converter/nt2dos.c (renamed from src/nt_path_converter/nt2dos.c) | 0 | ||||
-rw-r--r-- | km/src/special/nt_path_converter/nt2dos.h (renamed from src/nt_path_converter/nt2dos.h) | 0 | ||||
-rw-r--r-- | km/src/special/nt_path_converter/sources (renamed from src/nt_path_converter/sources) | 0 | ||||
-rw-r--r-- | km/src/special/sysenter/main.c (renamed from src/sysenter/main.c) | 0 | ||||
-rw-r--r-- | km/src/special/sysenter/makefile (renamed from src/sysenter/makefile) | 0 | ||||
-rw-r--r-- | km/src/special/sysenter/sources (renamed from src/sysenter/sources) | 0 |
43 files changed, 28 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"> diff --git a/km/src/dirs b/km/src/dirs new file mode 100644 index 0000000..a32bc1d --- /dev/null +++ b/km/src/dirs @@ -0,0 +1 @@ +DIRS = minimal simple special diff --git a/src/minimal/main.c b/km/src/minimal/main.c index 6983929..6983929 100644 --- a/src/minimal/main.c +++ b/km/src/minimal/main.c diff --git a/src/minimal/makefile b/km/src/minimal/makefile index 5acbbd2..5acbbd2 100644 --- a/src/minimal/makefile +++ b/km/src/minimal/makefile diff --git a/src/minimal/sources b/km/src/minimal/sources index b6e92c3..b6e92c3 100644 --- a/src/minimal/sources +++ b/km/src/minimal/sources diff --git a/src/simple/device.c b/km/src/simple/device.c index 859ba67..859ba67 100644 --- a/src/simple/device.c +++ b/km/src/simple/device.c diff --git a/src/nt_path_converter/device.h b/km/src/simple/device.h index 4f117e9..4f117e9 100644 --- a/src/nt_path_converter/device.h +++ b/km/src/simple/device.h diff --git a/src/simple/main.c b/km/src/simple/main.c index 5148727..5148727 100644 --- a/src/simple/main.c +++ b/km/src/simple/main.c diff --git a/src/nt_path_converter/makefile b/km/src/simple/makefile index 5acbbd2..5acbbd2 100644 --- a/src/nt_path_converter/makefile +++ b/km/src/simple/makefile diff --git a/src/simple/sources b/km/src/simple/sources index 1a5ce00..1a5ce00 100644 --- a/src/simple/sources +++ b/km/src/simple/sources diff --git a/km/src/special/dirs b/km/src/special/dirs new file mode 100644 index 0000000..479f4db --- /dev/null +++ b/km/src/special/dirs @@ -0,0 +1 @@ +DIRS = nt_path_converter sysenter diff --git a/src/nt_path_converter/control_codes.h b/km/src/special/nt_path_converter/control_codes.h index 3fb2aff..3fb2aff 100644 --- a/src/nt_path_converter/control_codes.h +++ b/km/src/special/nt_path_converter/control_codes.h diff --git a/src/nt_path_converter/device.c b/km/src/special/nt_path_converter/device.c index a179984..a179984 100644 --- a/src/nt_path_converter/device.c +++ b/km/src/special/nt_path_converter/device.c diff --git a/src/simple/device.h b/km/src/special/nt_path_converter/device.h index 4f117e9..4f117e9 100644 --- a/src/simple/device.h +++ b/km/src/special/nt_path_converter/device.h diff --git a/src/nt_path_converter/main.c b/km/src/special/nt_path_converter/main.c index a1c08e8..a1c08e8 100644 --- a/src/nt_path_converter/main.c +++ b/km/src/special/nt_path_converter/main.c diff --git a/src/simple/makefile b/km/src/special/nt_path_converter/makefile index 5acbbd2..5acbbd2 100644 --- a/src/simple/makefile +++ b/km/src/special/nt_path_converter/makefile diff --git a/src/nt_path_converter/nt2dos.c b/km/src/special/nt_path_converter/nt2dos.c index d1bdb3d..d1bdb3d 100644 --- a/src/nt_path_converter/nt2dos.c +++ b/km/src/special/nt_path_converter/nt2dos.c diff --git a/src/nt_path_converter/nt2dos.h b/km/src/special/nt_path_converter/nt2dos.h index ce0b690..ce0b690 100644 --- a/src/nt_path_converter/nt2dos.h +++ b/km/src/special/nt_path_converter/nt2dos.h diff --git a/src/nt_path_converter/sources b/km/src/special/nt_path_converter/sources index 02a42cd..02a42cd 100644 --- a/src/nt_path_converter/sources +++ b/km/src/special/nt_path_converter/sources diff --git a/src/sysenter/main.c b/km/src/special/sysenter/main.c index 9eb9b28..9eb9b28 100644 --- a/src/sysenter/main.c +++ b/km/src/special/sysenter/main.c diff --git a/src/sysenter/makefile b/km/src/special/sysenter/makefile index 5acbbd2..5acbbd2 100644 --- a/src/sysenter/makefile +++ b/km/src/special/sysenter/makefile diff --git a/src/sysenter/sources b/km/src/special/sysenter/sources index d6371b3..d6371b3 100644 --- a/src/sysenter/sources +++ b/km/src/special/sysenter/sources |