summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/grub
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-04-23 20:35:28 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-27 14:59:49 +0100
commit3d2e60f0c98fca3d3f365509fdb0bc0fdd107fd4 (patch)
treed1f6b1caacd4249611958b2d279cc8163ffa9b34 /meta/recipes-bsp/grub
parentfb4478e20e38d9b59b8b8d00c57827114cc4c637 (diff)
downloadpoky-3d2e60f0c98fca3d3f365509fdb0bc0fdd107fd4.tar.gz
grub: Backport const qualifier fix for gcc-5
gcc-5 is stricter and complains about const to non-const conversions, we backport the patch from upstream into 2.00 Change-Id: I17db365fdd253daaa1ab726e2a70ecad0ac7b2ae (From OE-Core rev: 7d79a7bfffbc39090b22bb7696cc5dbc832e49b6) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/grub')
-rw-r--r--meta/recipes-bsp/grub/files/0001-parse_dhcp_vendor-Add-missing-const-qualifiers.patch33
-rw-r--r--meta/recipes-bsp/grub/grub2.inc1
2 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-bsp/grub/files/0001-parse_dhcp_vendor-Add-missing-const-qualifiers.patch b/meta/recipes-bsp/grub/files/0001-parse_dhcp_vendor-Add-missing-const-qualifiers.patch
new file mode 100644
index 0000000000..255e3eb7d6
--- /dev/null
+++ b/meta/recipes-bsp/grub/files/0001-parse_dhcp_vendor-Add-missing-const-qualifiers.patch
@@ -0,0 +1,33 @@
1Upstream-Status: Backport
2
3Original commit: http://git.savannah.gnu.org/cgit/grub.git/commit/grub-core/net/bootp.c?id=f06c2172c0b32052f22e37523445cf8e7affaea3
4
5From 149d2a14f4723778ced23f439487201ccbf1a2c9 Mon Sep 17 00:00:00 2001
6From: Khem Raj <raj.khem@gmail.com>
7Date: Thu, 23 Apr 2015 07:03:34 +0000
8Subject: [PATCH] parse_dhcp_vendor: Add missing const qualifiers.
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 grub-core/net/bootp.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/grub-core/net/bootp.c b/grub-core/net/bootp.c
16index bc07d53..44131ed 100644
17--- a/grub-core/net/bootp.c
18+++ b/grub-core/net/bootp.c
19@@ -52,9 +52,9 @@ set_env_limn_ro (const char *intername, const char *suffix,
20 }
21
22 static void
23-parse_dhcp_vendor (const char *name, void *vend, int limit, int *mask)
24+parse_dhcp_vendor (const char *name, const void *vend, int limit, int *mask)
25 {
26- grub_uint8_t *ptr, *ptr0;
27+ const grub_uint8_t *ptr, *ptr0;
28
29 ptr = ptr0 = vend;
30
31--
322.1.4
33
diff --git a/meta/recipes-bsp/grub/grub2.inc b/meta/recipes-bsp/grub/grub2.inc
index 08c0b6b257..add45864d1 100644
--- a/meta/recipes-bsp/grub/grub2.inc
+++ b/meta/recipes-bsp/grub/grub2.inc
@@ -25,6 +25,7 @@ SRC_URI = "ftp://ftp.gnu.org/gnu/grub/grub-${PV}.tar.gz \
25 file://grub-efi-allow-a-compilation-without-mcmodel-large.patch \ 25 file://grub-efi-allow-a-compilation-without-mcmodel-large.patch \
26 file://grub-efi-fix-with-glibc-2.20.patch \ 26 file://grub-efi-fix-with-glibc-2.20.patch \
27 file://0001-Unset-need_charset_alias-when-building-for-musl.patch \ 27 file://0001-Unset-need_charset_alias-when-building-for-musl.patch \
28 file://0001-parse_dhcp_vendor-Add-missing-const-qualifiers.patch \
28 " 29 "
29 30
30DEPENDS = "flex-native bison-native xz" 31DEPENDS = "flex-native bison-native xz"