summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChirayu Desai <cdesai@cyanogenmod.org>2013-11-30 21:39:56 +0530
committerGedare Bloom <gedare@rtems.org>2013-12-12 14:55:55 -0500
commit1d008f25037dba1203d1a94903c1386caf14c08b (patch)
tree1113143c3da30b4b29c1b156833ad03046896922
parent6bfcd330b43ea3d7d805f5394e4d9f4d125cc642 (diff)
benchmarks: Add support to build with waf
Add wscript(s) to support building benchmarks/nbench with waf
-rw-r--r--benchmarks/nbench/wscript17
-rw-r--r--benchmarks/wscript10
-rw-r--r--wscript1
3 files changed, 28 insertions, 0 deletions
diff --git a/benchmarks/nbench/wscript b/benchmarks/nbench/wscript
new file mode 100644
index 0000000..4675061
--- /dev/null
+++ b/benchmarks/nbench/wscript
@@ -0,0 +1,17 @@
+# 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):
+
+ path = 'nbench-byte-2.2.3/'
+
+ bld(features = 'c cprogram',
+ target = 'nbench.exe',
+ source = ['main.c', path + 'emfloat.c', path + 'hardware.c',
+ path + 'misc.c', path + 'nbench0.c', path + 'nbench1.c',
+ path + 'sysspec.c'],
+ lib = ['m'])
diff --git a/benchmarks/wscript b/benchmarks/wscript
new file mode 100644
index 0000000..12741e7
--- /dev/null
+++ b/benchmarks/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('nbench')
+
diff --git a/wscript b/wscript
index dd50cb2..a2b8a44 100644
--- a/wscript
+++ b/wscript
@@ -40,6 +40,7 @@ def build(bld):
bld.recurse('uboot')
bld.recurse('led')
bld.recurse('misc')
+ bld.recurse('benchmarks')
def rebuild(ctx):
import waflib.Options