-
Notifications
You must be signed in to change notification settings - Fork 10
/
README.waf
59 lines (39 loc) · 1.96 KB
/
README.waf
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
RTEMS Waf
~~~~~~~~~
You can find the Waf project here:
http://code.google.com/p/waf/
Simple instructions on How to set up Waf is here:
http://www.rtems.org/ftp/pub/rtems/people/chrisj/rtl/rtems-linker/waf.html
Steps
-----
1. Build or install the tools. In this example the path is
$HOME/Development/rtems/4.12.
2. Build and install the RTEMS Board Support Packages you want to use. In this
example the path is $HOME/Development/rtems/build/4.12.
3. Unpack this package somewhere, anywhere on your disk and change into the top
level directory.
4. Populate the git submodule:
$ git submodule init
$ git submodule update
5. Configure with your specific settings. In this case the path to the tools
and RTEMS and provided on the command line and so do not need to be in your
path or environment [1] and we limit the build to 'sparc/sis' BSP:
$ waf configure --rtems=$HOME/Development/rtems/build/4.12 \
--rtems-tools=$HOME/Development/rtems/4.12 \
--rtems-version=4.12 \
--rtems-bsps=sparc/sis
You can use '--rtems-archs=sparc,sis' or
'--rtems-bsps=sparc/sis,arm/raspberrypi' to build for more than BSP at a time.
6. Build:
$ waf
7. Run the executable using the simulator:
$ $HOME/Development/rtems/4.12/bin/sparc-rtems4.12-run \
./build/sparc-rtems4.12-sis/rki.elf
[1] It is good practice to keep your environment as empty as possible. Setting
paths to tools or specific values to configure or control builds is
dangerous because settings can leak between different builds and change
what you expect a build to do. The waf tool used here lets you specify on
the command line the tools and RTEMS paths and this is embedded in waf's
configuration information. If you have a few source trees working at any
one time with different tool sets or configurations you can easly move
between them safe in the knowledge that one build will not infect another.