mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 04:24:45 +00:00
* acinclude.m4: Fix broken comments. Add hidden option --enable-experimental. * README.cdn-X: Update. * configure.ac: Build tools/build as host and build-host tools to accomodate those BSPs applying packhex in <BSP>.cfg. Build tools/cpu as build-host tools.
74 lines
2.0 KiB
Plaintext
74 lines
2.0 KiB
Plaintext
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.
|