summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Dunsmore <dunsmoreb@gmail.com>2013-11-28 22:10:49 -0500
committerGedare Bloom <gedare@rtems.org>2013-12-12 14:55:55 -0500
commit5f3cfe2cb56670465d82fef3f42bf37d44f35f82 (patch)
tree3c3e67dae3cb134086a94a589e17217b03aabfa0
parentdbda7c5510dbc569a35464e61ff75d2e51958c41 (diff)
Convert uboot example to use Waf.
-rw-r--r--uboot/uboot_getenv/wscript15
-rw-r--r--uboot/wscript10
-rw-r--r--wscript1
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@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@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