diff options
Diffstat (limited to 'meta/recipes-bsp/gnu-efi/gnu-efi/gcc46-compatibility.patch')
-rw-r--r-- | meta/recipes-bsp/gnu-efi/gnu-efi/gcc46-compatibility.patch | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi/gcc46-compatibility.patch b/meta/recipes-bsp/gnu-efi/gnu-efi/gcc46-compatibility.patch index 0ce6d7b0cb..69efd34e24 100644 --- a/meta/recipes-bsp/gnu-efi/gnu-efi/gcc46-compatibility.patch +++ b/meta/recipes-bsp/gnu-efi/gnu-efi/gcc46-compatibility.patch | |||
@@ -1,3 +1,8 @@ | |||
1 | From 8d16ae374c5d4d9fac45c002605a66cfb8c08be5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Steve Langasek <steve.langasek@ubuntu.com> | ||
3 | Date: Wed, 9 Sep 2015 08:26:06 +0000 | ||
4 | Subject: [PATCH 3/3] gnu-efi, syslinux: Support gcc < 4.7 | ||
5 | |||
1 | don't break with old compilers and -DGNU_EFI_USE_MS_ABI | 6 | don't break with old compilers and -DGNU_EFI_USE_MS_ABI |
2 | It's entirely legitimate to request GNU_EFI_USE_MS_ABI even if the current | 7 | It's entirely legitimate to request GNU_EFI_USE_MS_ABI even if the current |
3 | compiler doesn't support it, and gnu-efi should transparently fall back to | 8 | compiler doesn't support it, and gnu-efi should transparently fall back to |
@@ -6,16 +11,25 @@ checking, but at least it will still compile. | |||
6 | 11 | ||
7 | Author: Steve Langasek <steve.langasek@ubuntu.com> | 12 | Author: Steve Langasek <steve.langasek@ubuntu.com> |
8 | Upstream-Status: Pending | 13 | Upstream-Status: Pending |
9 | Index: gnu-efi-3.0.3/inc/x86_64/efibind.h | 14 | [Rebased for 3.0.6] |
10 | =================================================================== | 15 | Signed-off-by: California Sullivan <california.l.sullivan@intel.com> |
11 | --- gnu-efi-3.0.3.orig/inc/x86_64/efibind.h | 16 | --- |
12 | +++ gnu-efi-3.0.3/inc/x86_64/efibind.h | 17 | inc/x86_64/efibind.h | 2 -- |
18 | 1 file changed, 2 deletions(-) | ||
19 | |||
20 | diff --git a/inc/x86_64/efibind.h b/inc/x86_64/efibind.h | ||
21 | index 4309f9f..02c0af1 100644 | ||
22 | --- a/inc/x86_64/efibind.h | ||
23 | +++ b/inc/x86_64/efibind.h | ||
13 | @@ -25,8 +25,6 @@ Revision History | 24 | @@ -25,8 +25,6 @@ Revision History |
14 | #if defined(GNU_EFI_USE_MS_ABI) | 25 | #if defined(GNU_EFI_USE_MS_ABI) |
15 | #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) | 26 | #if (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)))||(defined(__clang__) && (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 2))) |
16 | #define HAVE_USE_MS_ABI 1 | 27 | #define HAVE_USE_MS_ABI 1 |
17 | - #else | 28 | - #else |
18 | - #error Compiler is too old for GNU_EFI_USE_MS_ABI | 29 | - #error Compiler is too old for GNU_EFI_USE_MS_ABI |
19 | #endif | 30 | #endif |
20 | #endif | 31 | #endif |
21 | 32 | ||
33 | -- | ||
34 | 2.9.4 | ||
35 | |||