Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: McClintock Matthew-B29882 <B29882@freescale.com>,
	Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 8/8] gcc: enable multilib for target gcc
Date: Thu, 15 Mar 2012 08:26:12 +0000	[thread overview]
Message-ID: <1331799972.18586.67.camel@ted> (raw)
In-Reply-To: <CAEsOVNdBma0dRbnzkq05avjSbtJfVuSC67ihWvLi17RK_duaxQ@mail.gmail.com>

On Thu, 2012-03-15 at 02:47 +0000, McClintock Matthew-B29882 wrote:
> On Wed, Mar 14, 2012 at 9:02 PM,  <nitin.a.kamble@intel.com> wrote:
> > +    multilibs = d.getVar('MULTILIB_VARIANTS', True)
> > +    target_arch = d.getVar('TARGET_ARCH', True)
> > +
> > +    gcc_target_config_files = {
> > +        'x86_64'      : ['gcc/config/i386/t-linux64', 'gcc/config/i386/t-linux'],
> > +        'i586'        : ['gcc/config/mips/t-linux'],
> > +        'mips'        : ['gcc/config/mips/t-linux64', 'gcc/config/mips/t-linux'],
> > +        'ppc'         : ['gcc/config/rs6000/t-linux64'] }
> > +
> > +    gcc_header_config_files = {
> > +        'x86_64'      : ['gcc/config/i386/linux64.h'],
> > +        'i586'        : ['gcc/config/mips/linux.h'],
> > +        'mips'        : ['gcc/config/mips/linux64.h', 'gcc/config/mips/linux.h'],
> > +        'ppc'         : ['gcc/config/rs6000/linux64.h', 'gcc/config/rs6000/linux.h'] }
> > +
> > +    if target_arch not in gcc_target_config_files:
> > +        bb.warn('gcc multilib setup is not supported for TARGET_ARCH=' + target_arch)
> > +        return
> > +
> > +    gcc_multilib_target_config_files = gcc_target_config_files[target_arch]
> > +    gcc_multilib_header_config_files = gcc_header_config_files[target_arch]
> > +
> > +    ml_list = ['DEFAULTTUNE']
> > +    if multilibs != '':
> > +        for ml in multilibs.split(' '):
> > +            ml_list.append('DEFAULTTUNE_virtclass-multilib-' + ml)
> 
> What about adding non-multilib variants? I want to make one toolchain
> for ppce500v2, ppce500mc, ppce5550, and ppc64e5500?
> 
> Also, somehow, should we enforce all "toolchains" are built through
> this multilib build process such that I only need to configure things
> properly and then theoretically I can make a toolchain ONCE that
> supports all desired targets? E.g. I don't think we want references to
> DEFAULTTUNE since I don't want the DEFAULTTUNE to matter? Does this
> make any sense?

Whilst I understand the desire, this is not what the patch series is
intended for and I don't think it reasonable to try and change the patch
series to fit that requirement.

The big issue you face trying to do the above is iterating over the
toolchain building libgcc and libc for each of the variants you mention.
This is particularly hard since at least in the multilib case they have
different libdir paths, in your non-multilib case, they would overlap.

So no, I don't think its possible to do what you describe in this
context.

Cheers,

Richard






  reply	other threads:[~2012-03-15  8:35 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-15  2:02 [PATCH 0/8] fixes, recipe upgrades, & gcc multilib enabling commits nitin.a.kamble
2012-03-15  2:02 ` [PATCH 1/8] gmp: upgrade from 5.0.3 to 5.0.4 nitin.a.kamble
2012-03-15  2:02 ` [PATCH 2/8] automake: upgrade from 1.11.2 to 1.11.3 nitin.a.kamble
2012-03-15  2:02 ` [PATCH 3/8] distro-tracking: update status of recipes nitin.a.kamble
2012-03-15  2:02 ` [PATCH 4/8] ncurses: fix install error nitin.a.kamble
2012-03-15  2:51   ` Scott Garman
2012-03-15  2:02 ` [PATCH 5/8] python: fix install when libdir is not "lib" nitin.a.kamble
2012-03-15  2:59   ` Andreas Oberritter
2012-03-15 15:53     ` Kamble, Nitin A
2012-03-15  7:19   ` Martin Jansa
2012-03-15 16:06     ` Kamble, Nitin A
2012-03-15  2:02 ` [PATCH 6/8] multilib.conf: add other abi packages to target gcc's dependencies nitin.a.kamble
2012-03-15  2:02 ` [PATCH 7/8] gcc: remove the 64bithack patch nitin.a.kamble
2012-03-15  8:30   ` Richard Purdie
2012-03-15 16:03     ` Kamble, Nitin A
2012-03-15  2:02 ` [PATCH 8/8] gcc: enable multilib for target gcc nitin.a.kamble
2012-03-15  2:42   ` McClintock Matthew-B29882
2012-03-15 15:50     ` Kamble, Nitin A
2012-03-15  2:47   ` McClintock Matthew-B29882
2012-03-15  8:26     ` Richard Purdie [this message]
2012-03-15 14:56       ` McClintock Matthew-B29882
2012-03-21 18:59 ` [PATCH 0/8] fixes, recipe upgrades, & gcc multilib enabling commits Saul Wold

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=1331799972.18586.67.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=B29882@freescale.com \
    --cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox