[examples-v2 commit] micromonitor: umon: Add support to build with waf

Gedare Bloom gedare at rtems.org
Thu Dec 12 19:49:54 UTC 2013


Module:    examples-v2
Branch:    master
Commit:    5b6096bb0eb385d98a03c9d23767624925c61ff7
Changeset: http://git.rtems.org/examples-v2/commit/?id=5b6096bb0eb385d98a03c9d23767624925c61ff7

Author:    Chirayu Desai <cdesai at cyanogenmod.org>
Date:      Sun Dec  1 00:27:41 2013 +0530

micromonitor: umon: Add support to build with waf

Add wscript to support building with waf
Build it only for csb337 BSP (ARM)

---

 micromonitor/umon/wscript |   14 ++++++++++++++
 micromonitor/wscript      |   11 +++++++++++
 wscript                   |    1 +
 3 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/micromonitor/umon/wscript b/micromonitor/umon/wscript
new file mode 100644
index 0000000..5627c7b
--- /dev/null
+++ b/micromonitor/umon/wscript
@@ -0,0 +1,14 @@
+# Copyright 2013 Gedare Bloom (gedare at rtems.org)
+#
+# This file's license is 2-clause BSD as in this distribution's LICENSE.2 file.
+#
+
+# Waf build script for an RTEMS Hello
+import rtems_waf.rtems as rtems
+
+def build(bld):
+    rtems.build(bld)
+
+    bld(features = 'c cprogram',
+        target = 'umon.exe',
+        source = ['test.c'])
diff --git a/micromonitor/wscript b/micromonitor/wscript
new file mode 100644
index 0000000..20ef9f5
--- /dev/null
+++ b/micromonitor/wscript
@@ -0,0 +1,11 @@
+# Copyright 2013 Gedare Bloom (gedare at rtems.org)
+#
+# This file's license is 2-clause BSD as in this distribution's LICENSE.2 file.
+#
+
+import rtems_waf.rtems as rtems
+
+def build(bld):
+    bsp = bld.get_env()['RTEMS_BSP']
+    if (bsp == 'csb337'):
+        bld.recurse('umon')
diff --git a/wscript b/wscript
index a2b8a44..8ccfe8a 100644
--- a/wscript
+++ b/wscript
@@ -41,6 +41,7 @@ def build(bld):
     bld.recurse('led')
     bld.recurse('misc')
     bld.recurse('benchmarks')
+    bld.recurse('micromonitor')
 
 def rebuild(ctx):
     import waflib.Options




More information about the vc mailing list