Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-embedded@g.o
From: Joakim Tjernlund <joakim.tjernlund@...>
Subject: Re: crossdev & multilib
Date: Fri, 25 Nov 2011 14:05:56 +0100
Mike Frysinger <vapier@g.o> 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



Replies:
Re: crossdev & multilib
-- Mike Frysinger
References:
crossdev & multilib
-- Joakim Tjernlund
Re: crossdev & multilib
-- Mike Frysinger
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: crossdev & multilib
Next by thread:
Re: crossdev & multilib
Previous by date:
Re: crossdev & multilib
Next by date:
Re: crossdev & multilib


Updated Jun 25, 2012

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.