From 7e73208e62b441f836f27433a4e297a0e07233b8 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 13 Sep 2015 00:16:14 +0200 Subject: 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 --- src/Boot/Windows/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Boot/Windows/Makefile') 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 .. -- cgit v1.2.3