diff options
author | Chirayu Desai <cdesai@cyanogenmod.org> | 2013-12-03 21:10:58 +0530 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2013-12-12 14:55:56 -0500 |
commit | 7d00f04398ad0c79b760310c9206aba738681143 (patch) | |
tree | a1e77c706958b751261d9452c62b25cbbf7b49ec /posix_api | |
parent | cdc0d70a3a7315eace2e3d258f02520aee5d2116 (diff) |
posix_api: Add support to build with waf
Add wscript(s) for building with waf
Diffstat (limited to 'posix_api')
-rw-r--r-- | posix_api/psx_example_1/wscript | 15 | ||||
-rw-r--r-- | posix_api/psx_example_2/wscript | 15 | ||||
-rw-r--r-- | posix_api/psx_example_3/wscript | 15 | ||||
-rw-r--r-- | posix_api/psx_sched_report/wscript | 16 | ||||
-rw-r--r-- | posix_api/wscript | 14 |
5 files changed, 75 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') + |