Line | |
---|
1 | # Copyright 2013 Chris Johns (chrisj@rtems.org) |
---|
2 | # Copyright 2014 Chirayu Desai (chirayudesai1@gmail.com) |
---|
3 | # |
---|
4 | # This file's license is 2-clause BSD as in this distribution's LICENSE.2 file. |
---|
5 | # |
---|
6 | |
---|
7 | # Waf build script for RTEMS examples |
---|
8 | # |
---|
9 | # To configure, build and run do: |
---|
10 | # |
---|
11 | # $ waf configure --rtems=/Users/chris/Development/rtems/build/4.11 \ |
---|
12 | # --rtems-tools=/Users/chris/Development/rtems/4.11 \ |
---|
13 | # --rtems-bsps=sparc/sis |
---|
14 | # $ waf |
---|
15 | # $ /Users/chris/Development/rtems/4.11/bin/sparc-rtems4.11-run ./build/sparc-rtems4.11-sis/hello |
---|
16 | # |
---|
17 | # You can use '--rtems-archs=sparc,i386' or '--rtems-bsps=sparc/sis,i386/pc586' |
---|
18 | # to build for more than BSP at a time. |
---|
19 | # |
---|
20 | |
---|
21 | try: |
---|
22 | import rtems_waf.rtems as rtems |
---|
23 | except: |
---|
24 | print 'error: no rtems_waf git submodule; see README.waf' |
---|
25 | import sys |
---|
26 | sys.exit(1) |
---|
27 | |
---|
28 | def init(ctx): |
---|
29 | rtems.init(ctx) |
---|
30 | |
---|
31 | def options(opt): |
---|
32 | rtems.options(opt) |
---|
33 | |
---|
34 | def configure(conf): |
---|
35 | rtems.configure(conf) |
---|
36 | |
---|
37 | def build(bld): |
---|
38 | rtems.build(bld) |
---|
39 | bld.add_group('libraries') |
---|
40 | bld.add_group('programs') |
---|
41 | bld.recurse('commands') |
---|
42 | bld.recurse('pcmmio') |
---|
43 | bld.recurse('rtd6425') |
---|
44 | bld.recurse('rtd6425_shell') |
---|
Note: See
TracBrowser
for help on using the repository browser.