diff options
Diffstat (limited to 'meta/recipes-bsp/gnu-efi')
-rw-r--r-- | meta/recipes-bsp/gnu-efi/gnu-efi/0001-Mark-our-explicit-fall-through-so-Wextra-will-work-i.patch | 34 | ||||
-rw-r--r-- | meta/recipes-bsp/gnu-efi/gnu-efi/gcc46-compatibility.patch | 24 | ||||
-rw-r--r-- | meta/recipes-bsp/gnu-efi/gnu-efi/parallel-make-archives.patch | 54 | ||||
-rw-r--r-- | meta/recipes-bsp/gnu-efi/gnu-efi_3.0.6.bb (renamed from meta/recipes-bsp/gnu-efi/gnu-efi_3.0.5.bb) | 5 |
4 files changed, 51 insertions, 66 deletions
diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi/0001-Mark-our-explicit-fall-through-so-Wextra-will-work-i.patch b/meta/recipes-bsp/gnu-efi/gnu-efi/0001-Mark-our-explicit-fall-through-so-Wextra-will-work-i.patch deleted file mode 100644 index d0aeb2d560..0000000000 --- a/meta/recipes-bsp/gnu-efi/gnu-efi/0001-Mark-our-explicit-fall-through-so-Wextra-will-work-i.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From 676a8a9001f06808b4dbe0a545d76b5d9a8ebf48 Mon Sep 17 00:00:00 2001 | ||
2 | From: Peter Jones <pjones@redhat.com> | ||
3 | Date: Thu, 2 Feb 2017 13:51:27 -0500 | ||
4 | Subject: [PATCH] Mark our explicit fall through so -Wextra will work in gcc 7 | ||
5 | |||
6 | gcc 7 introduces detection of fall-through behavior in switch/case | ||
7 | statements, and will warn if -Wimplicit-fallthrough is present and there | ||
8 | is no comment stating that the fall-through is intentional. This is | ||
9 | also triggered by -Wextra, as it enables -Wimplicit-fallthrough=1. | ||
10 | |||
11 | This patch adds the comment in the one place we use fall-through. | ||
12 | |||
13 | Signed-off-by: Peter Jones <pjones@redhat.com> | ||
14 | --- | ||
15 | Upstream-Status: Pending | ||
16 | |||
17 | lib/print.c | 1 + | ||
18 | 1 file changed, 1 insertion(+) | ||
19 | |||
20 | diff --git a/lib/print.c b/lib/print.c | ||
21 | index b8a9d38..cb732f0 100644 | ||
22 | --- a/lib/print.c | ||
23 | +++ b/lib/print.c | ||
24 | @@ -1131,6 +1131,7 @@ Returns: | ||
25 | case 'X': | ||
26 | Item.Width = Item.Long ? 16 : 8; | ||
27 | Item.Pad = '0'; | ||
28 | + /* falls through */ | ||
29 | case 'x': | ||
30 | ValueToHex ( | ||
31 | Item.Scratch, | ||
32 | -- | ||
33 | 2.12.2 | ||
34 | |||
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 | |||
diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi/parallel-make-archives.patch b/meta/recipes-bsp/gnu-efi/gnu-efi/parallel-make-archives.patch index e5b47c197a..0110260bd8 100644 --- a/meta/recipes-bsp/gnu-efi/gnu-efi/parallel-make-archives.patch +++ b/meta/recipes-bsp/gnu-efi/gnu-efi/parallel-make-archives.patch | |||
@@ -1,4 +1,7 @@ | |||
1 | Fix parallel make failure for archives | 1 | From 16865de66db33ca70872199e70d93efccecc8575 Mon Sep 17 00:00:00 2001 |
2 | From: Saul Wold <sgw@linux.intel.com> | ||
3 | Date: Sun, 9 Mar 2014 15:22:15 +0200 | ||
4 | Subject: [PATCH 1/3] Fix parallel make failure for archives | ||
2 | 5 | ||
3 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
4 | 7 | ||
@@ -12,31 +15,18 @@ for details. | |||
12 | 15 | ||
13 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | 16 | Signed-off-by: Saul Wold <sgw@linux.intel.com> |
14 | Signed-off-by: Darren Hart <dvhart@linux.intel.com> | 17 | Signed-off-by: Darren Hart <dvhart@linux.intel.com> |
18 | [Rebased for 3.0.6] | ||
19 | Signed-off-by: California Sullivan <california.l.sullivan@intel.com> | ||
15 | --- | 20 | --- |
16 | --- | 21 | gnuefi/Makefile | 3 ++- |
17 | gnuefi/Makefile | 3 ++- | 22 | lib/Makefile | 2 +- |
18 | lib/Makefile | 3 ++- | 23 | 2 files changed, 3 insertions(+), 2 deletions(-) |
19 | 2 files changed, 4 insertions(+), 2 deletions(-) | ||
20 | 24 | ||
21 | Index: gnu-efi-3.0/lib/Makefile | 25 | diff --git a/gnuefi/Makefile b/gnuefi/Makefile |
22 | =================================================================== | 26 | index 2a61699..148106e 100644 |
23 | --- gnu-efi-3.0.orig/lib/Makefile | 27 | --- a/gnuefi/Makefile |
24 | +++ gnu-efi-3.0/lib/Makefile | 28 | +++ b/gnuefi/Makefile |
25 | @@ -66,7 +66,8 @@ all: libsubdirs libefi.a | 29 | @@ -54,7 +54,8 @@ TARGETS = crt0-efi-$(ARCH).o libgnuefi.a |
26 | libsubdirs: | ||
27 | for sdir in $(SUBDIRS); do mkdir -p $$sdir; done | ||
28 | |||
29 | -libefi.a: $(patsubst %,libefi.a(%),$(OBJS)) | ||
30 | +libefi.a: $(OBJS) | ||
31 | + $(AR) rv $@ $(OBJS) | ||
32 | |||
33 | clean: | ||
34 | rm -f libefi.a *~ $(OBJS) */*.o | ||
35 | Index: gnu-efi-3.0/gnuefi/Makefile | ||
36 | =================================================================== | ||
37 | --- gnu-efi-3.0.orig/gnuefi/Makefile | ||
38 | +++ gnu-efi-3.0/gnuefi/Makefile | ||
39 | @@ -51,7 +51,8 @@ TARGETS = crt0-efi-$(ARCH).o libgnuefi.a | ||
40 | 30 | ||
41 | all: $(TARGETS) | 31 | all: $(TARGETS) |
42 | 32 | ||
@@ -46,3 +36,19 @@ Index: gnu-efi-3.0/gnuefi/Makefile | |||
46 | 36 | ||
47 | clean: | 37 | clean: |
48 | rm -f $(TARGETS) *~ *.o $(OBJS) | 38 | rm -f $(TARGETS) *~ *.o $(OBJS) |
39 | diff --git a/lib/Makefile b/lib/Makefile | ||
40 | index b8d1ce7..6ef8107 100644 | ||
41 | --- a/lib/Makefile | ||
42 | +++ b/lib/Makefile | ||
43 | @@ -75,7 +75,7 @@ libsubdirs: | ||
44 | for sdir in $(SUBDIRS); do mkdir -p $$sdir; done | ||
45 | |||
46 | libefi.a: $(OBJS) | ||
47 | - $(AR) rv -U $@ $^ | ||
48 | + $(AR) rv $@ $(OBJS) | ||
49 | |||
50 | clean: | ||
51 | rm -f libefi.a *~ $(OBJS) */*.o | ||
52 | -- | ||
53 | 2.9.4 | ||
54 | |||
diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.5.bb b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.6.bb index 7346737396..2a60717480 100644 --- a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.5.bb +++ b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.6.bb | |||
@@ -16,11 +16,10 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2 \ | |||
16 | file://parallel-make-archives.patch \ | 16 | file://parallel-make-archives.patch \ |
17 | file://lib-Makefile-fix-parallel-issue.patch \ | 17 | file://lib-Makefile-fix-parallel-issue.patch \ |
18 | file://gcc46-compatibility.patch \ | 18 | file://gcc46-compatibility.patch \ |
19 | file://0001-Mark-our-explicit-fall-through-so-Wextra-will-work-i.patch \ | ||
20 | " | 19 | " |
21 | 20 | ||
22 | SRC_URI[md5sum] = "1f719c9c135778aa6b087b89a1cc2423" | 21 | SRC_URI[md5sum] = "46f633758a8a37db9fd6909fe270c26b" |
23 | SRC_URI[sha256sum] = "bd8fcd5914f18fc0e4ba948ab03b00013e528504f529c60739b748f6ef130b22" | 22 | SRC_URI[sha256sum] = "21515902d80fbea23328a61d70d3d51a47204abd1507ebfa27550a7b9bf22c91" |
24 | 23 | ||
25 | COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*)-linux" | 24 | COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*)-linux" |
26 | COMPATIBLE_HOST_armv4 = 'null' | 25 | COMPATIBLE_HOST_armv4 = 'null' |