[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH] i386: don't include lib/i386/reset.c in EFI builds
From: |
Daniel Kiper |
Subject: |
Re: [RFC PATCH] i386: don't include lib/i386/reset.c in EFI builds |
Date: |
Wed, 11 Jul 2018 13:03:12 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Jul 09, 2018 at 07:49:06PM +0100, Leif Lindholm wrote:
> 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.
Could you try the patch below? It seems better to me.
diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def
index fc4767f..820ddc3 100644
--- a/grub-core/Makefile.core.def
+++ b/grub-core/Makefile.core.def
@@ -870,8 +870,8 @@ module = {
module = {
name = reboot;
- i386 = lib/i386/reboot.c;
- i386 = lib/i386/reboot_trampoline.S;
+ i386_pc = lib/i386/reboot.c;
+ i386_pc = lib/i386/reboot_trampoline.S;
powerpc_ieee1275 = lib/ieee1275/reboot.c;
sparc64_ieee1275 = lib/ieee1275/reboot.c;
mips_arc = lib/mips/arc/reboot.c;
Daniel
- [RFC PATCH] i386: don't include lib/i386/reset.c in EFI builds, Leif Lindholm, 2018/07/09
- Re: [RFC PATCH] i386: don't include lib/i386/reset.c in EFI builds,
Daniel Kiper <=
- 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