All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/4] arm64: add "--nounzip" option support in xen_module command
@ 2016-02-25  6:39 fu.wei
  2016-02-25  6:39 ` [PATCH v2 2/4] * util/grub.d/20_linux_xen.in: Add xen_boot command support fu.wei
                   ` (2 more replies)
  0 siblings, 3 replies; 29+ messages in thread
From: fu.wei @ 2016-02-25  6:39 UTC (permalink / raw)
  To: grub-devel, arvidjaar, phcoder
  Cc: xen-devel, Ian.Campbell, jcm, julien.grall, leif.lindholm,
	linaro-uefi, Fu Wei

From: Fu Wei <fu.wei@linaro.org>

This patch adds "--nounzip" option support in order to
be compatible with the module command of i386, then we can
simplify grub-mkconfig support code.

Signed-off-by: Fu Wei <fu.wei@linaro.org>
---
 grub-core/loader/arm64/xen_boot.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/grub-core/loader/arm64/xen_boot.c b/grub-core/loader/arm64/xen_boot.c
index 8ae43d7..d63e631 100644
--- a/grub-core/loader/arm64/xen_boot.c
+++ b/grub-core/loader/arm64/xen_boot.c
@@ -20,6 +20,7 @@
 #include <grub/charset.h>
 #include <grub/command.h>
 #include <grub/err.h>
+#include <grub/env.h>
 #include <grub/file.h>
 #include <grub/fdt.h>
 #include <grub/list.h>
@@ -379,6 +380,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 +418,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.5.0

^ permalink raw reply related	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2016-03-01  4:02 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-25  6:39 [PATCH v2 1/4] arm64: add "--nounzip" option support in xen_module command fu.wei
2016-02-25  6:39 ` [PATCH v2 2/4] * util/grub.d/20_linux_xen.in: Add xen_boot command support fu.wei
2016-02-25  6:39 ` [PATCH v2 3/4] i386, xen: Add xen_hypervisor and xen_module aliases for i386 fu.wei
2016-02-25  6:39 ` [PATCH v2 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi fu.wei
2016-02-25 17:34   ` Andrei Borzenkov
2016-02-25 17:34     ` Andrei Borzenkov
2016-02-26  4:48     ` Fu Wei
2016-02-26  4:48       ` Fu Wei
2016-02-26  4:55       ` Fu Wei
2016-02-26  4:55         ` Fu Wei
2016-02-26  5:24       ` Andrei Borzenkov
2016-02-26  5:24         ` Andrei Borzenkov
2016-02-26  5:59         ` Fu Wei
2016-02-26  5:59           ` Fu Wei
2016-02-26 10:50           ` Andrei Borzenkov
2016-02-26 11:15             ` Fu Wei
2016-02-26 14:03               ` Vladimir 'φ-coder/phcoder' Serbinenko
2016-02-26 14:03                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2016-02-27  2:43                 ` Fu Wei
2016-02-27  2:43                   ` Fu Wei
2016-02-27 20:33               ` Konrad Rzeszutek Wilk
2016-02-28  5:10                 ` Andrei Borzenkov
2016-02-28  5:10                   ` Andrei Borzenkov
2016-02-29 14:41                   ` Konrad Rzeszutek Wilk
2016-03-01  4:02                     ` Andrei Borzenkov
2016-03-01  4:02                       ` Andrei Borzenkov
2016-02-25 22:26   ` Doug Goldstein
2016-02-25 22:26     ` [Xen-devel] " Doug Goldstein
2016-02-26  4:49     ` Fu Wei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.