2018-03-15 19:05:59 +00:00
|
|
|
From a0029e01e10b5077c88aa56b12314ace5e9c3e4e Mon Sep 17 00:00:00 2001
|
2018-02-27 18:56:41 +00:00
|
|
|
From: Javier Martinez Canillas <javierm@redhat.com>
|
|
|
|
Date: Tue, 6 Feb 2018 11:16:28 +0100
|
2018-03-16 19:23:37 +00:00
|
|
|
Subject: [PATCH 204/216] Don't attempt to backtrace on grub_abort() for
|
2018-02-27 18:56:41 +00:00
|
|
|
grub-emu
|
|
|
|
|
|
|
|
The emu platform doesn't have a grub_backtrace() implementation, so this
|
|
|
|
causes a build error. Don't attempt to call this when building grub-emu.
|
|
|
|
|
|
|
|
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
|
|
|
|
---
|
|
|
|
grub-core/kern/misc.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/grub-core/kern/misc.c b/grub-core/kern/misc.c
|
|
|
|
index 04371ac49f2..636f97e1ba1 100644
|
|
|
|
--- a/grub-core/kern/misc.c
|
|
|
|
+++ b/grub-core/kern/misc.c
|
|
|
|
@@ -1103,7 +1103,7 @@ static void __attribute__ ((noreturn))
|
|
|
|
grub_abort (void)
|
|
|
|
{
|
|
|
|
#ifndef GRUB_UTIL
|
|
|
|
-#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
+#if (defined(__i386__) || defined(__x86_64__)) && !defined(GRUB_MACHINE_EMU)
|
|
|
|
grub_backtrace();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
--
|
|
|
|
2.15.0
|
|
|
|
|