diff options
Diffstat (limited to 'README.cdn-X')
-rw-r--r-- | README.cdn-X | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/README.cdn-X b/README.cdn-X new file mode 100644 index 0000000000..d259d5d4b2 --- /dev/null +++ b/README.cdn-X @@ -0,0 +1,73 @@ +Building RTEMS Canadian Cross +============================= + +RTEMS now contains experimental and yet incomplete support for building +it Canadian Cross. + +1. Introduction +--------------- +If you don't know what Canadian Cross Building means, you probably don't want +to apply it and should consider stop reading here. + +Interested readers might want to read Ian Lance Taylor's article at +http://www.airs.com/ian/configure for underlaying details and working +principles. + + +2. RTEMS +-------- +Example: Building RTEMS for sparc-rtems under i386-pc-linux-gnu to be hosted +on 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 build +cd build +<path>/rtems/configure [options] \ +--target=sparc-rtems \ +--prefix=/opt/cygwin +make +make install + +This will build a standard sparc-rtems RTEMS and install it to the given +PREFIX. + +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 host +cd host +<path>/rtems/configure [options] \ +--target=sparc-rtems \ +--build=`<path>/rtems/config.guess` \ +--host=i386-cygwin \ +--prefix=/opt/cygwin +make +make install + +This will build RTEMS host-tools for i386-cygwin and install them to the given +PREFIX. + + +3. Known issues +--------------- + +* At present time, building RTEMS Canadian Cross is known to be immature, and +to require additional work. Do not expect this to work. + +* The <toplevel>/make/ directory hierarchy is not treated correctly. |