summaryrefslogtreecommitdiff
path: root/testcase/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'testcase/wscript')
-rw-r--r--testcase/wscript32
1 files changed, 32 insertions, 0 deletions
diff --git a/testcase/wscript b/testcase/wscript
new file mode 100644
index 0000000..a518cb6
--- /dev/null
+++ b/testcase/wscript
@@ -0,0 +1,32 @@
+import re
+import rtems
+
+def build(bld):
+ arch = bld.get_env()['RTEMS_ARCH']
+
+ bld(target = 'x',
+ features = 'c cstlib',
+ includes = bld.includes,
+ defines = bld.defines,
+ source = ['1.c', '2.c'])
+
+# Note: the bsp is compiled in thumb mode
+# The follow cflags is to test arm/thumb reloc code.
+# cflags = '-marm -fno-common -DARM_TEST',
+# cflags = '-mthumb -fno-common -DTHUMB_TEST',
+# cflags = '-marm -mcpu=arm1176jzf-s -fno-common -DARM_TEST',
+
+ if arch == 'arm':
+ bld(target = 'test.rap',
+ features = 'c rap',
+ xxxx = 'hello',
+
+ cflags = '-mthumb -fno-common -DTHUMB_TEST',
+
+ rtems_linkflags = ['--base', 'rtld.prelink',
+ '--entry', 'my_main'],
+ source = ['1.c', '2.c'])
+
+ bld(target = '../test.rap',
+ source = ['test.rap'],
+ rule = 'cp ${SRC} ${TGT}')