summaryrefslogtreecommitdiffstats
path: root/rtemstoolkit/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'rtemstoolkit/wscript')
-rw-r--r--rtemstoolkit/wscript24
1 files changed, 24 insertions, 0 deletions
diff --git a/rtemstoolkit/wscript b/rtemstoolkit/wscript
index 4c30935..4b5fa34 100644
--- a/rtemstoolkit/wscript
+++ b/rtemstoolkit/wscript
@@ -170,6 +170,7 @@ def conf_elftoolchain(conf):
def bld_elftoolchain(bld, conf):
libelf = 'elftoolchain/libelf/'
+ libelftc = 'elftoolchain/libelftc/'
libdwarf = 'elftoolchain/libdwarf/'
libelf_m4_rule = '${M4} -D SRCDIR=../rtemstoolkit/' + libelf[:-1] + ' ${SRC} > ${TGT}'
libdwarf_m4_rule = '${M4} -D SRCDIR=../rtemstoolkit/' + libdwarf[:-1] + ' ${SRC} > ${TGT}'
@@ -334,6 +335,29 @@ def bld_elftoolchain(bld, conf):
libdwarf + 'libdwarf_sections.c',
libdwarf + 'libdwarf_str.c'] + libdwarf_m4_source)
+ bld.stlib(target = 'elftc',
+ features = 'c',
+ install_path = None,
+ includes = [bld.bldnode.abspath(),
+ 'elftoolchain/libelf',
+ 'elftoolchain/libelftc',
+ 'elftoolchain/common'] + includes,
+ cflags = conf['cflags'],
+ source =[libelftc + 'elftc_bfdtarget.c',
+ libelftc + 'elftc_copyfile.c',
+ libelftc + 'elftc_demangle.c',
+ libelftc + 'elftc_reloc_type_str.c',
+ libelftc + 'elftc_set_timestamps.c',
+ libelftc + 'elftc_string_table.c',
+ libelftc + 'elftc_timestamp.c',
+ libelftc + 'elftc_version.c',
+ libelftc + 'libelftc_bfdtarget.c',
+ libelftc + 'libelftc_dem_arm.c',
+ libelftc + 'libelftc_dem_gnu2.c',
+ libelftc + 'libelftc_dem_gnu3.c',
+ libelftc + 'libelftc_hash.c',
+ libelftc + 'libelftc_vstr.c'])
+
#
# Libiberty module.
#