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

2008-02-12 Thread Robert Millan
On Tue, Feb 12, 2008 at 12:37:45PM +0100, Alexandre Boeglin wrote: > Le mar 12 fév 2008 à 11:47:26 +0100, Robert Millan a écrit : > > On Mon, Feb 11, 2008 at 11:15:50PM +0100, Alexandre Boeglin wrote: > > > Le lun 11 fév 2008 à 15:11:44 +0100, Robert Millan a écrit : > > > > No. See how other part

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

2008-02-12 Thread Alexandre Boeglin
Le mar 12 fév 2008 à 11:47:26 +0100, Robert Millan a écrit : > On Mon, Feb 11, 2008 at 11:15:50PM +0100, Alexandre Boeglin wrote: > > Le lun 11 fév 2008 à 15:11:44 +0100, Robert Millan a écrit : > > > No. See how other parts of GRUB do it. > > > > Ok, here's the patch. I also added 2008 to the co

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

2008-02-12 Thread Robert Millan
On Mon, Feb 11, 2008 at 11:15:50PM +0100, Alexandre Boeglin wrote: > Le lun 11 fév 2008 à 15:11:44 +0100, Robert Millan a écrit : > > No. See how other parts of GRUB do it. > > Ok, here's the patch. I also added 2008 to the copyright statement of modified > files. You forgot the changelog entry

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

2008-02-11 Thread Alexandre Boeglin
Le lun 11 fév 2008 à 15:11:44 +0100, Robert Millan a écrit : > No. See how other parts of GRUB do it. Ok, here's the patch. I also added 2008 to the copyright statement of modified files. Alex diff -ruNap -x CVS -x '*.lst' -x '*.mk' -x '.*' -x '*.d' -x '*.o' grub2_commit/commands/halt.c grub2_c

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

2008-02-11 Thread Robert Millan
On Sun, Feb 10, 2008 at 10:58:02PM +0100, Alexandre Boeglin wrote: > Le dim 10 fév 2008 à 22:05:46 +0100, Robert Millan a écrit : > > For consistency with similar code elsewhere in GRUB, I think it's better if > > you made this: > > > > #if defined(foo) > > #elif defined(bar) > > #endif > > No wh

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

2008-02-10 Thread Alexandre Boeglin
Le dim 10 fév 2008 à 22:05:46 +0100, Robert Millan a écrit : > For consistency with similar code elsewhere in GRUB, I think it's better if > you made this: > > #if defined(foo) > #elif defined(bar) > #endif No whitespace before the opening bracket in this case ? By the way, this case is a good e

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

2008-02-10 Thread Robert Millan
On Sun, Feb 10, 2008 at 08:54:08PM +0100, Alexandre Boeglin wrote: > +#ifdef GRUB_MACHINE_IEEE1275 > #include > +#elif defined GRUB_MACHINE_EFI > +#include > +#endif For consistency with similar code elsewhere in GRUB, I think it's better if you made this: #if defined(foo) #elif defined(bar) #

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

2008-02-10 Thread Alexandre Boeglin
Le dim 10 fév 2008 à 17:56:12 +0100, Robert Millan a écrit : > On Sun, Feb 10, 2008 at 05:37:27PM +0100, Alexandre Boeglin wrote: > > > > * commands/halt.c: ... to here. > > Add some precompiler directive to include the correct header for each > > machine. > > Can we simplify this? Since gru

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

2008-02-10 Thread Robert Millan
On Sun, Feb 10, 2008 at 05:37:27PM +0100, Alexandre Boeglin wrote: > > * commands/halt.c: ... to here. > Add some precompiler directive to include the correct header for each > machine. Can we simplify this? Since grub_halt() is put in kernel anyway, why not always export it from kernel.h ?

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

2008-02-10 Thread Alexandre Boeglin
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 sen

Re: grub2 efi patches

2008-02-08 Thread Robert Millan
On Fri, Feb 08, 2008 at 12:38:06PM +0100, Alexandre Boeglin wrote: > Le mer 06 fév 2008 à 01:11:04 +0100, Robert Millan a écrit : > > On Wed, Feb 06, 2008 at 12:11:41AM +0100, Alexandre Boeglin wrote: > > > This was just a one line fix: > > > > > > Index: normal/arg.c > > > ===

Re: grub2 efi patches

2008-02-08 Thread Alexandre Boeglin
Le mer 06 fév 2008 à 01:11:04 +0100, Robert Millan a écrit : > On Wed, Feb 06, 2008 at 12:11:41AM +0100, Alexandre Boeglin wrote: > > This was just a one line fix: > > > > Index: normal/arg.c > > === > > RCS file: /sources/grub/grub2/

Re: grub2 efi patches

2008-02-05 Thread Robert Millan
On Wed, Feb 06, 2008 at 12:11:41AM +0100, Alexandre Boeglin wrote: > Le mar 05 fév 2008 à 23:11:52 +0100, Robert Millan a écrit : > > On Tue, Feb 05, 2008 at 10:34:09PM +0100, Alexandre Boeglin wrote: > > > - "--" handling is trivial, I think this can be commited. > > > > Please can you add a foll

Re: grub2 efi patches

2008-02-05 Thread Alexandre Boeglin
Le mar 05 fév 2008 à 23:11:52 +0100, Robert Millan a écrit : > On Tue, Feb 05, 2008 at 10:34:09PM +0100, Alexandre Boeglin wrote: > > - "--" handling is trivial, I think this can be commited. > > Please can you add a follow-up in the relevant thread(s) ? I get easily > confused in this gazillon o

Re: grub2 efi patches

2008-02-05 Thread Robert Millan
On Tue, Feb 05, 2008 at 10:34:09PM +0100, Alexandre Boeglin wrote: > > Hi, > > I'm sorry, I've been a bit busy recently. So, here's a recap of the four > initial patches I posted: > > - "--" handling is trivial, I think this can be commited. Please can you add a follow-up in the relevant thread

Re: grub2 efi patches

2008-02-05 Thread Robert Millan
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

Re: grub2 efi patches

2008-02-05 Thread Alexandre Boeglin
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 ? ___

Re: grub2 efi patches

2008-02-05 Thread Alexandre Boeglin
Le mer 23 jan 2008 à 12:39:35 +0100, Marco Gerards a écrit : > Alexandre Boeglin <[EMAIL PROTECTED]> writes: > > As Marco finally received my copyright application papers, could someone > > have a look at these patches ? > > Just to be very sure: did this happen? Hi, I'm sorry, I've been a bit b

Re: grub2 efi patches

2008-01-24 Thread Marco Gerards
"Yoshinori K. Okuji" <[EMAIL PROTECTED]> writes: > On Wednesday 23 January 2008 12:44, Robert Millan wrote: >> On Wed, Jan 23, 2008 at 12:39:35PM +0100, Marco Gerards wrote: >> > Alexandre Boeglin <[EMAIL PROTECTED]> writes: >> > > On Sun, 18 Nov 2007 19:14:03 +0100, Alexandre Boeglin >> > > <[EMA

Re: grub2 efi patches

2008-01-24 Thread Yoshinori K. Okuji
On Wednesday 23 January 2008 12:44, Robert Millan wrote: > On Wed, Jan 23, 2008 at 12:39:35PM +0100, Marco Gerards wrote: > > Alexandre Boeglin <[EMAIL PROTECTED]> writes: > > > On Sun, 18 Nov 2007 19:14:03 +0100, Alexandre Boeglin > > > <[EMAIL PROTECTED]> > > > > > > wrote: > > >> I also still ha

Re: grub2 efi patches

2008-01-23 Thread Marco Gerards
Robert Millan <[EMAIL PROTECTED]> writes: > On Wed, Jan 23, 2008 at 12:39:35PM +0100, Marco Gerards wrote: >> Alexandre Boeglin <[EMAIL PROTECTED]> writes: >> >> > On Sun, 18 Nov 2007 19:14:03 +0100, Alexandre Boeglin <[EMAIL PROTECTED]> >> > wrote: >> >> I also still have to clean the chainloade

Re: grub2 efi patches

2008-01-23 Thread Robert Millan
On Wed, Jan 23, 2008 at 12:39:35PM +0100, Marco Gerards wrote: > Alexandre Boeglin <[EMAIL PROTECTED]> writes: > > > On Sun, 18 Nov 2007 19:14:03 +0100, Alexandre Boeglin <[EMAIL PROTECTED]> > > wrote: > >> I also still have to clean the chainloader options patch, but here is the > >> changelog fo

Re: grub2 efi patches

2008-01-23 Thread Robert Millan
On Sun, Nov 18, 2007 at 07:14:03PM +0100, Alexandre Boeglin wrote: > Index: commands/i386/efi/halt.c > === > RCS file: commands/i386/efi/halt.c > diff -N commands/i386/efi/halt.c > [...] > +static grub_err_t > +grub_cmd_halt (struct

Re: grub2 efi patches

2008-01-23 Thread Marco Gerards
Alexandre Boeglin <[EMAIL PROTECTED]> writes: > On Sun, 18 Nov 2007 19:14:03 +0100, Alexandre Boeglin <[EMAIL PROTECTED]> > wrote: >> I also still have to clean the chainloader options patch, but here is the >> changelog for the others: > > Hi, > > As Marco finally received my copyright applicatio

Re: grub2 efi patches

2007-12-18 Thread Alexandre Boeglin
On Sun, 18 Nov 2007 19:14:03 +0100, Alexandre Boeglin <[EMAIL PROTECTED]> wrote: > I also still have to clean the chainloader options patch, but here is the > changelog for the others: Hi, As Marco finally received my copyright application papers, could someone have a look at these patches ? Re

Re: grub2 efi patches

2007-11-18 Thread Alexandre Boeglin
Hello, Sorry for not replying earlier, I'm currently busy trying to figure out how to access the Compatibility Support Module, and possibly enable lecagy boot. Le Sat, Nov 10, 2007 at 04:45:43PM +0100, Marco Gerards a écrit : > Alexandre Boeglin <[EMAIL PROTECTED]> writes: > > grub2_efi_grub_pref

Re: grub2 efi patches

2007-11-10 Thread Marco Gerards
Alexandre Boeglin <[EMAIL PROTECTED]> writes: Hi, > Here are a few patches for grub2, against cvs head: Great! Thanks for working on this! Can you please send in ChangeLog entries for these patches? > grub2_arg_doubledash.patch fixes a bug in the handling of the '--' > argument, > > grub2_efi

Re: grub2 efi patches

2007-11-10 Thread Marco Gerards
Alexandre Boeglin <[EMAIL PROTECTED]> writes: > On Sun, 4 Nov 2007 01:21:24 +0100, Alexandre Boeglin <[EMAIL PROTECTED]> > wrote: >> Le Sun, Nov 04, 2007 at 01:04:24AM +0100, Alexandre Boeglin a écrit : >>> Sorry, there was a mistake in the previous one ... >> Oops, and line 91 of this one should

Re: grub2 efi patches

2007-11-10 Thread Marco Gerards
Alexandre Boeglin <[EMAIL PROTECTED]> writes: > On Sun, 4 Nov 2007 00:06:31 +0100, Alexandre Boeglin <[EMAIL PROTECTED]> > wrote: >> grub2_efi_chainloader_options.patch adds support for efi chainload >> options, >> it is not really beautiful (for instance, the ascii to utf16 conversion), >> but it

Re: grub2 efi patches

2007-11-05 Thread Alexandre Boeglin
On Sun, 4 Nov 2007 01:21:24 +0100, Alexandre Boeglin <[EMAIL PROTECTED]> wrote: > Le Sun, Nov 04, 2007 at 01:04:24AM +0100, Alexandre Boeglin a écrit : >> Sorry, there was a mistake in the previous one ... > Oops, and line 91 of this one should be Hi, here is a "more correct" version of this patch

Re: grub2 efi patches

2007-11-03 Thread Alexandre Boeglin
Le Sun, Nov 04, 2007 at 01:04:24AM +0100, Alexandre Boeglin a écrit : > Sorry, there was a mistake in the previous one ... Oops, and line 91 of this one should be +loaded_image->load_options_size = options_len + sizeof (*options); instead of +loaded_image->load_options_size = options_le

Re: grub2 efi patches

2007-11-03 Thread Alexandre Boeglin
On Sun, 4 Nov 2007 00:06:31 +0100, Alexandre Boeglin <[EMAIL PROTECTED]> wrote: > grub2_efi_chainloader_options.patch adds support for efi chainload > options, > it is not really beautiful (for instance, the ascii to utf16 conversion), > but it works for the MacOSX loader, Sorry, there was a mista

grub2 efi patches

2007-11-03 Thread Alexandre Boeglin
Hello, Here are a few patches for grub2, against cvs head: grub2_arg_doubledash.patch fixes a bug in the handling of the '--' argument, grub2_efi_chainloader_options.patch adds support for efi chainload options, it is not really beautiful (for instance, the ascii to utf16 conversion), but it wor