summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2013-11-21 16:58:11 -0500
committerGedare Bloom <gedare@rtems.org>2013-12-12 14:55:54 -0500
commitace2e322299759bae8d365ea0d305cbbe0da2746 (patch)
treede30127a6e5d58cb2974cf8d987dc26ba27afd22 /wscript
parent3a9c7d6862f85d06faa504b4761888e7bbf31abf (diff)
Waf: Add top-level wscript and rtems_waf module to support waf builds.
Diffstat (limited to 'wscript')
-rw-r--r--wscript58
1 files changed, 58 insertions, 0 deletions
diff --git a/wscript b/wscript
new file mode 100644
index 0000000..c78d84c
--- /dev/null
+++ b/wscript
@@ -0,0 +1,58 @@
+# Copyright 2013 Chris Johns (chrisj@rtems.org)
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright notice,
+# this list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+
+# Waf build script for RTEMS examples
+#
+# To configure, build and run do:
+#
+# $ waf configure --rtems=/Users/chris/Development/rtems/build/4.11 \
+# --rtems-tools=/Users/chris/Development/rtems/4.11 \
+# --rtems-bsps=sparc/sis
+# $ waf
+# $ /Users/chris/Development/rtems/4.11/bin/sparc-rtems4.11-run ./build/sparc-rtems4.11-sis/hello
+#
+# You can use '--rtems-archs=sparc,i386' or '--rtems-bsps=sparc/sis,i386/pc586'
+# to build for more than BSP at a time.
+#
+
+import rtems_waf.rtems as rtems
+
+def init(ctx):
+ rtems.init(ctx)
+
+def options(opt):
+ rtems.options(opt)
+
+def configure(conf):
+ rtems.configure(conf)
+
+def build(bld):
+ rtems.build(bld)
+
+def rebuild(ctx):
+ import waflib.Options
+ waflib.Options.commands.extend(['clean', 'build'])
+
+def tags(ctx):
+ ctx.exec_command('etags $(find . -name \*.[sSch])', shell = True)