mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
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>
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
Upstream-Status: Backport
|
||||||
|
|
||||||
|
Original commit: http://git.savannah.gnu.org/cgit/grub.git/commit/grub-core/net/bootp.c?id=f06c2172c0b32052f22e37523445cf8e7affaea3
|
||||||
|
|
||||||
|
From 149d2a14f4723778ced23f439487201ccbf1a2c9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Thu, 23 Apr 2015 07:03:34 +0000
|
||||||
|
Subject: [PATCH] parse_dhcp_vendor: Add missing const qualifiers.
|
||||||
|
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
grub-core/net/bootp.c | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/grub-core/net/bootp.c b/grub-core/net/bootp.c
|
||||||
|
index bc07d53..44131ed 100644
|
||||||
|
--- a/grub-core/net/bootp.c
|
||||||
|
+++ b/grub-core/net/bootp.c
|
||||||
|
@@ -52,9 +52,9 @@ set_env_limn_ro (const char *intername, const char *suffix,
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
-parse_dhcp_vendor (const char *name, void *vend, int limit, int *mask)
|
||||||
|
+parse_dhcp_vendor (const char *name, const void *vend, int limit, int *mask)
|
||||||
|
{
|
||||||
|
- grub_uint8_t *ptr, *ptr0;
|
||||||
|
+ const grub_uint8_t *ptr, *ptr0;
|
||||||
|
|
||||||
|
ptr = ptr0 = vend;
|
||||||
|
|
||||||
|
--
|
||||||
|
2.1.4
|
||||||
|
|
||||||
@@ -25,6 +25,7 @@ SRC_URI = "ftp://ftp.gnu.org/gnu/grub/grub-${PV}.tar.gz \
|
|||||||
file://grub-efi-allow-a-compilation-without-mcmodel-large.patch \
|
file://grub-efi-allow-a-compilation-without-mcmodel-large.patch \
|
||||||
file://grub-efi-fix-with-glibc-2.20.patch \
|
file://grub-efi-fix-with-glibc-2.20.patch \
|
||||||
file://0001-Unset-need_charset_alias-when-building-for-musl.patch \
|
file://0001-Unset-need_charset_alias-when-building-for-musl.patch \
|
||||||
|
file://0001-parse_dhcp_vendor-Add-missing-const-qualifiers.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
DEPENDS = "flex-native bison-native xz"
|
DEPENDS = "flex-native bison-native xz"
|
||||||
|
|||||||
Reference in New Issue
Block a user