VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/Dcs_bld.bat
diff options
context:
space:
mode:
Diffstat (limited to 'Dcs_bld.bat')
-rw-r--r--Dcs_bld.bat39
1 files changed, 39 insertions, 0 deletions
diff --git a/Dcs_bld.bat b/Dcs_bld.bat
new file mode 100644
index 0000000..ff55c73
--- /dev/null
+++ b/Dcs_bld.bat
@@ -0,0 +1,39 @@
+pushd "%~dp0"
+
+set dcsarch=X64
+set dcstype=DEBUG
+set dcsbldtoolset=VS2010x86
+set dcspkgpath="%~dp0DcsPkg.dsc"
+
+if /I NOT ["%1"]==["X64Rel"] goto :IA32
+set dcsarch=X64
+set dcstype=RELEASE
+goto :bld
+
+:IA32
+if /I NOT ["%1"]==["IA32"] goto :IA32Rel
+set dcsarch=IA32
+set dcstype=DEBUG
+goto :bld
+
+:IA32Rel
+if /I NOT ["%1"]==["IA32rel"] goto :bld
+set dcsarch=IA32
+set dcstype=RELEASE
+
+:bld
+if /I ["%2"]==["VS2015"] set dcsbldtoolset=VS2015x86
+call bld.bat -t %dcsbldtoolset% -DSECURE_BOOT_ENABLE=1 -p %dcspkgpath% -b %dcstype% -a %dcsarch%
+
+if ERRORLEVEL 1 goto :exit
+if not exist SecureBoot\keys\DCS_sign.pfx goto :exit
+
+call SecureBoot\efi_sign.bat ..\Build\DcsPkg\%dcstype%_%dcsbldtoolset%\%dcsarch%\DcsBml.efi SecureBoot\keys\DCS_sign.pfx SecureBoot\certs\DCS_sign.crt
+call SecureBoot\efi_sign.bat ..\Build\DcsPkg\%dcstype%_%dcsbldtoolset%\%dcsarch%\DcsBoot.efi SecureBoot\keys\DCS_sign.pfx SecureBoot\certs\DCS_sign.crt
+call SecureBoot\efi_sign.bat ..\Build\DcsPkg\%dcstype%_%dcsbldtoolset%\%dcsarch%\DcsCfg.efi SecureBoot\keys\DCS_sign.pfx SecureBoot\certs\DCS_sign.crt
+call SecureBoot\efi_sign.bat ..\Build\DcsPkg\%dcstype%_%dcsbldtoolset%\%dcsarch%\DcsInt.efi SecureBoot\keys\DCS_sign.pfx SecureBoot\certs\DCS_sign.crt
+call SecureBoot\efi_sign.bat ..\Build\DcsPkg\%dcstype%_%dcsbldtoolset%\%dcsarch%\DcsRe.efi SecureBoot\keys\DCS_sign.pfx SecureBoot\certs\DCS_sign.crt
+call SecureBoot\efi_sign.bat ..\Build\DcsPkg\%dcstype%_%dcsbldtoolset%\%dcsarch%\LegacySpeaker.efi SecureBoot\keys\DCS_sign.pfx SecureBoot\certs\DCS_sign.crt
+
+:exit
+popd