Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Real-Time Software Components (RTSC) » Changing library suffix
Changing library suffix [message #1195] Thu, 12 February 2009 17:42 Go to next message
Katie Roberts-Hoffman is currently offline Katie Roberts-Hoffman
Messages: 2
Registered: July 2009
Junior Member
How can I change the suffix for a particular target in package.bld?

Currently I use:

for (var i = 0; i < Build.targets.length; i++) {
var targ = Build.targets[i];
Pkg.addLibrary("lib/fir_ti",targ).addObjects(SRCS);
}

which produces a library with the default suffix - for ti.targets.C64P it
builds lib/fir_ti.a64P. For xDAIS compliance I need the library to be
named lib/fir_ti.l64P.
Re: Changing library suffix [message #1222 is a reply to message #1195] Thu, 12 February 2009 19:49 Go to previous message
Dave Russo is currently offline Dave Russo
Messages: 172
Registered: July 2009
Senior Member
Katie Roberts-Hoffman wrote:
> How can I change the suffix for a particular target in package.bld?
> Currently I use:
>
> for (var i = 0; i < Build.targets.length; i++) {
> var targ = Build.targets[i];
> Pkg.addLibrary("lib/fir_ti",targ).addObjects(SRCS);
> }
>
> which produces a library with the default suffix - for ti.targets.C64P
> it builds lib/fir_ti.a64P. For xDAIS compliance I need the library to be
> named lib/fir_ti.l64P.
>
See the suffix property of xdc.bld.Library.Attrs:
http://rtsc.eclipse.org/cdoc-tip/index.html#xdc/bld/Library. html#.Attrs

When you add a new library you can pass optional attributes of this
type. For example, in your example you can do the following:

Pkg.addLibrary("lib/fir_ti",targ, {
suffix: ".l" + targ.suffix}).addObjects(SRCS);
Previous Topic:private attributes in Build.platformTable
Next Topic:ModA changing ModB's module parameters
Goto Forum:
  


Current Time: Sat Oct 25 19:08:32 GMT 2014

Powered by FUDForum. Page generated in 0.04422 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software