summaryrefslogtreecommitdiffstats
path: root/README.cdn-X
blob: d259d5d4b239efa18a7c7133469994e160513a00 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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.