diff options
author | Chris Johns <chrisj@rtems.org> | 2014-08-01 16:44:32 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-08-01 16:48:09 +1000 |
commit | 482ca38073a878814640089086c0ba262e80e4cd (patch) | |
tree | abbb44345656565ac3e302770155743f205b955c /wscript | |
parent | 742866c4ac6e2f674971225d26052b9af22bd6b3 (diff) |
Add initial support for the RTEM Trace Linker.
The RTEMS Trace Linker or rtems-rld creates an RTEMS executable with
trace support built in without any changes the existing code.
This commit is an initial starting point with function signatures
being read from INI files.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 47 |
1 files changed, 35 insertions, 12 deletions
@@ -91,14 +91,11 @@ def build(bld): bld_libiberty(bld) # - # The list of modules. - # - modules = ['fastlz', 'elf', 'iberty'] - - # # RLD source. # - rld_source = ['rld-elf.cpp', + rld_source = ['ConvertUTF.c', + 'rld-config.cpp', + 'rld-elf.cpp', 'rld-files.cpp', 'rld-cc.cpp', 'rld-compression.cpp', @@ -115,11 +112,26 @@ def build(bld): rtems_utils = ['rtems-utils.cpp'] # + # RTL static library + # + bld.stlib(target = 'rld', + source = rld_source + rtems_utils, + defines = ['HAVE_CONFIG_H=1', 'RTEMS_VERSION=' + bld.env.RTEMS_VERSION], + includes = ['.'] + bld.includes, + cflags = bld.cflags + bld.warningflags, + cxxflags = bld.cxxflags + bld.warningflags, + linkflags = bld.linkflags) + + # + # The list of modules. + # + modules = ['rld', 'fastlz', 'elf', 'iberty'] + + # # Build the linker. # bld.program(target = 'rtems-ld', - source = ['rtems-ld.cpp', - 'pkgconfig.cpp'] + rld_source, + source = ['rtems-ld.cpp', 'pkgconfig.cpp'], defines = ['HAVE_CONFIG_H=1', 'RTEMS_VERSION=' + bld.env.RTEMS_VERSION], includes = ['.'] + bld.includes, cflags = bld.cflags + bld.warningflags, @@ -131,8 +143,19 @@ def build(bld): # Build the ra linker. # bld.program(target = 'rtems-ra', - source = ['rtems-ra.cpp', - 'pkgconfig.cpp'] + rld_source, + source = ['rtems-ra.cpp', 'pkgconfig.cpp'], + defines = ['HAVE_CONFIG_H=1', 'RTEMS_VERSION=' + bld.env.RTEMS_VERSION], + includes = ['.'] + bld.includes, + cflags = bld.cflags + bld.warningflags, + cxxflags = bld.cxxflags + bld.warningflags, + linkflags = bld.linkflags, + use = modules) + + # + # Build the trace linker. + # + bld.program(target = 'rtems-tld', + source = ['rtems-tld.cpp'], defines = ['HAVE_CONFIG_H=1', 'RTEMS_VERSION=' + bld.env.RTEMS_VERSION], includes = ['.'] + bld.includes, cflags = bld.cflags + bld.warningflags, @@ -144,7 +167,7 @@ def build(bld): # Build the symbols. # bld.program(target = 'rtems-syms', - source = ['rtems-syms.cpp'] + rld_source, + source = ['rtems-syms.cpp'], defines = ['HAVE_CONFIG_H=1', 'RTEMS_VERSION=' + bld.env.RTEMS_VERSION], includes = ['.'] + bld.includes, cflags = bld.cflags + bld.warningflags, @@ -156,7 +179,7 @@ def build(bld): # Build the RAP utility. # bld.program(target = 'rtems-rap', - source = ['rtems-rapper.cpp'] + rld_source + rtems_utils, + source = ['rtems-rapper.cpp'], defines = ['HAVE_CONFIG_H=1', 'RTEMS_VERSION=' + bld.env.RTEMS_VERSION], includes = ['.'] + bld.includes, cflags = bld.cflags + bld.warningflags, |