VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Boot/Windows/Makefile
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-09-13 00:16:14 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-09-13 01:15:13 +0200
commit7e73208e62b441f836f27433a4e297a0e07233b8 (patch)
treea7b059661a63639731654bad2ff2829da0f3cdba /src/Boot/Windows/Makefile
parent22152878f883cb7d1e9ac56a5f59329afd26302b (diff)
downloadVeraCrypt-7e73208e62b441f836f27433a4e297a0e07233b8.tar.gz
VeraCrypt-7e73208e62b441f836f27433a4e297a0e07233b8.zip
Windows Bootloader: Fix Rescue Disk issue when Cascades and SHA256 used. It was caused by the bootloader becoming too big in this case with PIM implementation (larger than the limit of 31232 bytes). We also increase memory requirement for this case
Diffstat (limited to 'src/Boot/Windows/Makefile')
-rw-r--r--src/Boot/Windows/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Boot/Windows/Makefile b/src/Boot/Windows/Makefile
index e25965d7..3ce069c7 100644
--- a/src/Boot/Windows/Makefile
+++ b/src/Boot/Windows/Makefile
@@ -193,6 +193,10 @@ $(LIBS)
$(LD) $(LFLAGS) @$(PROJ).crf
del $(PROJ).crf $(PROJ).crf2
+# Compress the Rescue Disk botloader for Cascades and SHA2 since it is too big (size > 31232 bytes)
+!if DEFINED(RESCUE_DISK) && !DEFINED (SINGLE_CIPHER) && "$(SINGLE_PRF)" == "SHA2"
+ upx $(PROJ).$(TARGETEXT)
+!endif
gzip.exe -c -n --best $(PROJ).$(TARGETEXT) >$(PROJ).$(TARGETEXT).gz
-dd.exe conv=notrunc,sync bs=512 seek=5 if=$(PROJ).$(TARGETEXT).gz of=$(PROJ).flp 2>NUL:
cd ..