mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 22:35:28 +00:00
81987f4958
- Try to fix things for new compiler madness. I really don't know why gcc decided __attribute__((packed)) on a "typedef struct" should imply __attribute__((align (1))) and that it should have a warning that it does so. The obvious behavior would be to keep the alignment of the first element unless it's used in another object or type that /also/ hask the packed attribute. Why should it change the default alignment at all? - Merge in the BLS patches Javier and I wrote. - Attempt to fix pmtimer initialization failures to not be super duper slow. Signed-off-by: Peter Jones <pjones@redhat.com>
56 lines
1.6 KiB
Diff
56 lines
1.6 KiB
Diff
From 8eed7be8a61c295df700e918744a984162378ca9 Mon Sep 17 00:00:00 2001
|
|
From: Fu Wei <fu.wei@linaro.org>
|
|
Date: Sun, 14 May 2017 15:43:45 +0800
|
|
Subject: [PATCH 039/206] arm64: Add "--nounzip" option support in xen_module
|
|
command
|
|
|
|
This patch adds "--nounzip" option support in order to
|
|
be compatible with the module command of multiboot on other architecture,
|
|
by this way we can simplify grub-mkconfig support code.
|
|
|
|
This patch also allow us to use zip compressed module(like Linux kernel
|
|
for Dom0).
|
|
|
|
Signed-off-by: Fu Wei <fu.wei@linaro.org>
|
|
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
|
---
|
|
grub-core/loader/arm64/xen_boot.c | 16 ++++++++++++++++
|
|
1 file changed, 16 insertions(+)
|
|
|
|
diff --git a/grub-core/loader/arm64/xen_boot.c b/grub-core/loader/arm64/xen_boot.c
|
|
index 8ae43d7e894..27ede46cac5 100644
|
|
--- a/grub-core/loader/arm64/xen_boot.c
|
|
+++ b/grub-core/loader/arm64/xen_boot.c
|
|
@@ -379,6 +379,20 @@ grub_cmd_xen_module (grub_command_t cmd __attribute__((unused)),
|
|
|
|
struct xen_boot_binary *module = NULL;
|
|
grub_file_t file = 0;
|
|
+ int nounzip = 0;
|
|
+
|
|
+ if (!argc)
|
|
+ {
|
|
+ grub_error (GRUB_ERR_BAD_ARGUMENT, N_("filename expected"));
|
|
+ goto fail;
|
|
+ }
|
|
+
|
|
+ if (grub_strcmp (argv[0], "--nounzip") == 0)
|
|
+ {
|
|
+ argv++;
|
|
+ argc--;
|
|
+ nounzip = 1;
|
|
+ }
|
|
|
|
if (!argc)
|
|
{
|
|
@@ -403,6 +417,8 @@ grub_cmd_xen_module (grub_command_t cmd __attribute__((unused)),
|
|
|
|
grub_dprintf ("xen_loader", "Init module and node info\n");
|
|
|
|
+ if (nounzip)
|
|
+ grub_file_filter_disable_compression ();
|
|
file = grub_file_open (argv[0]);
|
|
if (!file)
|
|
goto fail;
|
|
--
|
|
2.15.0
|
|
|