From b87fc6b140772ba3017de311c7063c259424264c Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 15 Aug 2016 17:11:31 +0200 Subject: First public release. Used by VeraCrypt 1.18. --- Dcs_bld.bat | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Dcs_bld.bat (limited to 'Dcs_bld.bat') 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 -- cgit v1.2.3