diff options
author | Peng Fan <van.freenix@gmail.com> | 2013-09-05 13:00:59 +0800 |
---|---|---|
committer | Peng Fan <van.freenix@gmail.com> | 2013-09-05 13:47:39 +0800 |
commit | 633c0e0d23c4b874c71595a4d9d13b8d4acdf417 (patch) | |
tree | fca6d80aac162f6218cd2d2beffdbf694a5573c8 /testcase | |
parent | 03512e563946ee2a7830bad310a2de88d25bc328 (diff) |
Test for new features and new tools
Signed-off-by: Peng Fan <van.freenix@gmail.com>
Diffstat (limited to 'testcase')
-rw-r--r-- | testcase/3.c | 6 | ||||
-rw-r--r-- | testcase/33.c | 4 | ||||
-rw-r--r-- | testcase/333.c | 4 | ||||
-rw-r--r-- | testcase/4.c | 8 | ||||
-rw-r--r-- | testcase/wscript | 42 |
5 files changed, 64 insertions, 0 deletions
diff --git a/testcase/3.c b/testcase/3.c new file mode 100644 index 0000000..4e63c1b --- /dev/null +++ b/testcase/3.c @@ -0,0 +1,6 @@ +#include <stdio.h> +int ar_func_test(void) +{ + printf ("ar_func_test\n"); + return 0x55; +} diff --git a/testcase/33.c b/testcase/33.c new file mode 100644 index 0000000..dfc08f8 --- /dev/null +++ b/testcase/33.c @@ -0,0 +1,4 @@ +int t1(void) +{ + return 1; +} diff --git a/testcase/333.c b/testcase/333.c new file mode 100644 index 0000000..0c810fc --- /dev/null +++ b/testcase/333.c @@ -0,0 +1,4 @@ +int t2(void) +{ + return 2; +} diff --git a/testcase/4.c b/testcase/4.c new file mode 100644 index 0000000..f038c0b --- /dev/null +++ b/testcase/4.c @@ -0,0 +1,8 @@ +#include <stdio.h> +int rtems(int argc, char **argv) +{ + int a; + a =ar_func_test(); + printf("a = 0x%x\n",a); + return 0; +} diff --git a/testcase/wscript b/testcase/wscript index b455b4e..f9603bd 100644 --- a/testcase/wscript +++ b/testcase/wscript @@ -16,6 +16,44 @@ def build(bld): # cflags = '-mthumb -fno-common -DTHUMB_TEST', # cflags = '-marm -mcpu=arm1176jzf-s -fno-common -DARM_TEST', +############ For ar rap ################# + bld(target = '3', + features = 'c cstlib', + includes = bld.includes, + cflags = '-fno-common', + defines = bld.defines, + source = ['3.c', '33.c', '333.c']) + + bld(target = '../lib3.ra', + rule = 'touch ../lib3.ra') + + bld( + features = 'c ra', + xxxx = 'hello', + + cflags = '-fno-common', + + rtems_raflags = ['--lib', '3', + '--lib-path', 'testcase', + '--output-path', './', + '--no-stdlibs'],) + + bld(target = 'my.rap', + features = 'c rap', + xxxx = 'hello', + + cflags = '-fno-common', + + rtems_linkflags = ['--base', 'rtld.prelink', + '--entry', 'rtems', + '--lib-path', 'testcase', + '--lib', '3', '--runtime-lib', 'ttt'], + source = ['4.c']) + + bld(target = '../libttt.ra', + rule = 'touch ../libttt.ra') +##############End######################## + if arch == 'arm': bld(target = 'test.rap', features = 'c rap', @@ -135,3 +173,7 @@ def build(bld): bld(target = '../test.rap', source = ['test.rap'], rule = 'cp ${SRC} ${TGT}') + + bld(target = '../my.rap', + source = ['my.rap'], + rule = 'cp ${SRC} ${TGT}') |