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

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


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

Author:    Bryan Dunsmore <dunsmoreb at gmail.com>
Date:      Fri Nov 29 08:28:47 2013 -0500

Convert gdb example to use Waf.

---

 gdb/overwrite/wscript |   14 ++++++++++++++
 gdb/wscript           |    9 +++++++++
 wscript               |    1 +
 3 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/gdb/overwrite/wscript b/gdb/overwrite/wscript
new file mode 100644
index 0000000..378b9fb
--- /dev/null
+++ b/gdb/overwrite/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 = 'overwrite',
+        source = ['overwrite.c', 'rtems_init.c'])
diff --git a/gdb/wscript b/gdb/wscript
new file mode 100644
index 0000000..046d07b
--- /dev/null
+++ b/gdb/wscript
@@ -0,0 +1,9 @@
+# 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('overwrite')
diff --git a/wscript b/wscript
index 72ce400..347f8fa 100644
--- a/wscript
+++ b/wscript
@@ -32,6 +32,7 @@ def build(bld):
     rtems.build(bld)
     bld.env.CFLAGS += ['-O2','-g']
     bld.recurse('hello')
+    bld.recurse('gdb')
     bld.recurse('filesystem/fat_ramdisk')
     bld.recurse('classic_api')
     bld.recurse('file_io')




More information about the vc mailing list