Gentoo Archives: gentoo-embedded

From: Mike Frysinger <vapier@g.o>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] crossdev & ports questions
Date: Mon, 20 Sep 2010 23:08:45
Message-Id: 201009201839.48103.vapier@gentoo.org
In Reply to: Re: [gentoo-embedded] crossdev & ports questions by Joakim Tjernlund
1 On Monday, September 20, 2010 17:08:56 Joakim Tjernlund wrote:
2 > Mike Frysinger wrote on 2010/09/20 22:00:25:
3 > > On Monday, September 20, 2010 15:00:25 Joakim Tjernlund wrote:
4 > > > I am fiddling with crossdev again and I wonder if there a way to
5 > > > pass different configure options to gcc/binutils vs. glibc?
6 > > > Doing export EXTRA_ECONF="--with-cpu=e300c2" applies
7 > > > to all and glibc bombs with subarch not supported error.
8 > >
9 > > you'd have to use per-package env manually:
10 > > /etc/portage/env/$CATEGORY/$PN
11 > >
12 > > but crossdev likes to clobber this file for you. so i guess i should
13 > > extend crossdev with --env-xxx options so people can add their own.
14 > >
15 > > > Second, there are not many PowerPC cpus in the ports section
16 > > > of glibc and not mine embedded one either. Is there any
17 > > > alternative ports pkg somewhere that supports more PowerPC
18 > > > cpus?
19 > >
20 > > we take what glibc offers via their glibc-ports package. personally, i
21 > > do 0 embedded powerpc work, so i dont know of any "alternatives" or
22 > > such.
23 >
24 > OK, I was mainly after some decent mem*() functions as the ones provided
25 > usually perform badly for embedded CPUs
26 >
27 > > if they did exist though, the only way currently to get them
28 > > transparently added would be to make a big patch out of them and then
29 > > use the user patch interface (put patches into
30 > > /etc/portage/patches/$CATEGORY/$P/).
31 >
32 > hmm, maybe I could make up my own dummy ports pkg for my cpu. That way
33 > I could probably make glibc accept my cpu conf too.
34
35 drepper already voiced his opinion -- these embedded cpu optimizations werent
36 going to be added to the main glibc tree. but he has no problem with them
37 being "dumped" into the glibc-ports tree and because of the way things are
38 structured, that should work for you.
39
40 so if you have some per-cpu trees to overlay, e-mail them to the glibc-ports
41 list so they can get merged.
42 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature