From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: merging i386-efi and x86_64-efi (Re: Current SVN is broken on x86_64)
Date: Thu, 7 Aug 2008 14:25:09 +0200 [thread overview]
Message-ID: <20080807122509.GA10327@thorin> (raw)
In-Reply-To: <20080807122103.GA10038@thorin>
On Thu, Aug 07, 2008 at 02:21:03PM +0200, Robert Millan wrote:
> On Mon, Aug 04, 2008 at 08:51:25AM -0400, Pavel Roskin wrote:
> > On Mon, 2008-08-04 at 11:16 +0200, Robert Millan wrote:
> >
> > > Furthermore, I had a look and some of the x86_64 versions are just stubs that
> > > include the i386 one.
> > >
> > > Why don't we handle this like Linux? They ship a single directory and use
> > > #ifdefs where appropiate. That enforces consistency in the dir layout.
> >
> > I think we can do it. i386 and x86_64 could be joined into one "x86"
> > architecture with common headers and sources. Perhaps the users should
> > still use i386 and x86_64 in configure, but the code should be mostly
> > common.
>
> I gave a try at this, which I haven't completed yet. Here's what I have
> so far.
>
> The biggest stumbling block seems to be that autoconf doesn't make it easy
> to do AC_CHECK_SIZEOF checks for standard compiling and cross-compiling in
> the same run (it does support cross-compiling though).
>
> I haven't found a way to do it. If I modify types.m4 to export its
> findings to a variable instead of dumping them to config.h directly,
> further calls to the same check won't return different results, even if
> CC / CFLAGS has been adjusted.
Somebody pointed an interesting solution to me on IRC: we could have multiple
configure scripts, one for each kind of compilation.
I think what would fit well in this scheme is a simple util/configure that
just setups things to build native tools "the usual way", and then the main
configure can:
a) Invoke util/configure with the right params for native compilation
b) Simplify its own arch handling logic.
Thoughts?
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
next prev parent reply other threads:[~2008-08-07 12:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-04 0:31 Current SVN is broken on x86_64 Felix Zielcke
2008-08-04 5:02 ` Pavel Roskin
2008-08-04 9:16 ` Robert Millan
2008-08-04 9:16 ` Robert Millan
2008-08-04 12:51 ` Pavel Roskin
2008-08-04 15:11 ` Robert Millan
2008-08-04 18:27 ` Pavel Roskin
2008-08-07 12:21 ` merging i386-efi and x86_64-efi (Re: Current SVN is broken on x86_64) Robert Millan
2008-08-07 12:25 ` Robert Millan [this message]
2008-08-04 10:09 ` Current SVN is broken on x86_64 Felix Zielcke
2008-08-07 10:58 ` Current SVN is (still ?, again ?) broken Felix Zielcke
2008-08-07 12:01 ` Bean
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=20080807122509.GA10327@thorin \
--to=rmh@aybabtu.com \
--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.