summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-12-26 12:09:45 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-27 22:52:58 +0000
commit549854c05ed8e21691c4076b29b92ee998cf6e72 (patch)
treee84c5f31f43220808853d0c6968ca178a24fab56 /meta/recipes-bsp
parent46c9a322301b2cc195ac04ea82c8059ce4cd4367 (diff)
downloadpoky-549854c05ed8e21691c4076b29b92ee998cf6e72.tar.gz
grub2: Fix passing null to printf formats
Backport a patch that helps with this error which is found by gcc9 (From OE-Core rev: 93419fb569b827056a422614d3dc29cd41b2b6bb) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r--meta/recipes-bsp/grub/files/0001-grub-setup-Debug-message-cleanup.patch34
-rw-r--r--meta/recipes-bsp/grub/grub2.inc1
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-bsp/grub/files/0001-grub-setup-Debug-message-cleanup.patch b/meta/recipes-bsp/grub/files/0001-grub-setup-Debug-message-cleanup.patch
new file mode 100644
index 0000000000..e01fcdffb0
--- /dev/null
+++ b/meta/recipes-bsp/grub/files/0001-grub-setup-Debug-message-cleanup.patch
@@ -0,0 +1,34 @@
1From 4e9d9358e0cda6d01020005eb6343e3b69f7201a Mon Sep 17 00:00:00 2001
2From: Cao jin <caoj.fnst@cn.fujitsu.com>
3Date: Tue, 3 Jul 2018 18:51:13 +0800
4Subject: [PATCH] grub-setup: Debug message cleanup
5
6Variable "root" is initialized after root device probing and is null in
7current place, so, drop it.
8
9Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
10Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
11---
12Upstream-Status: Backport [http://git.savannah.gnu.org/cgit/grub.git/commit/?id=4e9d9358e0cda6d01020005eb6343e3b69f7201a]
13
14 util/setup.c | 3 +--
15 1 file changed, 1 insertion(+), 2 deletions(-)
16
17diff --git a/util/setup.c b/util/setup.c
18index 80363075d..9c1e1b7da 100644
19--- a/util/setup.c
20+++ b/util/setup.c
21@@ -305,9 +305,8 @@ SETUP (const char *dir,
22 bl.first_block = (struct grub_boot_blocklist *) (core_img
23 + GRUB_DISK_SECTOR_SIZE
24 - sizeof (*bl.block));
25- grub_util_info ("root is `%s', dest is `%s'", root, dest);
26
27- grub_util_info ("Opening dest");
28+ grub_util_info ("Opening dest `%s'", dest);
29 dest_dev = grub_device_open (dest);
30 if (! dest_dev)
31 grub_util_error ("%s", grub_errmsg);
32--
332.17.2 (Apple Git-113)
34
diff --git a/meta/recipes-bsp/grub/grub2.inc b/meta/recipes-bsp/grub/grub2.inc
index 325eca25bb..8e0f86217c 100644
--- a/meta/recipes-bsp/grub/grub2.inc
+++ b/meta/recipes-bsp/grub/grub2.inc
@@ -20,6 +20,7 @@ SRC_URI = "https://ftp.gnu.org/gnu/grub/grub-${PV}.tar.gz \
20 file://fix.build.with.gcc-7.patch \ 20 file://fix.build.with.gcc-7.patch \
21 file://gcc8.patch \ 21 file://gcc8.patch \
22 file://0001-x86-64-Treat-R_X86_64_PLT32-as-R_X86_64_PC32.patch \ 22 file://0001-x86-64-Treat-R_X86_64_PLT32-as-R_X86_64_PC32.patch \
23 file://0001-grub-setup-Debug-message-cleanup.patch \
23" 24"
24SRC_URI[md5sum] = "1116d1f60c840e6dbd67abbc99acb45d" 25SRC_URI[md5sum] = "1116d1f60c840e6dbd67abbc99acb45d"
25SRC_URI[sha256sum] = "660ee136fbcee08858516ed4de2ad87068bfe1b6b8b37896ce3529ff054a726d" 26SRC_URI[sha256sum] = "660ee136fbcee08858516ed4de2ad87068bfe1b6b8b37896ce3529ff054a726d"