diff options
author | Chirayu Desai <cdesai@cyanogenmod.org> | 2013-12-03 22:01:35 +0530 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2013-12-12 14:55:56 -0500 |
commit | cb982b2f06b45bfa44d550016a8a68553347dc67 (patch) | |
tree | bdb942ed5651fcff9f2846f0729ad327763b78ac | |
parent | 7d00f04398ad0c79b760310c9206aba738681143 (diff) |
hello: Add support to build with waf
Add wscript(s) for building posix_hello_world and both_hello with waf
-rw-r--r-- | hello/both_hello/wscript | 14 | ||||
-rw-r--r-- | hello/posix_hello_world/wscript | 14 | ||||
-rw-r--r-- | hello/wscript | 3 |
3 files changed, 31 insertions, 0 deletions
diff --git a/hello/both_hello/wscript b/hello/both_hello/wscript new file mode 100644 index 0000000..45c4c49 --- /dev/null +++ b/hello/both_hello/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. +# + +# Waf build script for an RTEMS Hello +import rtems_waf.rtems as rtems + +def build(bld): + rtems.build(bld) + + bld(features = 'c cprogram', + target = 'both_hello.exe', + source = ['test.c']) diff --git a/hello/posix_hello_world/wscript b/hello/posix_hello_world/wscript new file mode 100644 index 0000000..c02422e --- /dev/null +++ b/hello/posix_hello_world/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. +# + +# Waf build script for an RTEMS Hello +import rtems_waf.rtems as rtems + +def build(bld): + rtems.build(bld) + + bld(features = 'c cprogram', + target = 'posix_hello.exe', + source = ['test.c']) diff --git a/hello/wscript b/hello/wscript index 1653dff..8515918 100644 --- a/hello/wscript +++ b/hello/wscript @@ -7,4 +7,7 @@ import rtems_waf.rtems as rtems def build(bld): bld.recurse('hello_world_c') + if rtems.check_posix: + bld.recurse('posix_hello_world') + bld.recurse('both_hello') |