2018-07-12 14:56:34 +00:00
|
|
|
From 0000000000000000000000000000000000000000 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-07-10 19:08:14 +00:00
|
|
|
Subject: [PATCH] Don't attempt to backtrace on grub_abort() for grub-emu
|
2018-02-27 18:56:41 +00:00
|
|
|
|
|
|
|
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
|
2022-04-18 21:58:58 +00:00
|
|
|
index a3e215155b..c60601b699 100644
|
2018-02-27 18:56:41 +00:00
|
|
|
--- a/grub-core/kern/misc.c
|
|
|
|
+++ b/grub-core/kern/misc.c
|
2021-03-12 21:54:28 +00:00
|
|
|
@@ -1201,7 +1201,7 @@ static void __attribute__ ((noreturn))
|
2018-02-27 18:56:41 +00:00
|
|
|
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
|