c85662cbfa
- Merge changes from SLE12 - add grub2-emu-4-all.patch * Build 'grub2-emu' wherever possible, to allow a better implementation of that feature. - add grub2-s390x-06-loadparm.patch, - add grub2-commands-introduce-read_file-subcommand.patch: * allow s390x to telecontrol grub2. (bsc#891946, bsc#892852) - add grub2-s390x-06-loadparm.patch: * ignore case and fix transliteration of parameter. (bsc#891946) - add grub2-s390x-07-add-image-param-for-zipl-setup.patch * Add --image switch to force zipl update to specific kernel (bsc#928131) - add grub2-s390x-08-workaround-part-to-disk.patch * Ignore partition tables on s390x. (bsc#935127) - add grub2-efi-chainload-harder.patch: * allow XEN to be chain-loaded despite firmware flaws. (bnc#887793) * Do not use shim lock protocol for reading pe header, it won't be available when secure boot disabled (bsc#943380) * Make firmware flaw condition be more precisely detected and add debug message for the case * Check msdos header to find PE file header (bsc#954126) - grub2-s390x-04-grub2-install.patch: * streamline boot to grub menu. (bsc#898198) * Force '/usr' to read-only before calling kexec. (bsc#932951) - grub2-once: * add '--enum' option to enumerate boot-entries in a way actually understood by 'grub2'. (bsc#892852, bsc#892811) * Examine variables from grub environment in 'grub2-once'. (fate#319632) OBS-URL: https://build.opensuse.org/request/show/457610 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=254
171 lines
4.7 KiB
Diff
171 lines
4.7 KiB
Diff
---
|
|
Makefile.util.def | 10 +++++-----
|
|
configure.ac | 1 +
|
|
grub-core/Makefile.core.def | 14 +++++---------
|
|
grub-core/osdep/unix/emuconsole.c | 5 +++--
|
|
4 files changed, 14 insertions(+), 16 deletions(-)
|
|
|
|
Index: grub-2.02~rc1/Makefile.util.def
|
|
===================================================================
|
|
--- grub-2.02~rc1.orig/Makefile.util.def
|
|
+++ grub-2.02~rc1/Makefile.util.def
|
|
@@ -352,7 +352,7 @@ program = {
|
|
ldadd = grub-core/gnulib/libgnu.a;
|
|
ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
|
|
cppflags = '-DGRUB_SETUP_FUNC=grub_util_bios_setup';
|
|
- emu_condition = COND_NOT_s390x;
|
|
+ emu_condition = COND_NOT_emu;
|
|
};
|
|
|
|
program = {
|
|
@@ -373,7 +373,7 @@ program = {
|
|
ldadd = grub-core/gnulib/libgnu.a;
|
|
ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
|
|
cppflags = '-DGRUB_SETUP_FUNC=grub_util_sparc_setup';
|
|
- emu_condition = COND_NOT_s390x;
|
|
+ emu_condition = COND_NOT_emu;
|
|
};
|
|
|
|
program = {
|
|
@@ -389,7 +389,7 @@ program = {
|
|
ldadd = libgrubkern.a;
|
|
ldadd = grub-core/gnulib/libgnu.a;
|
|
ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
|
|
- emu_condition = COND_NOT_s390x;
|
|
+ emu_condition = COND_NOT_emu;
|
|
};
|
|
|
|
program = {
|
|
@@ -420,7 +420,7 @@ program = {
|
|
ldadd = libgrubkern.a;
|
|
ldadd = grub-core/gnulib/libgnu.a;
|
|
ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
|
|
- emu_condition = COND_NOT_s390x;
|
|
+ emu_condition = COND_NOT_emu;
|
|
};
|
|
|
|
data = {
|
|
@@ -1345,7 +1345,7 @@ program = {
|
|
ldadd = libgrubkern.a;
|
|
ldadd = grub-core/gnulib/libgnu.a;
|
|
ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
|
|
- emu_condition = COND_NOT_s390x;
|
|
+ emu_condition = COND_NOT_emu;
|
|
};
|
|
|
|
program = {
|
|
Index: grub-2.02~rc1/grub-core/Makefile.core.def
|
|
===================================================================
|
|
--- grub-2.02~rc1.orig/grub-core/Makefile.core.def
|
|
+++ grub-2.02~rc1/grub-core/Makefile.core.def
|
|
@@ -1057,7 +1057,7 @@ module = {
|
|
module = {
|
|
name = videotest;
|
|
common = commands/videotest.c;
|
|
- emu_condition = COND_NOT_s390x;
|
|
+ emu_condition = COND_NOT_emu;
|
|
};
|
|
|
|
module = {
|
|
@@ -1470,7 +1470,7 @@ module = {
|
|
common = gfxmenu/gui_progress_bar.c;
|
|
common = gfxmenu/gui_util.c;
|
|
common = gfxmenu/gui_string_util.c;
|
|
- emu_condition = COND_NOT_s390x;
|
|
+ emu_condition = COND_NOT_emu;
|
|
};
|
|
|
|
module = {
|
|
@@ -1886,13 +1886,13 @@ module = {
|
|
name = gfxterm;
|
|
common = term/gfxterm.c;
|
|
enable = videomodules;
|
|
- emu_condition = COND_NOT_s390x;
|
|
+ emu_condition = COND_NOT_emu;
|
|
};
|
|
|
|
module = {
|
|
name = gfxterm_background;
|
|
common = term/gfxterm_background.c;
|
|
- emu_condition = COND_NOT_s390x;
|
|
+ emu_condition = COND_NOT_emu;
|
|
};
|
|
|
|
module = {
|
|
@@ -2005,9 +2005,7 @@ module = {
|
|
enable = i386_pc;
|
|
enable = i386_efi;
|
|
enable = x86_64_efi;
|
|
- enable = emu;
|
|
enable = xen;
|
|
- emu_condition = COND_NOT_s390x;
|
|
};
|
|
|
|
module = {
|
|
@@ -2054,7 +2052,7 @@ module = {
|
|
module = {
|
|
name = gfxterm_menu;
|
|
common = tests/gfxterm_menu.c;
|
|
- emu_condition = COND_NOT_s390x;
|
|
+ emu_condition = COND_NOT_emu;
|
|
};
|
|
|
|
module = {
|
|
@@ -2205,9 +2203,7 @@ module = {
|
|
enable = i386_pc;
|
|
enable = i386_efi;
|
|
enable = x86_64_efi;
|
|
- enable = emu;
|
|
enable = xen;
|
|
- emu_condition = COND_NOT_s390x;
|
|
};
|
|
|
|
module = {
|
|
Index: grub-2.02~rc1/configure.ac
|
|
===================================================================
|
|
--- grub-2.02~rc1.orig/configure.ac
|
|
+++ grub-2.02~rc1/configure.ac
|
|
@@ -1884,6 +1884,7 @@ AC_SUBST(BUILD_LIBM)
|
|
|
|
AM_CONDITIONAL([COND_real_platform], [test x$platform != xnone])
|
|
AM_CONDITIONAL([COND_emu], [test x$platform = xemu])
|
|
+AM_CONDITIONAL([COND_NOT_emu], [test x$platform != xemu])
|
|
AM_CONDITIONAL([COND_i386_pc], [test x$target_cpu = xi386 -a x$platform = xpc])
|
|
AM_CONDITIONAL([COND_i386_efi], [test x$target_cpu = xi386 -a x$platform = xefi])
|
|
AM_CONDITIONAL([COND_ia64_efi], [test x$target_cpu = xia64 -a x$platform = xefi])
|
|
Index: grub-2.02~rc1/grub-core/osdep/unix/emuconsole.c
|
|
===================================================================
|
|
--- grub-2.02~rc1.orig/grub-core/osdep/unix/emuconsole.c
|
|
+++ grub-2.02~rc1/grub-core/osdep/unix/emuconsole.c
|
|
@@ -50,13 +50,12 @@ static struct termios new_tty;
|
|
static int console_mode = 0;
|
|
|
|
#define MAX_LEN 1023
|
|
-#if defined(__s390x__)
|
|
+
|
|
static int
|
|
dummy (void)
|
|
{
|
|
return 0;
|
|
}
|
|
-#endif
|
|
#if 0
|
|
static char msg[MAX_LEN+1];
|
|
static void
|
|
@@ -128,6 +127,7 @@ readkey (struct grub_term_input *term)
|
|
return -1;
|
|
}
|
|
|
|
+#if defined(__s390x__)
|
|
#define NO_KEY ((grub_uint8_t)-1)
|
|
static int
|
|
readkey_dumb (struct grub_term_input *term)
|
|
@@ -158,6 +158,7 @@ readkey_dumb (struct grub_term_input *te
|
|
p = c;
|
|
return c;
|
|
}
|
|
+#endif
|
|
|
|
static void
|
|
grub_dumb_putchar (struct grub_term_output *term,
|