[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH] i386: don't include lib/i386/reset.c in EFI builds
From: |
Leif Lindholm |
Subject: |
[RFC PATCH] i386: don't include lib/i386/reset.c in EFI builds |
Date: |
Mon, 9 Jul 2018 19:49:06 +0100 |
Commit 0ba90a7f0178 ("efi: Move grub_reboot() into kernel") broke
the build on i386-efi - genmoddep.awk bails out with message
grub_reboot in reboot is duplicated in kernel
This is because both lib/i386/reset.c and kern/efi/efi.c now provide
this function.
Rather than explicitly list each i386 platform variant in
Makefile.core.def, include the contents of lib/i386/reset.c only when
GRUB_MACHINE_EFI is not set.
Signed-off-by: Leif Lindholm <address@hidden>
---
grub-core/lib/i386/reboot.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/grub-core/lib/i386/reboot.c b/grub-core/lib/i386/reboot.c
index a234244dc..9dd00d421 100644
--- a/grub-core/lib/i386/reboot.c
+++ b/grub-core/lib/i386/reboot.c
@@ -16,6 +16,8 @@
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef GRUB_MACHINE_EFI
+
#include <grub/relocator.h>
#include <grub/cpu/relocator.h>
#include <grub/misc.h>
@@ -58,3 +60,5 @@ grub_reboot (void)
while (1);
}
+
+#endif /* ndef GRUB_MACHINE_EFI */
--
2.11.0
- [RFC PATCH] i386: don't include lib/i386/reset.c in EFI builds,
Leif Lindholm <=
- Re: [RFC PATCH] i386: don't include lib/i386/reset.c in EFI builds, Daniel Kiper, 2018/07/11
- Re: [RFC PATCH] i386: don't include lib/i386/reset.c in EFI builds, Leif Lindholm, 2018/07/11
- Re: [RFC PATCH] i386: don't include lib/i386/reset.c in EFI builds, Daniel Kiper, 2018/07/12
- Re: [RFC PATCH] i386: don't include lib/i386/reset.c in EFI builds, Leif Lindholm, 2018/07/12
- Re: [RFC PATCH] i386: don't include lib/i386/reset.c in EFI builds, Daniel Kiper, 2018/07/13
- Re: [RFC PATCH] i386: don't include lib/i386/reset.c in EFI builds, Leif Lindholm, 2018/07/13
- Re: [RFC PATCH] i386: don't include lib/i386/reset.c in EFI builds, Daniel Kiper, 2018/07/13
- Re: [RFC PATCH] i386: don't include lib/i386/reset.c in EFI builds, Leif Lindholm, 2018/07/13
- Re: [RFC PATCH] i386: don't include lib/i386/reset.c in EFI builds, Daniel Kiper, 2018/07/25