source: examples-v2/wscript @ 0d56108

4.11
Last change on this file since 0d56108 was 0d56108, checked in by Gedare Bloom <gedare@…>, on Nov 22, 2013 at 11:14:18 AM

Add LICENSE.2 with 2-clause BSD. Point to it from 2-clause BSD licensed files.

  • Property mode set to 100644
File size: 1.0 KB
Line 
1# Copyright 2013 Chris Johns (chrisj@rtems.org)
2#
3# This file's license is 2-clause BSD as in this distribution's LICENSE.2 file.
4#
5
6# Waf build script for RTEMS examples
7#
8# To configure, build and run do:
9#
10# $ waf configure --rtems=/Users/chris/Development/rtems/build/4.11 \
11#                 --rtems-tools=/Users/chris/Development/rtems/4.11 \
12#                 --rtems-bsps=sparc/sis
13# $ waf
14# $ /Users/chris/Development/rtems/4.11/bin/sparc-rtems4.11-run ./build/sparc-rtems4.11-sis/hello
15#
16# You can use '--rtems-archs=sparc,i386' or '--rtems-bsps=sparc/sis,i386/pc586'
17# to build for more than BSP at a time.
18#
19
20import rtems_waf.rtems as rtems
21
22def init(ctx):
23    rtems.init(ctx)
24
25def options(opt):
26    rtems.options(opt)
27
28def configure(conf):
29    rtems.configure(conf)
30
31def build(bld):
32    rtems.build(bld)
33    bld.recurse('hello')
34
35def rebuild(ctx):
36    import waflib.Options
37    waflib.Options.commands.extend(['clean', 'build'])
38
39def tags(ctx):
40    ctx.exec_command('etags $(find . -name \*.[sSch])', shell = True)
Note: See TracBrowser for help on using the repository browser.