summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChirayu Desai <cdesai@cyanogenmod.org>2013-12-03 21:10:58 +0530
committerGedare Bloom <gedare@rtems.org>2013-12-12 14:55:56 -0500
commit7d00f04398ad0c79b760310c9206aba738681143 (patch)
treea1e77c706958b751261d9452c62b25cbbf7b49ec
parentcdc0d70a3a7315eace2e3d258f02520aee5d2116 (diff)
posix_api: Add support to build with waf
Add wscript(s) for building with waf
-rw-r--r--posix_api/psx_example_1/wscript15
-rw-r--r--posix_api/psx_example_2/wscript15
-rw-r--r--posix_api/psx_example_3/wscript15
-rw-r--r--posix_api/psx_sched_report/wscript16
-rw-r--r--posix_api/wscript14
-rw-r--r--wscript1
6 files changed, 76 insertions, 0 deletions
diff --git a/posix_api/psx_example_1/wscript b/posix_api/psx_example_1/wscript
new file mode 100644
index 0000000..5bd0608
--- /dev/null
+++ b/posix_api/psx_example_1/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 = 'psx_example_1.exe',
+ source = ['test1.c'])
+
diff --git a/posix_api/psx_example_2/wscript b/posix_api/psx_example_2/wscript
new file mode 100644
index 0000000..5ecf27c
--- /dev/null
+++ b/posix_api/psx_example_2/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 = 'psx_example_2.exe',
+ source = ['test2.c'])
+
diff --git a/posix_api/psx_example_3/wscript b/posix_api/psx_example_3/wscript
new file mode 100644
index 0000000..9f8d86f
--- /dev/null
+++ b/posix_api/psx_example_3/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 = 'psx_example_3.exe',
+ source = ['test3.c'])
+
diff --git a/posix_api/psx_sched_report/wscript b/posix_api/psx_sched_report/wscript
new file mode 100644
index 0000000..0cb9a52
--- /dev/null
+++ b/posix_api/psx_sched_report/wscript
@@ -0,0 +1,16 @@
+# 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 = 'psx_sched_report.exe',
+ source = ['test.c'],
+ lib = ['c'])
+
diff --git a/posix_api/wscript b/posix_api/wscript
new file mode 100644
index 0000000..c5529f0
--- /dev/null
+++ b/posix_api/wscript
@@ -0,0 +1,14 @@
+# 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):
+ if rtems.check_posix:
+ bld.recurse('psx_example_1')
+ bld.recurse('psx_example_2')
+ bld.recurse('psx_example_3')
+ bld.recurse('psx_sched_report')
+
diff --git a/wscript b/wscript
index 8ccfe8a..7aa47a1 100644
--- a/wscript
+++ b/wscript
@@ -42,6 +42,7 @@ def build(bld):
bld.recurse('misc')
bld.recurse('benchmarks')
bld.recurse('micromonitor')
+ bld.recurse('posix_api')
def rebuild(ctx):
import waflib.Options