VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/Dcs_bld.bat
blob: ff55c7363cee79f53869bb992061793cb5c026c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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