[examples-v2 commit] Convert led/timer example to Waf.
Gedare Bloom
gedare at rtems.org
Thu Dec 12 19:49:53 UTC 2013
Module: examples-v2
Branch: master
Commit: be39b98e1d448d06c50e8b6c941447367c8d12bc
Changeset: http://git.rtems.org/examples-v2/commit/?id=be39b98e1d448d06c50e8b6c941447367c8d12bc
Author: Bryan Dunsmore <dunsmoreb at gmail.com>
Date: Fri Nov 29 20:18:59 2013 -0500
Convert led/timer example to Waf.
---
led/timer/wscript | 15 +++++++++++++++
led/wscript | 10 ++++++++++
wscript | 1 +
3 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/led/timer/wscript b/led/timer/wscript
new file mode 100644
index 0000000..585bd25
--- /dev/null
+++ b/led/timer/wscript
@@ -0,0 +1,15 @@
+# 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 = 'timer',
+ source = ['init.c'])
+
diff --git a/led/wscript b/led/wscript
new file mode 100644
index 0000000..a5d1f33
--- /dev/null
+++ b/led/wscript
@@ -0,0 +1,10 @@
+# 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):
+ bld.recurse('timer')
+
diff --git a/wscript b/wscript
index b9c214b..43e870d 100644
--- a/wscript
+++ b/wscript
@@ -38,6 +38,7 @@ def build(bld):
bld.recurse('file_io')
bld.recurse('ticker')
bld.recurse('uboot')
+ bld.recurse('led')
def rebuild(ctx):
import waflib.Options
More information about the vc
mailing list