aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-04-26 20:12:56 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-04-26 20:12:56 +0300
commita7d8ee9cd8007b4c4b22d9b49f460fd950d60d30 (patch)
tree92fde5ea75c9fadfa3916b96a0971ac47ef49ffc
parentsysenter: don't build on x64 using WDK 7.1 (diff)
downloadwindows7-drivers-a7d8ee9cd8007b4c4b22d9b49f460fd950d60d30.tar.gz
windows7-drivers-a7d8ee9cd8007b4c4b22d9b49f460fd950d60d30.zip
build_driver.bat: don't sign missing binaries
-rw-r--r--build_driver.bat14
1 files changed, 9 insertions, 5 deletions
diff --git a/build_driver.bat b/build_driver.bat
index 85e08ac..2020dd9 100644
--- a/build_driver.bat
+++ b/build_driver.bat
@@ -55,15 +55,19 @@ set sys_path=%driver_src_root%\obj%BUILD_ALT_DIR%\%buildarch_directory%\%driver_
set pdb_path=%driver_src_root%\obj%BUILD_ALT_DIR%\%buildarch_directory%\%driver_name%.pdb
set lib_path=%driver_src_root%\obj%BUILD_ALT_DIR%\%buildarch_directory%\%driver_name%.lib
-echo.
-call "%root%\sign.bat" "%sys_path%" || exit /b !errorlevel!
+if exist "%sys_path%" (
+ echo.
+ call "%root%\sign.bat" "%sys_path%" || exit /b !errorlevel!
+)
echo.
echo ============================== DISTR ==============================
-call :distr_copy "%pdb_path%" "%pdb_dist_dir%" || goto :distr_failure
-call :distr_copy "%sys_path%" "%sys_dist_dir%" || goto :distr_failure
+if exist "%sys_path%" (
+ call :distr_copy "%sys_path%" "%sys_dist_dir%" || goto :distr_failure
+ call :distr_copy "%pdb_path%" "%pdb_dist_dir%" || goto :distr_failure
+)
if exist "%lib_path%" (
- call :distr_copy "%lib_path%" || goto :distr_failure
+ call :distr_copy "%lib_path%" "%lib_dist_dir%" || goto :distr_failure
)
echo ========================== DISTR SUCCESS ==========================
exit /b