grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Generic halt and reboot commands (was: Re: grub2 efi patches)


From: Alexandre Boeglin
Subject: Generic halt and reboot commands (was: Re: grub2 efi patches)
Date: Sun, 10 Feb 2008 17:37:27 +0100
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Le mar 05 fév 2008 à 23:10:23 +0100, Robert Millan a écrit :
> On Tue, Feb 05, 2008 at 10:39:29PM +0100, Alexandre Boeglin wrote:
> > Le mer 23 jan 2008 à 12:43:31 +0100, Robert Millan a écrit :
> > > commands/ieee1275/halt.c looks like the same thing to me.  Perhaps it'd 
> > > make
> > > more sense to move that to commands/halt.c and use it as the "generic" 
> > > version
> > > of halt command?
> > 
> > Ok, is there any objection ?
> 
> Please post a patch first;  it'd be preferred if someone (maybe me!) tests it
> on ieee1275 to make sure it didn't break anything.

Here is the Changelog, patch is attached.

* conf/i386-efi.rmk (grub_emu_SOURCES): Replace commands/i386/pc/halt.c and
  reboot.c by commands/halt.c and reboot.c.
  (grub_install_SOURCES): Add halt.mod and reboot.mod.
  (halt_mod_SOURCES): New variable.
  (halt_mod_CFLAGS): Likewise.
  (halt_mod_LDFLAGS): Likewise.
  (reboot_mod_SOURCES): Likewise.
  (reboot_mod_CFLAGS): Likewise.
  (reboot_mod_LDFLAGS): Likewise.

* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace commands/ieee1275/halt.c
  and reboot.c by commands/halt.c and reboot.c.
  (halt_mod_SOURCES): Likewise.
  (reboot_mod_SOURCES): Likewise.

* conf/i386-pc.rmk (grub_emu_SOURCES): Replace commands/i386/pc/reboot.c by
  commands/reboot.c.
  (reboot_mod_SOURCES): Likewise.

* commands/i386/pc/reboot.c: merge this file ...

* commands/ieee1275/reboot.c: ... and this file ...

* commands/reboot.c: ... to this file.
  Add some precompiler directive to include the correct header for each
  machine.

* commands/ieee1275/halt.c: move this file ...

* commands/halt.c: ... to here.
  Add some precompiler directive to include the correct header for each
  machine.

* include/grub/efi/efi.h (grub_reboot): New function declaration.
  (grub_halt): Likewise.

* kern/efi/efi.c (grub_reboot): New function.
  (grub_halt): Likewise.

Attachment: grub2_haltreboot.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]