Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DE63c-0001TH-S6 for mharc-grub-devel@gnu.org; Wed, 23 Mar 2005 08:38:00 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DE63T-0001Lt-DP for grub-devel@gnu.org; Wed, 23 Mar 2005 08:37:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DE63C-0001Ec-QX for grub-devel@gnu.org; Wed, 23 Mar 2005 08:37:37 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DE63C-0001DI-Nj for grub-devel@gnu.org; Wed, 23 Mar 2005 08:37:34 -0500 Received: from [212.180.1.161] (helo=caine.easynet.fr) by monty-python.gnu.org with esmtp (TLSv1:RC4-SHA:128) (Exim 4.34) id 1DE5mr-0002GK-OM for grub-devel@gnu.org; Wed, 23 Mar 2005 08:20:42 -0500 Received: from possep008396-gw.clients.easynet.fr ([195.114.86.225] helo=[192.168.1.221]) by caine.easynet.fr with esmtp (Exim 4.34) id 1DE5mp-0000QR-49 for grub-devel@gnu.org; Wed, 23 Mar 2005 14:20:39 +0100 Mime-Version: 1.0 (Apple Message framework v619.2) Content-Transfer-Encoding: 7bit Message-Id: <74cfc9a471d7669b38b24a5a89f35538@free.fr> Content-Type: text/plain; charset=US-ASCII; format=flowed To: grub-devel@gnu.org From: antoine terrienne Date: Wed, 23 Mar 2005 14:20:28 +0100 X-Mailer: Apple Mail (2.619.2) Subject: Re: Grub2 on Mac OS X X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2005 13:37:56 -0000 Selon "Yoshinori K. Okuji" : > On Monday 21 March 2005 07:55 pm, Antoine Terrienne wrote: > > Here is a patch with the modifications I made. Please tell me if some of > > them are wrong. I hope I would help. > > Could you make a patch with -u? The standard diff format is too difficult for > me. > > I describe what I think are not appropriate in your patch: > > - memalign should not be just a macro. memalign is not the same as malloc. > memalign doesn't exist on Mac OS. malloc always returns 16 bytes aligned memory. This macro is only defined if there is no HAVE_MEMALIGN defined by the configure script. If 16 bytes alignment not enouth there is valloc that allocates on a page bondary but there is no such function as memalign. > - The macro _MACOSX_ should not be defined. OS-specific code should be > enabled > in a more generic way. Take a look at the autoconf manual and the autobook > . > > - Rather than replacing argp with getopt, please include the standalone > version of argp . > You mean include it in Grub ? Where such code should be placed in the source three ? normal/ util/ ... ? getopt is already used by grub-mkimage and available everywere so why not just using it with grub-emu ? Are there somme specific reasons ? > - ChangeLog, please. > > Okuji > Ok I'll do that and send you a new patch with -u Thank you for the comments I have some others questions about the powerpc part of Grub2. It seems that many parts are just a copy of the i386. For exemple in the conf/powerpc-ieee1275.rmk. grub_emu_sources refer to commands/i386/pc/{reboot.c,halt.c,suspend.c} but there exist somme commands/ieee1275/{reboot.c,halt.c,suspend.c}. Is this normal ? thank you for the answers