Changes between Version 3 and Version 4 of Installation Notes


Ignore:
Timestamp:
Jan 17, 2008, 11:01:48 AM (16 years ago)
Author:
Nicolas Pouillon
Comment:

Toolchain overrides

Legend:

Unmodified
Added
Removed
Modified
  • Installation Notes

    v3 v4  
    3838== Configuration ==
    3939
     40=== SystemC ===
     41
    4042You may edit [SoclibConf SoCLib's configuration file]. Out of the box, the only thing the configuration
    4143needs is setting an environment variable pointing to your SystemC implementation. Again
     
    5153COPYING  INSTALL    NEWS     RELEASENOTES  examples  lib-linux
    5254}}}
     55
     56=== Cross-compilation tools ===
     57
     58By default, platform examples expect cross-toolchains compiled as described in CrossCompiler.
     59I.e. it expects `mipsel-unknown-elf-gcc`, `powerpc-unknown-elf-gcc` and `mb-gcc` (Xilinx ships a Microblaze compiler named it this way).
     60
     61If you already have cross-toolchains compiled on your host, you can declare them in `~/.soclib/soft_compilers.conf`.
     62For each architecture in `mipsel`, `powerpc` and `microblaze`, you may define:
     63{{{
     64<arch>_CC_PREFIX = ...
     65<arch>_CFLAGS = ...
     66<arch>_LDFLAGS = ...
     67}}}
     68
     69For instance, if you want to use a mips cross-compiler configured for Linux (GNU+Glibc), you can declare:
     70{{{
     71mipsel_CC_PREFIX = mipsel-linux-elf-
     72mipsel_CFLAGS = -nostdinc
     73mipsel_LDFLAGS = -nostdlib
     74}}}
     75`nostdinc` and `nostdlib` disable default libraries (Glibc) from compilation and linking.
    5376
    5477== Other paths ==