[examples-v2 commit] Convert uboot example to use Waf.

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


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

Author:    Bryan Dunsmore <dunsmoreb at gmail.com>
Date:      Thu Nov 28 22:10:49 2013 -0500

Convert uboot example to use Waf.

---

 uboot/uboot_getenv/wscript |   15 +++++++++++++++
 uboot/wscript              |   10 ++++++++++
 wscript                    |    1 +
 3 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/uboot/uboot_getenv/wscript b/uboot/uboot_getenv/wscript
new file mode 100644
index 0000000..21c128a
--- /dev/null
+++ b/uboot/uboot_getenv/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 = 'uboot_getenv',
+        source = ['test.c'])
+
diff --git a/uboot/wscript b/uboot/wscript
new file mode 100644
index 0000000..cf7f95d
--- /dev/null
+++ b/uboot/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('uboot_getenv')
+
diff --git a/wscript b/wscript
index ddc9fa4..b9c214b 100644
--- a/wscript
+++ b/wscript
@@ -37,6 +37,7 @@ def build(bld):
     bld.recurse('classic_api')
     bld.recurse('file_io')
     bld.recurse('ticker')
+    bld.recurse('uboot')
 
 def rebuild(ctx):
     import waflib.Options




More information about the vc mailing list