diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-09-09 08:26:06 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-23 09:53:01 +0100 |
commit | 05b9a0c6281bf9d356ec836acb003ac80b9726a3 (patch) | |
tree | 6454b3c952335f122d440d751b7b36f28fa8ff20 /meta/recipes-bsp/gnu-efi | |
parent | cdfd96eb92415a1b3eaf603ffc4a35978985ade4 (diff) | |
download | poky-05b9a0c6281bf9d356ec836acb003ac80b9726a3.tar.gz |
gnu-efi, syslinux: Support gcc < 4.7
This helps compiling the code with older gcc especially on older build
hosts, additionally clang advertizes itself as gcc 4.2.1 so it helps
compiling dependent modues using clang as well
(From OE-Core rev: 90e7cfebc6a9ac4b229b45c6a7dc95218efe55c5)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/gnu-efi')
-rw-r--r-- | meta/recipes-bsp/gnu-efi/gnu-efi/gcc46-compatibility.patch | 21 | ||||
-rw-r--r-- | meta/recipes-bsp/gnu-efi/gnu-efi_3.0.3.bb | 1 |
2 files changed, 22 insertions, 0 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 new file mode 100644 index 0000000000..0ce6d7b0cb --- /dev/null +++ b/meta/recipes-bsp/gnu-efi/gnu-efi/gcc46-compatibility.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | 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 | ||
3 | compiler doesn't support it, and gnu-efi should transparently fall back to | ||
4 | using legacy techniques to set the calling convention. We don't get type | ||
5 | checking, but at least it will still compile. | ||
6 | |||
7 | Author: Steve Langasek <steve.langasek@ubuntu.com> | ||
8 | Upstream-Status: Pending | ||
9 | Index: gnu-efi-3.0.3/inc/x86_64/efibind.h | ||
10 | =================================================================== | ||
11 | --- gnu-efi-3.0.3.orig/inc/x86_64/efibind.h | ||
12 | +++ gnu-efi-3.0.3/inc/x86_64/efibind.h | ||
13 | @@ -25,8 +25,6 @@ Revision History | ||
14 | #if defined(GNU_EFI_USE_MS_ABI) | ||
15 | #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) | ||
16 | #define HAVE_USE_MS_ABI 1 | ||
17 | - #else | ||
18 | - #error Compiler is too old for GNU_EFI_USE_MS_ABI | ||
19 | #endif | ||
20 | #endif | ||
21 | |||
diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.3.bb b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.3.bb index 1a1ba40226..eca34599ce 100644 --- a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.3.bb +++ b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.3.bb | |||
@@ -18,6 +18,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2 \ | |||
18 | file://parallel-make-archives.patch \ | 18 | file://parallel-make-archives.patch \ |
19 | file://lib-Makefile-fix-parallel-issue.patch \ | 19 | file://lib-Makefile-fix-parallel-issue.patch \ |
20 | file://gnu-efi-Make-setjmp.S-portable-to-ARM.patch \ | 20 | file://gnu-efi-Make-setjmp.S-portable-to-ARM.patch \ |
21 | file://gcc46-compatibility.patch \ | ||
21 | " | 22 | " |
22 | 23 | ||
23 | SRC_URI[md5sum] = "15a4bcbc18a9a5e8110ed955970622e6" | 24 | SRC_URI[md5sum] = "15a4bcbc18a9a5e8110ed955970622e6" |