From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1EkRwX-0006gZ-QN for mharc-grub-devel@gnu.org; Thu, 08 Dec 2005 15:00:41 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EkRwW-0006gM-BQ for grub-devel@gnu.org; Thu, 08 Dec 2005 15:00:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EkRwT-0006fB-Pf for grub-devel@gnu.org; Thu, 08 Dec 2005 15:00:40 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EkRwT-0006f8-Mk for grub-devel@gnu.org; Thu, 08 Dec 2005 15:00:37 -0500 Received: from [194.109.24.24] (helo=smtp-vbr4.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EkRxY-0004m9-3Z for grub-devel@gnu.org; Thu, 08 Dec 2005 15:01:44 -0500 Received: from localhost.localdomain (mgerards.xs4all.nl [82.92.27.129]) by smtp-vbr4.xs4all.nl (8.13.3/8.13.3) with ESMTP id jB8K0HiU024541 for ; Thu, 8 Dec 2005 21:00:17 +0100 (CET) (envelope-from mgerards@xs4all.nl) Mail-Copies-To: mgerards@xs4all.nl To: The development of GRUB 2 References: <878xuvsrl1.fsf@xs4all.nl> <1134059234.15370.23.camel@localhost.localdomain> <97E8A861-43DC-47CD-AE89-10BD586C9CFD@gmail.com> From: Marco Gerards Date: Thu, 08 Dec 2005 21:00:18 +0100 In-Reply-To: <97E8A861-43DC-47CD-AE89-10BD586C9CFD@gmail.com> (Andrei Warkentin's message of "Thu, 8 Dec 2005 13:10:08 -0600") Message-ID: <878xuvmka5.fsf@xs4all.nl> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: GRUB2 Build 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: Thu, 08 Dec 2005 20:00:40 -0000 Andrei Warkentin writes: Hi Andrei, > There is another issue with GRUB2 on OS X which I am not sure has > been brought up yet. > Right now, AFAIK (but I haven't tested it), GRUB2 (the part that runs > from OpenFrimware) can be built > with a bootstrap powerpc-elf-targetted GCC hosted on OS X. However, > the local GRUB2 binary (one that can run > from OS X and perform installation and some such) needs to be > compiled with the OS X compiler. Why? OS X doesn't use ELF - > it uses Mach-O. If you want to be able to build GRUB2 in OS X with > purely the OS X GCC, then the build procedure must take into account > the Mach-O > output format. AFAIK, new OpenFirmware versions (3.x) can boot Mach-O > binaries but I haven't had a chance to experiment with this yet. You mean the utilities like grub-setup, grub-mkimage, grub-emu, etc? They should be able to run on macos, right? Of perhaps I am missing your point. If those utilities can be build in a better way so nothing breaks and it will work on macos, I am quite interested in hearing how to solve that. Mach-O binaries for booting is a different subject. We rely on ELF files, grub-mkimage even creates ELF files and uses ELF load segments. Without it GRUB just won't work, unless grub-mkimage is changed intensively. So it seems easier just to use ELFs in any case. -- Marco