2017-02-16 08:12:06 +01:00
|
|
|
---
|
|
|
|
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(-)
|
|
|
|
|
2019-10-18 12:18:53 +02:00
|
|
|
Index: grub-2.04~rc1/Makefile.util.def
|
2017-02-16 08:12:06 +01:00
|
|
|
===================================================================
|
2019-10-18 12:18:53 +02:00
|
|
|
--- grub-2.04~rc1.orig/Makefile.util.def
|
|
|
|
+++ grub-2.04~rc1/Makefile.util.def
|
|
|
|
@@ -362,7 +362,7 @@ program = {
|
|
|
|
ldadd = grub-core/lib/gnulib/libgnu.a;
|
2017-02-16 08:12:06 +01:00
|
|
|
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 = {
|
2019-10-18 12:18:53 +02:00
|
|
|
@@ -383,7 +383,7 @@ program = {
|
|
|
|
ldadd = grub-core/lib/gnulib/libgnu.a;
|
2017-02-16 08:12:06 +01:00
|
|
|
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 = {
|
2019-10-18 12:18:53 +02:00
|
|
|
@@ -399,7 +399,7 @@ program = {
|
2017-02-16 08:12:06 +01:00
|
|
|
ldadd = libgrubkern.a;
|
2019-10-18 12:18:53 +02:00
|
|
|
ldadd = grub-core/lib/gnulib/libgnu.a;
|
2017-02-16 08:12:06 +01:00
|
|
|
ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
|
|
|
|
- emu_condition = COND_NOT_s390x;
|
|
|
|
+ emu_condition = COND_NOT_emu;
|
|
|
|
};
|
|
|
|
|
|
|
|
program = {
|
2019-10-18 12:18:53 +02:00
|
|
|
@@ -430,7 +430,7 @@ program = {
|
2017-02-16 08:12:06 +01:00
|
|
|
ldadd = libgrubkern.a;
|
2019-10-18 12:18:53 +02:00
|
|
|
ldadd = grub-core/lib/gnulib/libgnu.a;
|
2017-02-16 08:12:06 +01:00
|
|
|
ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
|
|
|
|
- emu_condition = COND_NOT_s390x;
|
|
|
|
+ emu_condition = COND_NOT_emu;
|
|
|
|
};
|
|
|
|
|
|
|
|
data = {
|
2019-10-18 12:18:53 +02:00
|
|
|
@@ -1361,7 +1361,7 @@ program = {
|
2017-02-16 08:12:06 +01:00
|
|
|
ldadd = libgrubkern.a;
|
2019-10-18 12:18:53 +02:00
|
|
|
ldadd = grub-core/lib/gnulib/libgnu.a;
|
2017-02-16 08:12:06 +01:00
|
|
|
ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
|
|
|
|
- emu_condition = COND_NOT_s390x;
|
|
|
|
+ emu_condition = COND_NOT_emu;
|
|
|
|
};
|
|
|
|
|
|
|
|
program = {
|
2019-10-18 12:18:53 +02:00
|
|
|
Index: grub-2.04~rc1/grub-core/Makefile.core.def
|
2017-02-16 08:12:06 +01:00
|
|
|
===================================================================
|
2019-10-18 12:18:53 +02:00
|
|
|
--- grub-2.04~rc1.orig/grub-core/Makefile.core.def
|
|
|
|
+++ grub-2.04~rc1/grub-core/Makefile.core.def
|
|
|
|
@@ -1139,7 +1139,7 @@ module = {
|
2017-02-16 08:12:06 +01:00
|
|
|
module = {
|
|
|
|
name = videotest;
|
|
|
|
common = commands/videotest.c;
|
|
|
|
- emu_condition = COND_NOT_s390x;
|
|
|
|
+ emu_condition = COND_NOT_emu;
|
|
|
|
};
|
|
|
|
|
|
|
|
module = {
|
2019-10-18 12:18:53 +02:00
|
|
|
@@ -1572,7 +1572,7 @@ module = {
|
2017-02-16 08:12:06 +01:00
|
|
|
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 = {
|
2019-10-18 12:18:53 +02:00
|
|
|
@@ -2008,13 +2008,13 @@ module = {
|
2017-02-16 08:12:06 +01:00
|
|
|
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 = {
|
2019-10-18 12:18:53 +02:00
|
|
|
@@ -2133,9 +2133,7 @@ module = {
|
|
|
|
enable = i386_xen_pvh;
|
2017-02-16 08:12:06 +01:00
|
|
|
enable = i386_efi;
|
|
|
|
enable = x86_64_efi;
|
|
|
|
- enable = emu;
|
|
|
|
enable = xen;
|
|
|
|
- emu_condition = COND_NOT_s390x;
|
|
|
|
};
|
|
|
|
|
|
|
|
module = {
|
2019-10-18 12:18:53 +02:00
|
|
|
@@ -2182,7 +2180,7 @@ module = {
|
2017-02-16 08:12:06 +01:00
|
|
|
module = {
|
|
|
|
name = gfxterm_menu;
|
|
|
|
common = tests/gfxterm_menu.c;
|
|
|
|
- emu_condition = COND_NOT_s390x;
|
|
|
|
+ emu_condition = COND_NOT_emu;
|
|
|
|
};
|
|
|
|
|
|
|
|
module = {
|
2019-10-18 12:18:53 +02:00
|
|
|
@@ -2334,9 +2332,7 @@ module = {
|
|
|
|
enable = i386_xen_pvh;
|
2017-02-16 08:12:06 +01:00
|
|
|
enable = i386_efi;
|
|
|
|
enable = x86_64_efi;
|
|
|
|
- enable = emu;
|
|
|
|
enable = xen;
|
|
|
|
- emu_condition = COND_NOT_s390x;
|
|
|
|
};
|
|
|
|
|
|
|
|
module = {
|
2019-10-18 12:18:53 +02:00
|
|
|
Index: grub-2.04~rc1/configure.ac
|
2017-02-16 08:12:06 +01:00
|
|
|
===================================================================
|
2019-10-18 12:18:53 +02:00
|
|
|
--- grub-2.04~rc1.orig/configure.ac
|
|
|
|
+++ grub-2.04~rc1/configure.ac
|
|
|
|
@@ -1911,6 +1911,7 @@ AC_SUBST(BUILD_LIBM)
|
2017-02-16 08:12:06 +01:00
|
|
|
|
|
|
|
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])
|
2019-10-18 12:18:53 +02:00
|
|
|
Index: grub-2.04~rc1/grub-core/osdep/unix/emuconsole.c
|
2017-02-16 08:12:06 +01:00
|
|
|
===================================================================
|
2019-10-18 12:18:53 +02:00
|
|
|
--- grub-2.04~rc1.orig/grub-core/osdep/unix/emuconsole.c
|
|
|
|
+++ grub-2.04~rc1/grub-core/osdep/unix/emuconsole.c
|
2017-02-16 08:12:06 +01:00
|
|
|
@@ -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,
|