aboutsummaryrefslogtreecommitdiff
path: root/payloads/external/tianocore/patches/09_gcc7-Fix-building-with-fpermissive.patch
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2018-06-17 11:03:49 +0200
committerNico Huber <nico.h@gmx.de>2018-06-28 13:37:56 +0000
commit1ce225b5a39d81e49f04497ce23ebb672b57eb6a (patch)
tree56fcb5fb49fb29f40e2367e7c5b0b6145c351365 /payloads/external/tianocore/patches/09_gcc7-Fix-building-with-fpermissive.patch
parent11f8c9d9be8eb492d00b8d7a29614fdc0553387e (diff)
tianocore: Add more patches
* Fix building BaseTools in hostgcc v8.1.0+ * Fix buidling tianocore on gcc v7.0.0+ Change-Id: I7e2efea930b27749b1097607ab143ce2f91e79ec Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/27137 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'payloads/external/tianocore/patches/09_gcc7-Fix-building-with-fpermissive.patch')
-rw-r--r--payloads/external/tianocore/patches/09_gcc7-Fix-building-with-fpermissive.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/payloads/external/tianocore/patches/09_gcc7-Fix-building-with-fpermissive.patch b/payloads/external/tianocore/patches/09_gcc7-Fix-building-with-fpermissive.patch
new file mode 100644
index 0000000000..701675988d
--- /dev/null
+++ b/payloads/external/tianocore/patches/09_gcc7-Fix-building-with-fpermissive.patch
@@ -0,0 +1,40 @@
+From 5546ab29b2c0c2fc3a963bc71221918dc77b6152 Mon Sep 17 00:00:00 2001
+From: Patrick Rudolph <siro@das-labor.org>
+Date: Sun, 17 Jun 2018 08:53:25 +0200
+Subject: [PATCH] gcc7: Fix building with -fpermissive
+
+Signed-off-by: Patrick Rudolph <siro@das-labor.org>
+---
+ BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp | 2 +-
+ MdeModulePkg/Library/UefiHiiLib/HiiLib.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp b/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp
+index 3ca57ed741..4fa066dd9f 100644
+--- a/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp
++++ b/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp
+@@ -3372,7 +3372,7 @@ CVfrStringDB::GetVarStoreNameFormStringId (
+ UINT8 BlockType;
+ EFI_HII_STRING_PACKAGE_HDR *PkgHeader;
+
+- if (mStringFileName == '\0' ) {
++ if (mStringFileName == NULL ) {
+ return NULL;
+ }
+
+diff --git a/MdeModulePkg/Library/UefiHiiLib/HiiLib.c b/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
+index 857950118f..de0aa5f7bc 100644
+--- a/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
++++ b/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
+@@ -2181,7 +2181,7 @@ InternalHiiIfrValueAction (
+
+ StringPtr = ConfigAltResp;
+
+- while (StringPtr != L'\0') {
++ while (StringPtr != NULL) {
+ //
+ // 1. Find <ConfigHdr> GUID=...&NAME=...&PATH=...
+ //
+--
+2.17.0
+