aboutsummaryrefslogtreecommitdiffstats
path: root/testing/edk2/build-hack.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-11-16 16:47:07 +0200
committerTimo Teräs <timo.teras@iki.fi>2016-11-16 15:05:59 +0000
commit06c4742ba83f61aedb7ac5ceadcd501cfd65b934 (patch)
tree59f198fafe2da9734c2320e6742551475ecabb4d /testing/edk2/build-hack.patch
parent4a3a8807fb455042bc4cc8641583511ada295222 (diff)
downloadaports-06c4742ba83f61aedb7ac5ceadcd501cfd65b934.tar.bz2
aports-06c4742ba83f61aedb7ac5ceadcd501cfd65b934.tar.xz
testing/edk2: new aport
EFI Development Kit II + Open Virtual Machine Firmware http://www.tianocore.org/edk2/
Diffstat (limited to 'testing/edk2/build-hack.patch')
-rw-r--r--testing/edk2/build-hack.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/edk2/build-hack.patch b/testing/edk2/build-hack.patch
new file mode 100644
index 0000000000..5573717b0d
--- /dev/null
+++ b/testing/edk2/build-hack.patch
@@ -0,0 +1,26 @@
+VfrCompile seg.faults with fortify enabled. It's probably broken.
+VolInfo does not compile due to -fshort-wchar not being supported by musl. The only major problem is the printf, so comment it out.
+
+diff -ru a/edk2-e242cdfb307a6dfe2c0f75c4719f5c1f6b418625/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp b/edk2-e242cdfb307a6dfe2c0f75c4719f5c1f6b418625/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp
+--- edk2-e242cdfb307a6dfe2c0f75c4719f5c1f6b418625/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp 2016-11-16 10:01:14.000000000 +0200
++++ edk2-e242cdfb307a6dfe2c0f75c4719f5c1f6b418625/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp 2016-11-16 14:47:30.211978076 +0200
+@@ -13,6 +13,7 @@
+
+ **/
+
++#define _FORTIFY_SOURCE 0
+ #include "stdio.h"
+ #include "stdlib.h"
+ #include "CommonLib.h"
+diff -ru a/edk2-e242cdfb307a6dfe2c0f75c4719f5c1f6b418625/BaseTools/Source/C/VolInfo/VolInfo.c b/edk2-e242cdfb307a6dfe2c0f75c4719f5c1f6b418625/BaseTools/Source/C/VolInfo/VolInfo.c
+--- edk2-e242cdfb307a6dfe2c0f75c4719f5c1f6b418625/BaseTools/Source/C/VolInfo/VolInfo.c 2016-11-16 10:01:14.000000000 +0200
++++ edk2-e242cdfb307a6dfe2c0f75c4719f5c1f6b418625/BaseTools/Source/C/VolInfo/VolInfo.c 2016-11-16 11:12:40.182415584 +0200
+@@ -1714,7 +1714,7 @@
+ break;
+
+ case EFI_SECTION_USER_INTERFACE:
+- printf (" String: %ls\n", (wchar_t *) &((EFI_USER_INTERFACE_SECTION *) Ptr)->FileNameString);
++ //printf (" String: %ls\n", (wchar_t *) &((EFI_USER_INTERFACE_SECTION *) Ptr)->FileNameString);
+ break;
+
+ case EFI_SECTION_FIRMWARE_VOLUME_IMAGE: