From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Compiling grub on x86_64
Date: Thu, 28 Jun 2012 11:46:31 +0200 [thread overview]
Message-ID: <20120628114631.25da4786@skate> (raw)
In-Reply-To: <4FEC1155.4020008@mind.be>
Le Thu, 28 Jun 2012 10:09:57 +0200,
Arnout Vandecappelle <arnout@mind.be> a ?crit :
> > No, it's a difficult problem. And the issue came up several times on
> > the list already. How much effort would it be to also generate a
> > multilib 32bits/64bits toolchain when x86_64 is used?
>
> It's certainly not trivial... Here's a list of issues I can come up with:
>
> * It requires a different implementation for internal, crosstool-NG and
> external toolchains.
> * For external toolchains, there should be a check if it is multilib or not.
> * For external toolchains, the wrapper has to change a lot because
> the -m32 may imply a different -march and -mtune.
> * crosstool-NG itself has no support for multilib AFAICS. Support would
> have to be added.
> * For internal toolchains, uClibc has to be built twice.
> * Final gcc stage should be configured with the multilib paths.
> * Are the multilib libraries installed to the target? For grub this isn't
> really needed, but if something else compiles with -m32...
> * Are other libraries compiled with multilib variants?
Quite a few issues :-)
> Turns out that it currently also doesn't work with multilib external toolchains.
> The wrapper sets --sysroot to a path which doesn't contain the 32-bit libs.
>
> For the time being, I guess grub should be disabled for all 64-bit configurations.
Agreed. It's however a shame that it's not possible to build a complete
bootloader+kernel+rootfs for x86_64 with a single Buildroot
configuration :-(
How other build systems handle this?
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2012-06-28 9:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-25 7:51 [Buildroot] Compiling grub on x86_64 Arnout Vandecappelle
2012-06-25 8:04 ` Thomas Petazzoni
2012-06-28 8:09 ` Arnout Vandecappelle
2012-06-28 9:46 ` Thomas Petazzoni [this message]
2012-06-28 9:56 ` Thomas Petazzoni
2012-06-28 12:44 ` Arnout Vandecappelle
2012-06-28 13:06 ` Thomas Petazzoni
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=20120628114631.25da4786@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox