summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-10-22 18:46:59 -0700
committerChris Johns <chrisj@rtems.org>2012-10-22 18:46:59 -0700
commit3699247768c34ae65ea458202d2953b355944d76 (patch)
tree0d02662995f8091f37bd81626cd53224ed90c4d7 /wscript
parent575084057061ee97c8a08cc0331393cf79a69cad (diff)
Add FastLZ support.
Diffstat (limited to 'wscript')
-rw-r--r--wscript14
1 files changed, 11 insertions, 3 deletions
diff --git a/wscript b/wscript
index 7c60ff1..3a993d5 100644
--- a/wscript
+++ b/wscript
@@ -69,13 +69,14 @@ def build(bld):
# Create each of the modules as object files each with their own
# configurations.
#
- libelf = bld_libelf(bld)
- libiberty = bld_libiberty(bld)
+ bld_fastlz(bld)
+ bld_libelf(bld)
+ bld_libiberty(bld)
#
# The list of modules.
#
- modules = ['elf', 'iberty']
+ modules = ['fastlz', 'elf', 'iberty']
#
# Build the linker.
@@ -111,6 +112,13 @@ def tags(ctx):
def conf_libelf(conf):
pass
+def bld_fastlz(bld):
+ bld(target = 'fastlz',
+ features = 'c',
+ source = 'fastlz.c',
+ cflags = bld.cflags,
+ defines = ['FASTLZ_LEVEL=1'])
+
def bld_libelf(bld):
libelf = 'elftoolchain/libelf/'