All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Reinauer <stepan@coresystems.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] make grub2 compile with libc-less crosscompilers
Date: Sun, 20 May 2007 19:45:06 +0200	[thread overview]
Message-ID: <20070520174506.GC26265@coresystems.de> (raw)
In-Reply-To: <200705191944.13081.okuji@enbug.org>

* Yoshinori K. Okuji <okuji@enbug.org> [070519 19:44]:
> On Saturday 19 May 2007 17:30, Patrick Georgi wrote:
> > I'm now using a cross compiler with target "i386-elf", ie. no operating
> > system specification, which works fine so far. With grub2 I had an issue
> > in the configuration process as some tests try to build executables with
> > the target compiler that link libc (and potentially even more libs) -
> > which don't exist in my configuration.
> > As those are not necessary, I decided to modify grub2 instead of messing
> > around even more with the not-so-nice gcc build system.
 
I second this patch. Cleaning out platform dependencies where there
should be none is a good goal on the long and stony road to portable
software.

> They are necessary. Otherwise, you cannot make a core image, for example. 
> Also, without grub-emu, how do you plan to debug GRUB?
 
Can you please explain this? I would think grub-emu is something that
needs to be compiled with the host compiler, not the target compiler. If
you need the target, it is not an emulation, thus pretty useless.

> BTW I can hardly believe that it is so difficult to use gnu build tools on 
> solaris. Otherwise, how are opensolaris developers building GRUB?

Well, niche products are always hard to maintain. Try cross-compiling a driver
from the mainstream operating system windows under the niche OS Linux
and you will find lots of trouble, too. Not hard to believe. Cross
compiling a Linux/BSD only product like Grub under Solaris is for sure
easier, but not exactly trivial. Not hard to believe that one would not
start fixing auto tools code without a reason ;-)

Stefan

-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info@coresystems.de  • http://www.coresystems.de/



  parent reply	other threads:[~2007-05-20 17:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-19 15:30 [PATCH] make grub2 compile with libc-less crosscompilers Patrick Georgi
2007-05-19 17:44 ` Yoshinori K. Okuji
2007-05-19 17:53   ` Patrick Georgi
2007-05-20 17:45   ` Stefan Reinauer [this message]
2007-06-04 17:03   ` Patrick Georgi
2007-05-31 14:59 ` Patrick Georgi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070520174506.GC26265@coresystems.de \
    --to=stepan@coresystems.de \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.