mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 14:32:58 +00:00
e1531466e1
This change updates grub to the 2.04 release. The new release changed how grub is built, so the bootstrap and bootstrap.conf files have to be added to the dist-git. Also, the gitignore file changed so it has to be updated. Since the patches have been forward ported to 2.04, there's no need for a logic to maintain a patch with the delta between the release and the grub master branch. So the release-to-master.patch is dropped and no longer is updated by the do-rebase script. Also since gnulib isn't part of the grub repository anymore and cloned by the boostrap tool, a gnulib tarball is included as other source file and copied before calling the bootstrap tool. That way grub can be built even in builders that only have access to the sources lookaside cache. Resolves: rhbz#1727279 Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
46 lines
1.7 KiB
Diff
46 lines
1.7 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Peter Jones <pjones@redhat.com>
|
|
Date: Thu, 1 Jun 2017 10:07:50 -0400
|
|
Subject: [PATCH] Add PRIxGRUB_EFI_STATUS and use it.
|
|
|
|
This avoids syntax checkers getting confused about if it's llx or lx.
|
|
|
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
---
|
|
grub-core/loader/efi/chainloader.c | 3 ++-
|
|
include/grub/efi/api.h | 8 ++++++++
|
|
2 files changed, 10 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/grub-core/loader/efi/chainloader.c b/grub-core/loader/efi/chainloader.c
|
|
index 3a724a9fcbf..f4ddbeda687 100644
|
|
--- a/grub-core/loader/efi/chainloader.c
|
|
+++ b/grub-core/loader/efi/chainloader.c
|
|
@@ -789,7 +789,8 @@ handle_image (void *data, grub_efi_uint32_t datasize)
|
|
efi_status = efi_call_2 (entry_point, grub_efi_image_handle,
|
|
grub_efi_system_table);
|
|
|
|
- grub_dprintf ("chain", "entry_point returned %ld\n", efi_status);
|
|
+ grub_dprintf ("chain", "entry_point returned 0x%"PRIxGRUB_EFI_STATUS"\n",
|
|
+ efi_status);
|
|
grub_memcpy (li, &li_bak, sizeof (grub_efi_loaded_image_t));
|
|
efi_status = grub_efi_free_pool (buffer);
|
|
|
|
diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h
|
|
index d97cdf98c80..955973ed484 100644
|
|
--- a/include/grub/efi/api.h
|
|
+++ b/include/grub/efi/api.h
|
|
@@ -527,6 +527,14 @@ typedef grub_uint8_t grub_efi_char8_t;
|
|
typedef grub_uint16_t grub_efi_char16_t;
|
|
|
|
typedef grub_efi_intn_t grub_efi_status_t;
|
|
+/* Make grub_efi_status_t reasonably printable. */
|
|
+#if GRUB_CPU_SIZEOF_VOID_P == 8
|
|
+#define PRIxGRUB_EFI_STATUS "lx"
|
|
+#define PRIdGRUB_EFI_STATUS "ld"
|
|
+#else
|
|
+#define PRIxGRUB_EFI_STATUS "llx"
|
|
+#define PRIdGRUB_EFI_STATUS "lld"
|
|
+#endif
|
|
|
|
#define GRUB_EFI_ERROR_CODE(value) \
|
|
((((grub_efi_status_t) 1) << (sizeof (grub_efi_status_t) * 8 - 1)) | (value))
|