diff options
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/syslinux/syslinux/0010-gcc46-compatibility.patch | 37 | ||||
-rw-r--r-- | meta/recipes-devtools/syslinux/syslinux_6.03.bb | 1 |
2 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/syslinux/syslinux/0010-gcc46-compatibility.patch b/meta/recipes-devtools/syslinux/syslinux/0010-gcc46-compatibility.patch new file mode 100644 index 0000000000..6279258c2e --- /dev/null +++ b/meta/recipes-devtools/syslinux/syslinux/0010-gcc46-compatibility.patch | |||
@@ -0,0 +1,37 @@ | |||
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 | Adapted from gnu-efi | ||
8 | |||
9 | Author: Steve Langasek <steve.langasek@ubuntu.com> | ||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Index: syslinux-6.03/efi64/include/efi/x86_64/efibind.h | ||
13 | =================================================================== | ||
14 | --- syslinux-6.03.orig/efi64/include/efi/x86_64/efibind.h | ||
15 | +++ syslinux-6.03/efi64/include/efi/x86_64/efibind.h | ||
16 | @@ -25,8 +25,6 @@ Revision History | ||
17 | #if defined(GNU_EFI_USE_MS_ABI) | ||
18 | #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) | ||
19 | #define HAVE_USE_MS_ABI 1 | ||
20 | - #else | ||
21 | - #error Compiler is too old for GNU_EFI_USE_MS_ABI | ||
22 | #endif | ||
23 | #endif | ||
24 | |||
25 | Index: syslinux-6.03/gnu-efi/gnu-efi-3.0/inc/x86_64/efibind.h | ||
26 | =================================================================== | ||
27 | --- syslinux-6.03.orig/gnu-efi/gnu-efi-3.0/inc/x86_64/efibind.h | ||
28 | +++ syslinux-6.03/gnu-efi/gnu-efi-3.0/inc/x86_64/efibind.h | ||
29 | @@ -25,8 +25,6 @@ Revision History | ||
30 | #if defined(GNU_EFI_USE_MS_ABI) | ||
31 | #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) | ||
32 | #define HAVE_USE_MS_ABI 1 | ||
33 | - #else | ||
34 | - #error Compiler is too old for GNU_EFI_USE_MS_ABI | ||
35 | #endif | ||
36 | #endif | ||
37 | |||
diff --git a/meta/recipes-devtools/syslinux/syslinux_6.03.bb b/meta/recipes-devtools/syslinux/syslinux_6.03.bb index ef9ae2fbea..94077da25d 100644 --- a/meta/recipes-devtools/syslinux/syslinux_6.03.bb +++ b/meta/recipes-devtools/syslinux/syslinux_6.03.bb | |||
@@ -21,6 +21,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/boot/syslinux/syslinux-${PV}.tar.xz \ | |||
21 | file://0007-linux-syslinux-implement-ext_construct_sectmap_fs.patch \ | 21 | file://0007-linux-syslinux-implement-ext_construct_sectmap_fs.patch \ |
22 | file://0008-libinstaller-syslinuxext-implement-syslinux_patch_bo.patch \ | 22 | file://0008-libinstaller-syslinuxext-implement-syslinux_patch_bo.patch \ |
23 | file://0009-linux-syslinux-implement-install_bootblock.patch \ | 23 | file://0009-linux-syslinux-implement-install_bootblock.patch \ |
24 | file://0010-gcc46-compatibility.patch \ | ||
24 | " | 25 | " |
25 | 26 | ||
26 | SRC_URI[md5sum] = "92a253df9211e9c20172796ecf388f13" | 27 | SRC_URI[md5sum] = "92a253df9211e9c20172796ecf388f13" |