Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1CnddF-00028E-UJ for mharc-grub-devel@gnu.org; Sun, 09 Jan 2005 09:01:26 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CndYp-0001KT-VP for grub-devel@gnu.org; Sun, 09 Jan 2005 08:56:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CndYb-0001EN-Nb for grub-devel@gnu.org; Sun, 09 Jan 2005 08:56:40 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CndYa-00017P-JW for grub-devel@gnu.org; Sun, 09 Jan 2005 08:56:36 -0500 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cnd5Z-0006zR-PG for grub-devel@gnu.org; Sun, 09 Jan 2005 08:26:38 -0500 Received: from vscan-cn.han.nl (venus.han.nl [145.74.65.6]) by mail-cn.han.nl (Postfix) with ESMTP id C898B9039 for ; Sun, 9 Jan 2005 14:20:51 +0100 (CET) Received: from mail-cn.han.nl ([145.74.66.11]) by vscan-cn.han.nl (venus.han.nl [145.74.65.6]) (amavisd-new, port 10024) with ESMTP id 12158-10 for ; Sun, 9 Jan 2005 14:20:50 +0100 (CET) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id C9C638B6C for ; Sun, 9 Jan 2005 14:20:50 +0100 (CET) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 8268AC046 for ; Sun, 9 Jan 2005 14:20:50 +0100 (CET) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <20050108232617.GA7128@miracle> From: Marco Gerards Date: Sun, 09 Jan 2005 13:20:27 +0000 In-Reply-To: <20050108232617.GA7128@miracle> (Hollis Blanchard's message of "Sat, 8 Jan 2005 17:26:17 -0600") Message-ID: <87u0pqhh7o.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new (2.2.0) at vscan-cn.han.nl Subject: Re: [ppc] fix and improve grub-mkimage 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: Sun, 09 Jan 2005 14:01:24 -0000 Hollis Blanchard writes: > PPC grub-mkimage is broken in CVS, as MODULE_BASE was renamed to > GRUB_IEEE1275_MODULE_BASE. This patch fixes the build break. Whoops. :) > In addition, this patch improves the CHRP NOTE segment support. > Currently grub-mkimage expects to find a pre-built file named "note", but > that's not a good solution (and the build system does not create this > file). Instead, we can easily create the note data at runtime. Sounds nice to me! > > -Hollis > > 2005-01-08 Hollis Blanchard > > * util/powerpc/ieee1275/grub-mkimage.c: Include . > (note_path): Remove variable. > (GRUB_IEEE1275_NOTE_NAME): New constant. > (GRUB_IEEE1275_NOTE_TYPE): Likewise. Please say "New macro.". > (grub_ieee1275_note): New structure. > (load_note): Remove `dir' argument. All callers updated. Remove > `note_img' and `path'. Do note load a file from `note_path'. > Initialize a struct grub_ieee1275_note and write that to `out'. > Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE. Please use two spaces after the ".". > +/* See the CHRP binding to IEEE1275, "Client Program Format". */ > +struct grub_ieee1275_note { Please move the "{" to the next line, just like you do for functions: struct grub_ieee1275_note { int foo; ... }; If you fixed all this, you can commit the patch. Thanks, Marco