On Saturday 04 March 2006 06:46, Ricardo Kekki wrote:
> On Fri, 3 Mar 2006, Rohit Chaudhri wrote:
> > Since installation of foreign toolchains in Scratchbox 1.0.2 is
> > difficult so I am trying to build a new toolchain based on an existing
> > configuration file. I need to build a gcc3.3-glibc2.3.2 toolchain for
> > ARM with software FP support. I started with the file
> > meta/toolchain/arm-gcc3.3-glibc.conf and set the USE_SOFTFLOAT to
> > "yes", changed the COMPILER_NAME.
>
> I would recommend building softfloat toolchains for arm with gcc-3.4 or
> later. see http://gcc.gnu.org/gcc-3.4/changes.html. Or you need to fix the
> gcc build for gcc-3.3 to actually support softfloats.
>
> > I believe Scratchbox 0.9.8 had a gcc-glibc toolchain for arm with
> > software FP support, I tried installing that toolchain in Scratchbox
> > 1.0.2, but it doesn't show up in sb-menu. Perhaps its not compatible
> > with the latest sb version any more.
>
> The codesourcery based toolchains can be built from the darcs
> repository. Just use arm-gcc3.4.cs-glibc-sf.conf. I think scratchbox has
> never provided softfloat toolchains with the gcc-3.3 or older gcc.

Another new option that is available that you might want to try is to get the 
darcs 1.2/sb-toolchain repo and use a crosstool CONFIG. To use this do the 
following:

[sbox-HOST: ~] > darcs get --set-scripts-executable \
http://scratchbox.org/repos/1.2/sb-toolchains

[sbox-HOST: ~] > wget http://kegel.com/crosstool/crosstool-0.42.tar.gz
#(or whatever the latest one is).

[sbox-HOST: ~] > tar xzf crosstool-0.42.tar.gz

[sbox-HOST: ~] > cd sb-toolchains

[sbox-HOST: ~/sb-toolchains] > ./import-crosstool.sh ../crosstool-0.42/

This will import the crosstool dat files and patch sets to use with 
sb-toolchains. Use meta/toolchain/crosstool-armv5b-gcc-3.4.5-glibc-2.3.5.conf 
as an example. Then do:

[sbox-HOST: ~/sb-toolchains] > make CONFIG=meta/toolchains/<myconfig> all-sums
[sbox-HOST: ~/sb-toolchains] > make CONFIG=meta/toolchains/<myconfig>

This will create a toolchain that uses build steps that were ported over from 
crosstool to sb-toolchains and makes use of variables found in the crosstool 
*.dat files and the crosstool patch repository.

Hope this helps.

Jon

_______________________________________________
Scratchbox-users mailing list
[email protected]
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to