public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] crossdev & multilib
@ 2011-11-24 13:13 Joakim Tjernlund
  2011-11-25  6:35 ` Mike Frysinger
  0 siblings, 1 reply; 4+ messages in thread
From: Joakim Tjernlund @ 2011-11-24 13:13 UTC (permalink / raw
  To: gentoo-embedded


I want to build cross powerpc gcc which supports both soft and hard float and
a its supporting libs(glibc etc.) using crossdev.

searched a while on the net but I can't make out if crossdev supports this
and how to do it so:
- is it possible?
- how do I do it?

 Jocke




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-embedded] crossdev & multilib
  2011-11-24 13:13 [gentoo-embedded] crossdev & multilib Joakim Tjernlund
@ 2011-11-25  6:35 ` Mike Frysinger
  2011-11-25 13:05   ` Joakim Tjernlund
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2011-11-25  6:35 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: Text/Plain, Size: 566 bytes --]

On Thursday 24 November 2011 08:13:02 Joakim Tjernlund wrote:
> I want to build cross powerpc gcc which supports both soft and hard float
> and a its supporting libs(glibc etc.) using crossdev.
> 
> searched a while on the net but I can't make out if crossdev supports this
> and how to do it so:
> - is it possible?
> - how do I do it?

the latest crossdev should support the --abis flag for specifying all the ABI's 
you want built.  but for ABI's portage doesn't know about, you'll probably 
have to add a bit more plumbing to multilib.eclass.
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-embedded] crossdev & multilib
  2011-11-25  6:35 ` Mike Frysinger
@ 2011-11-25 13:05   ` Joakim Tjernlund
  2011-11-26  7:42     ` Mike Frysinger
  0 siblings, 1 reply; 4+ messages in thread
From: Joakim Tjernlund @ 2011-11-25 13:05 UTC (permalink / raw
  To: gentoo-embedded

Mike Frysinger <vapier@gentoo.org> wrote on 2011/11/25 07:35:45:
>
> On Thursday 24 November 2011 08:13:02 Joakim Tjernlund wrote:
> > I want to build cross powerpc gcc which supports both soft and hard float
> > and a its supporting libs(glibc etc.) using crossdev.
> >
> > searched a while on the net but I can't make out if crossdev supports this
> > and how to do it so:
> > - is it possible?
> > - how do I do it?
>
> the latest crossdev should support the --abis flag for specifying all the ABI's

latest stable or unstable?

> you want built.  but for ABI's portage doesn't know about, you'll probably
> have to add a bit more plumbing to multilib.eclass.

hmm, looking at multilib.eclass, this part looks like it need extension:

# This is for the toolchain to setup profile variables when pulling in
# a crosscompiler (and thus they aren't set in the profile)
multilib_env() {
	local CTARGET=${1:-${CTARGET}}

	case ${CTARGET} in
...
	powerpc64*)
			export CFLAGS_ppc=${CFLAGS_ppc--m32}
			export CHOST_ppc=${CTARGET/powerpc64/powerpc}
			export CTARGET_ppc=${CHOST_ppc}
			export LIBDIR_ppc="lib"

			export CFLAGS_ppc64=${CFLAGS_ppc64--m64}
			export CHOST_ppc64=${CTARGET}
			export CTARGET_ppc64=${CHOST_ppc64}
			export LIBDIR_ppc64="lib64"

			: ${MULTILIB_ABIS=ppc64 ppc}
			: ${DEFAULT_ABI=ppc64}

Anything more?

 Jocke




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-embedded] crossdev & multilib
  2011-11-25 13:05   ` Joakim Tjernlund
@ 2011-11-26  7:42     ` Mike Frysinger
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2011-11-26  7:42 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: Text/Plain, Size: 1014 bytes --]

On Friday 25 November 2011 08:05:56 Joakim Tjernlund wrote:
> Mike Frysinger wrote on 2011/11/25 07:35:45:
> > On Thursday 24 November 2011 08:13:02 Joakim Tjernlund wrote:
> > > I want to build cross powerpc gcc which supports both soft and hard
> > > float and a its supporting libs(glibc etc.) using crossdev.
> > > 
> > > searched a while on the net but I can't make out if crossdev supports
> > > this and how to do it so:
> > > - is it possible?
> > > - how do I do it?
> > 
> > the latest crossdev should support the --abis flag for specifying all the
> > ABI's
> 
> latest stable or unstable?

i generally only track latest unstable in my head

> > you want built.  but for ABI's portage doesn't know about, you'll
> > probably have to add a bit more plumbing to multilib.eclass.
> 
> hmm, looking at multilib.eclass, this part looks like it need extension:

that's the place

> Anything more?

*shrug* maybe, but multilib.eclass is the only place off the top of my head
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-26  7:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-24 13:13 [gentoo-embedded] crossdev & multilib Joakim Tjernlund
2011-11-25  6:35 ` Mike Frysinger
2011-11-25 13:05   ` Joakim Tjernlund
2011-11-26  7:42     ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox