URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Subversion Repositories or1k_old
[/] [or1k_old/] [trunk/] [rtems-20020807/] [README.cdn-X] - Rev 1782
Compare with Previous | Blame | View Log
Building RTEMS Canadian Cross=============================RTEMS now contains experimental and yet incomplete support for buildingit Canadian Cross.1. Introduction---------------If you don't know what Canadian Cross Building means, you probably don't wantto apply it and should consider stop reading here.Interested readers might want to read Ian Lance Taylor's article athttp://www.airs.com/ian/configure for underlaying details and workingprinciples.2. RTEMS--------Example: Building RTEMS for sparc-rtems under i386-pc-linux-gnu to be hostedon a i386-cygwin platform.2.1 Required tools------------------* A i386-pc-linux-gnu cross sparc-rtems toolchain.* A i386-pc-linux-gnu cross i386-cygwin toolchain.* A i386-pc-linux-gnu native toolchain.We further on assume these to be installed to these locations:/opt/rtems .. linux cross sparc-rtems toolchain/opt/cygwin .. linux cross i386-cygwin cross-toolchain/usr .. linux native toolchain and further tools.2.2 Building sparc-rtems------------------------The first step is to build RTEMS for sparc-rtems under linux.mkdir buildcd build<path>/rtems/configure [options] \--target=sparc-rtems \--prefix=/opt/cygwin/rtems/sparc-rtemsmakemake installThis will build a standard sparc-rtems RTEMS and install it to the givenPREFIX.2.3 Building i386-cygwin host support-------------------------------------The next step is to build RTEMS host support for i386-cygwin.This basically means to cross-build the host tools contained in RTEMS.mkdir hostcd host<path>/rtems/configure [options] \--target=sparc-rtems \--build=`<path>/rtems/config.guess` \--host=i386-cygwin \--prefix=/opt/cygwin/rtemsmakemake installThis will build RTEMS host-tools for i386-cygwin and install it to the givenPREFIX.3. Known issues---------------* At present time, building RTEMS Canadian Cross is known to be immature, andto require additional work. Do not expect this to work.* The configure scripts expect to find a native c-compiler called "cc". Ifyour host doesn't have such a "cc" (e.g. Cygwin) or has a non-functional"cc" (eg. Solaris) try introducing a symlink <functional-cc> -> cc(E.g.: ln -s <path-to>/gcc /opt/rtems/bin/cc) and make sure this cc can befound on $PATH.* It will *not* work for all BSPs requiring BSP-specific host-tools(Unfortunately, this comprizes i386-rtems/pcx86 and all powerpc BSPs).* Incomplete support for *_FOR_TARGET, *_FOR_HOST, *_FOR_BUILD environmentvariables.* The <toplevel>/make/ directory hierarchy is not treated correctly.
