Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1M0ltF-0001Ua-Ds for mharc-grub-devel@gnu.org; Sun, 03 May 2009 20:18:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M0ltD-0001UU-P8 for grub-devel@gnu.org; Sun, 03 May 2009 20:18:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M0lt7-0001UC-UQ for grub-devel@gnu.org; Sun, 03 May 2009 20:18:34 -0400 Received: from [199.232.76.173] (port=59935 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0lt7-0001U9-QQ for grub-devel@gnu.org; Sun, 03 May 2009 20:18:29 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:59584) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M0lt7-0006na-Cy for grub-devel@gnu.org; Sun, 03 May 2009 20:18:29 -0400 Received: by ewy6 with SMTP id 6so3669050ewy.42 for ; Sun, 03 May 2009 17:18:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=kamnZjhv4qWDCQk1M6jp8YafuOTEWzreoX/hpqkzeQo=; b=OQvDozNeVkLR4m5a8AlXQyL1FoVZ4Un72ELgQqQmjAs+yafX/9AErFnUs8lLCVtzoY zt1N0y6JyFXkeFE7tfwwf0cANX4tic5vKsJMGhnyTePjZqDe8UyUgPxFCXIZ+/C8e1Kf eZCwvghNjdI7zpWPZoJbV89JvVqABNrQUHfGA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=V5RyoEiYHc8kuzNV0VNLnRDZGHUR2JQb+St6dtvwwODgjhIhY0vbN6nPiphPL0VpR8 NtBZHv89ZWB9itYDQMGaR8KioV4kosjty87RaAd9DM1q4Q/4AdYiRDN+hPBa9qpPCfnG ZUFxBh8N/ljZOor0r6A9xhpKznvKMQnPbW/FE= MIME-Version: 1.0 Received: by 10.210.105.8 with SMTP id d8mr2083802ebc.92.1241396307803; Sun, 03 May 2009 17:18:27 -0700 (PDT) In-Reply-To: References: Date: Mon, 4 May 2009 02:18:27 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=0015174beee4f3bef504690b1979 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] Use symbol database to maintain module dependence 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: Mon, 04 May 2009 00:18:36 -0000 --0015174beee4f3bef504690b1979 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Mon, Apr 27, 2009 at 9:58 PM, Bean wrote: > On Tue, Apr 28, 2009 at 2:13 AM, Vladimir 'phcoder' Serbinenko > wrote: > > symdb code seems to duplicate your list code. Perhaps you could reuse the > > file from kernel thus making maintaining easier > > Hi, > > I'm planning to use kern/list.c at first, but there is some issue. > list.c uses grub_strcmp, which means we need to add kern/misc.c as > well. But kern/misc.c uses environment and terminal output, etc. I end > up adding a lot of unrelated stuff just to satisfy the dependence. So > perhaps it'd be better to keep it simple for now. why not just do int grub_strcmp (....) { return strcmp(...); } like it's done it other utils? > > > A better solution is to move the string function to a separate source > file, such as kern/string.c. But this is the subject of another patch. > Also now I'm looking into compiling of grub2 with Apple's gcc and binutils and this patch makes this easier. Was it done in perspective of compiling with Apple's tools? Do you work on this? If you do we could share the effort -- Regards Vladimir 'phcoder' Serbinenko --0015174beee4f3bef504690b1979 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Mon, Apr 27, 2009 at 9:58 PM, Bean <bean123ch@gmail.= com> wrote:
On Tue, Apr 28, 2009 at 2:13 AM, Vladimir 'phcoder= 9; Serbinenko
<phcoder@gmail.com> wrote: > symdb code seems to duplicate your list code. Perhaps you could reuse = the
> file from kernel thus making maintaining easier

Hi,

I'm planning to use kern/list.c at first, but there is some issue.
list.c uses grub_strcmp, which means we need to add kern/misc.c as
well. But kern/misc.c uses environment and terminal output, etc. I end
up adding a lot of unrelated stuff just to satisfy the dependence. So
perhaps it'd be better to keep it simple for now.
why = not just do
int
grub_strcmp (....)
{
=A0 return strcmp(...);}
like it's done it other utils?


A better solution is to move the string function to a separate source
file, such as kern/string.c. But this is the subject of another patch.
<= /blockquote>

Also now I'm looking into compiling of grub2 with= Apple's gcc and binutils and this patch makes this easier. Was it done= in perspective of compiling with Apple's tools? Do you work on this? I= f you do we could share the effort

--
Regards
Vladimir 'phcoder' Serbinenko
--0015174beee4f3bef504690b1979--