* [gentoo-embedded] e300c3/c3 cpu support for glibc ports
@ 2010-09-24 16:22 Joakim Tjernlund
2010-09-25 6:07 ` Mike Frysinger
0 siblings, 1 reply; 8+ messages in thread
From: Joakim Tjernlund @ 2010-09-24 16:22 UTC (permalink / raw
To: gentoo-embedded
This is what I came up with to make glibc support
--with-cpu=e300c2
Note that one needs to do: export libc_cv_cc_submachine="-mcpu=e300c2"
before running crossdev else glibc-headers failes later.
Jocke
From c18e208d94f1cc10268c44610780941056638a8b Mon Sep 17 00:00:00 2001
From: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Date: Thu, 23 Sep 2010 17:14:45 +0200
Subject: [PATCH] e300c2/c3 support.
---
.../sysdeps/powerpc/powerpc32/e300c2/nofpu/Implies | 2 ++
.../sysdeps/powerpc/powerpc32/e300c3/fpu/Implies | 1 +
.../sysdeps/powerpc/powerpc32/e300c3/nofpu/Implies | 2 ++
.../linux/powerpc/powerpc32/e300c2/nofpu/Implies | 2 ++
.../linux/powerpc/powerpc32/e300c3/fpu/Implies | 1 +
.../linux/powerpc/powerpc32/e300c3/nofpu/Implies | 2 ++
6 files changed, 10 insertions(+), 0 deletions(-)
create mode 100644 glibc-2.11.2/ports/sysdeps/powerpc/powerpc32/e300c2/nofpu/Implies
create mode 100644 glibc-2.11.2/ports/sysdeps/powerpc/powerpc32/e300c3/fpu/Implies
create mode 100644 glibc-2.11.2/ports/sysdeps/powerpc/powerpc32/e300c3/nofpu/Implies
create mode 100644 glibc-2.11.2/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/e300c2/nofpu/Implies
create mode 100644 glibc-2.11.2/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/e300c3/fpu/Implies
create mode 100644 glibc-2.11.2/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/e300c3/nofpu/Implies
diff --git glibc-2.11.2/ports/sysdeps/powerpc/powerpc32/e300c2/nofpu/Implies glibc-2.11.2/ports/sysdeps/powerpc/powerpc32/e300c2/nofpu/Implies
new file mode 100644
index 0000000..40836b6
--- /dev/null
+++ glibc-2.11.2/ports/sysdeps/powerpc/powerpc32/e300c2/nofpu/Implies
@@ -0,0 +1,2 @@
+powerpc/nofpu
+powerpc/soft-fp
diff --git glibc-2.11.2/ports/sysdeps/powerpc/powerpc32/e300c3/fpu/Implies glibc-2.11.2/ports/sysdeps/powerpc/powerpc32/e300c3/fpu/Implies
new file mode 100644
index 0000000..a6df48b
--- /dev/null
+++ glibc-2.11.2/ports/sysdeps/powerpc/powerpc32/e300c3/fpu/Implies
@@ -0,0 +1 @@
+powerpc/powerpc32/fpu
diff --git glibc-2.11.2/ports/sysdeps/powerpc/powerpc32/e300c3/nofpu/Implies glibc-2.11.2/ports/sysdeps/powerpc/powerpc32/e300c3/nofpu/Implies
new file mode 100644
index 0000000..40836b6
--- /dev/null
+++ glibc-2.11.2/ports/sysdeps/powerpc/powerpc32/e300c3/nofpu/Implies
@@ -0,0 +1,2 @@
+powerpc/nofpu
+powerpc/soft-fp
diff --git glibc-2.11.2/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/e300c2/nofpu/Implies glibc-2.11.2/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/e300c2/nofpu/Implies
new file mode 100644
index 0000000..e488d2b
--- /dev/null
+++ glibc-2.11.2/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/e300c2/nofpu/Implies
@@ -0,0 +1,2 @@
+powerpc/powerpc32/nofpu
+powerpc/powerpc32/soft-fp
diff --git glibc-2.11.2/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/e300c3/fpu/Implies glibc-2.11.2/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/e300c3/fpu/Implies
new file mode 100644
index 0000000..546dff6
--- /dev/null
+++ glibc-2.11.2/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/e300c3/fpu/Implies
@@ -0,0 +1 @@
+powerpc/powerpc32/e300c3/fpu
diff --git glibc-2.11.2/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/e300c3/nofpu/Implies glibc-2.11.2/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/e300c3/nofpu/Implies
new file mode 100644
index 0000000..e488d2b
--- /dev/null
+++ glibc-2.11.2/ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/e300c3/nofpu/Implies
@@ -0,0 +1,2 @@
+powerpc/powerpc32/nofpu
+powerpc/powerpc32/soft-fp
--
1.7.2.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [gentoo-embedded] e300c3/c3 cpu support for glibc ports
2010-09-24 16:22 [gentoo-embedded] e300c3/c3 cpu support for glibc ports Joakim Tjernlund
@ 2010-09-25 6:07 ` Mike Frysinger
2010-09-25 17:17 ` Joakim Tjernlund
2010-09-27 14:55 ` Joakim Tjernlund
0 siblings, 2 replies; 8+ messages in thread
From: Mike Frysinger @ 2010-09-25 6:07 UTC (permalink / raw
To: gentoo-embedded; +Cc: Joakim Tjernlund
[-- Attachment #1: Type: Text/Plain, Size: 166 bytes --]
On Friday, September 24, 2010 12:22:19 Joakim Tjernlund wrote:
> This is what I came up with to make glibc support
> --with-cpu=e300c2
mail it to libc-ports ?
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-embedded] e300c3/c3 cpu support for glibc ports
2010-09-25 6:07 ` Mike Frysinger
@ 2010-09-25 17:17 ` Joakim Tjernlund
2010-09-27 14:55 ` Joakim Tjernlund
1 sibling, 0 replies; 8+ messages in thread
From: Joakim Tjernlund @ 2010-09-25 17:17 UTC (permalink / raw
To: Mike Frysinger; +Cc: gentoo-embedded
Mike Frysinger <vapier@gentoo.org> wrote on 2010/09/25 08:07:15:
>
> On Friday, September 24, 2010 12:22:19 Joakim Tjernlund wrote:
> > This is what I came up with to make glibc support
> > --with-cpu=e300c2
>
> mail it to libc-ports ?
Sent to:
libc-ports@sources.redhat.com
I hope that is the correct address.
Jocke
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-embedded] e300c3/c3 cpu support for glibc ports
2010-09-25 6:07 ` Mike Frysinger
2010-09-25 17:17 ` Joakim Tjernlund
@ 2010-09-27 14:55 ` Joakim Tjernlund
2010-09-28 2:33 ` Mike Frysinger
1 sibling, 1 reply; 8+ messages in thread
From: Joakim Tjernlund @ 2010-09-27 14:55 UTC (permalink / raw
To: Mike Frysinger; +Cc: gentoo-embedded
Mike Frysinger <vapier@gentoo.org> wrote on 2010/09/25 08:07:15:
>
> On Friday, September 24, 2010 12:22:19 Joakim Tjernlund wrote:
> > This is what I came up with to make glibc support
> > --with-cpu=e300c2
>
> mail it to libc-ports ?
Upstream doesn't want it as it only adds --with-cpu= syntax
and don't change anything else.
That implies crossdev needs to grow support different configure options
for glibc/gcc/binutils etc.
I guess that is the normal way non gentoo devs builds toolchains?
Jocke
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-embedded] e300c3/c3 cpu support for glibc ports
2010-09-27 14:55 ` Joakim Tjernlund
@ 2010-09-28 2:33 ` Mike Frysinger
2010-09-28 6:55 ` Joakim Tjernlund
0 siblings, 1 reply; 8+ messages in thread
From: Mike Frysinger @ 2010-09-28 2:33 UTC (permalink / raw
To: Joakim Tjernlund; +Cc: gentoo-embedded
[-- Attachment #1: Type: Text/Plain, Size: 628 bytes --]
On Monday, September 27, 2010 10:55:32 Joakim Tjernlund wrote:
> Mike Frysinger wrote on 2010/09/25 08:07:15:
> > On Friday, September 24, 2010 12:22:19 Joakim Tjernlund wrote:
> > > This is what I came up with to make glibc support
> > > --with-cpu=e300c2
> >
> > mail it to libc-ports ?
>
> Upstream doesn't want it as it only adds --with-cpu= syntax
> and don't change anything else.
> That implies crossdev needs to grow support different configure options
> for glibc/gcc/binutils etc.
> I guess that is the normal way non gentoo devs builds toolchains?
portage already has per-package env support
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-embedded] e300c3/c3 cpu support for glibc ports
2010-09-28 2:33 ` Mike Frysinger
@ 2010-09-28 6:55 ` Joakim Tjernlund
2010-09-28 8:16 ` Mike Frysinger
0 siblings, 1 reply; 8+ messages in thread
From: Joakim Tjernlund @ 2010-09-28 6:55 UTC (permalink / raw
To: Mike Frysinger; +Cc: gentoo-embedded
Mike Frysinger <vapier@gentoo.org> wrote on 2010/09/28 04:33:38:
> From: Mike Frysinger <vapier@gentoo.org>
> To: Joakim Tjernlund <joakim.tjernlund@transmode.se>
> Cc: gentoo-embedded@lists.gentoo.org
> Date: 2010/09/28 05:00
> Subject: Re: [gentoo-embedded] e300c3/c3 cpu support for glibc ports
>
> On Monday, September 27, 2010 10:55:32 Joakim Tjernlund wrote:
> > Mike Frysinger wrote on 2010/09/25 08:07:15:
> > > On Friday, September 24, 2010 12:22:19 Joakim Tjernlund wrote:
> > > > This is what I came up with to make glibc support
> > > > --with-cpu=e300c2
> > >
> > > mail it to libc-ports ?
> >
> > Upstream doesn't want it as it only adds --with-cpu= syntax
> > and don't change anything else.
> > That implies crossdev needs to grow support different configure options
> > for glibc/gcc/binutils etc.
> > I guess that is the normal way non gentoo devs builds toolchains?
>
> portage already has per-package env support
But you said earlier:
you'd have to use per-package env manually:
/etc/portage/env/$CATEGORY/$PN
but crossdev likes to clobber this file for you. so i guess i should
extend crossdev with --env-xxx options so people can add their own.
So currently there is no way to pass in different configure options?
I would be happy some extra env var like
CROSS_CC_CONF
CROSS_LIBC_CONF
that would be appended to EXTRA_ECONF
configure options that gets passed directly to crossdev
works too.
Jocke
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-embedded] e300c3/c3 cpu support for glibc ports
2010-09-28 6:55 ` Joakim Tjernlund
@ 2010-09-28 8:16 ` Mike Frysinger
2010-09-28 13:00 ` Joakim Tjernlund
0 siblings, 1 reply; 8+ messages in thread
From: Mike Frysinger @ 2010-09-28 8:16 UTC (permalink / raw
To: Joakim Tjernlund; +Cc: gentoo-embedded
[-- Attachment #1: Type: Text/Plain, Size: 1700 bytes --]
On Tuesday, September 28, 2010 02:55:13 Joakim Tjernlund wrote:
> Mike Frysinger <vapier@gentoo.org> wrote on 2010/09/28 04:33:38:
> > On Monday, September 27, 2010 10:55:32 Joakim Tjernlund wrote:
> > > Mike Frysinger wrote on 2010/09/25 08:07:15:
> > > > On Friday, September 24, 2010 12:22:19 Joakim Tjernlund wrote:
> > > > > This is what I came up with to make glibc support
> > > > > --with-cpu=e300c2
> > > >
> > > > mail it to libc-ports ?
> > >
> > > Upstream doesn't want it as it only adds --with-cpu= syntax
> > > and don't change anything else.
> > > That implies crossdev needs to grow support different configure options
> > > for glibc/gcc/binutils etc.
> > > I guess that is the normal way non gentoo devs builds toolchains?
> >
> > portage already has per-package env support
>
> But you said earlier:
> you'd have to use per-package env manually:
> /etc/portage/env/$CATEGORY/$PN
>
> but crossdev likes to clobber this file for you. so i guess i should
> extend crossdev with --env-xxx options so people can add their own.
>
> So currently there is no way to pass in different configure options?
>
> I would be happy some extra env var like
> CROSS_CC_CONF
> CROSS_LIBC_CONF
> that would be appended to EXTRA_ECONF
>
> configure options that gets passed directly to crossdev
> works too.
yes, per-package env vars arent working optimal today, but my point is that
that is the only thing i'm going to support. it isnt worth the hassle of
designing custom variables & options which ultimately boil down to
EXTRA_ECONF. we have EXTRA_ECONF already which means it is left up to the
user to set them accordingly.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-embedded] e300c3/c3 cpu support for glibc ports
2010-09-28 8:16 ` Mike Frysinger
@ 2010-09-28 13:00 ` Joakim Tjernlund
0 siblings, 0 replies; 8+ messages in thread
From: Joakim Tjernlund @ 2010-09-28 13:00 UTC (permalink / raw
To: Mike Frysinger; +Cc: gentoo-embedded
Mike Frysinger <vapier@gentoo.org> wrote on 2010/09/28 10:16:58:
>
> On Tuesday, September 28, 2010 02:55:13 Joakim Tjernlund wrote:
> > Mike Frysinger <vapier@gentoo.org> wrote on 2010/09/28 04:33:38:
> > > On Monday, September 27, 2010 10:55:32 Joakim Tjernlund wrote:
> > > > Mike Frysinger wrote on 2010/09/25 08:07:15:
> > > > > On Friday, September 24, 2010 12:22:19 Joakim Tjernlund wrote:
> > > > > > This is what I came up with to make glibc support
> > > > > > --with-cpu=e300c2
> > > > >
> > > > > mail it to libc-ports ?
> > > >
> > > > Upstream doesn't want it as it only adds --with-cpu= syntax
> > > > and don't change anything else.
> > > > That implies crossdev needs to grow support different configure options
> > > > for glibc/gcc/binutils etc.
> > > > I guess that is the normal way non gentoo devs builds toolchains?
> > >
> > > portage already has per-package env support
> >
> > But you said earlier:
> > you'd have to use per-package env manually:
> > /etc/portage/env/$CATEGORY/$PN
> >
> > but crossdev likes to clobber this file for you. so i guess i should
> > extend crossdev with --env-xxx options so people can add their own.
> >
> > So currently there is no way to pass in different configure options?
> >
> > I would be happy some extra env var like
> > CROSS_CC_CONF
> > CROSS_LIBC_CONF
> > that would be appended to EXTRA_ECONF
> >
> > configure options that gets passed directly to crossdev
> > works too.
>
> yes, per-package env vars arent working optimal today, but my point is that
> that is the only thing i'm going to support. it isnt worth the hassle of
> designing custom variables & options which ultimately boil down to
> EXTRA_ECONF. we have EXTRA_ECONF already which means it is left up to the
> user to set them accordingly.
Yes, it is a pity EXTRA_ECONF doesn't work here.
BTW, is there a way to tell crossdev/gcc not to build/install powerpc64-*
tools? I have no need for them and they just get in my way.
Jocke.
Jocke
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-09-28 13:11 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-24 16:22 [gentoo-embedded] e300c3/c3 cpu support for glibc ports Joakim Tjernlund
2010-09-25 6:07 ` Mike Frysinger
2010-09-25 17:17 ` Joakim Tjernlund
2010-09-27 14:55 ` Joakim Tjernlund
2010-09-28 2:33 ` Mike Frysinger
2010-09-28 6:55 ` Joakim Tjernlund
2010-09-28 8:16 ` Mike Frysinger
2010-09-28 13:00 ` Joakim Tjernlund
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox