Mark, Thanks! I'm sorted now. Ben On 27/06/07, Grosen, Mark <mgrosen at ti.com> wrote:
Ben, You can add your own extensions to the XDC build system that direct how a source file is transformed into object code. This is done by adding code to the config.bld script. (The doc section describing this is pasted below.) Here's an example: linear assembly file extension: .sa (choose whatever you like) config.bld snippet: var C64P = xdc.useModule('ti.targets.C64P'); C64P.extensions[".sa"] =
{ suf: ".sa", typ: "asm:-fl" }; package.bld fragment: var exe = Pkg.addExecutable("argstest", target, target.platform, {profile : "debug"}) exe.addObjects(['argstest.c', 'linasm.sa']); Documentation from ti.targets.Itarget: //! File extensions recognized by TI targets override config xdc.bld.ITarget.Extension extensions[string] = .. ITarget.extensions XDC specified in xdc.bld.ITarget DETAILS This is a user modifiable table used to customize file extensions recognized by each target. For example, to add a new assembly language extension, say ".s64", to the target ti.targets.C64P, add the following lines to the build model startup script: var C64P = xdc.module('ti.targets.C64P'); C64P.extensions[".s64"] = { suf: ".s64", typ: "asm" }; Note that individual targets may add additional language types. TI_SPECIFICS For TI targets, the typ string field of an xdc.bld.ITarget.Extension structure may be of the form "<cmd>:<langOpt>" where <cmd> is one of "asm", "c", "cpp", and <langOpt> is the language option to used to identify the source language of a source file. This allows one to explicitly control the language flag passed to the compiler based on a source file's extension; in particular, one can define separate source extensions for "linear" and "scheduled" assembly files, or simply cause ".s62" files to be treated as "linear" assembly rather than "scheduled" assembly. For example, tiTargets.C62.extensions[".s62"] = {suf: ".s62", typ: "asm:-fl"}; causes all ".s62" files to be treated as linear assembly. If no ':' appears in the typ string, a default will be used: "-fa" for "asm" files "-fc" for "c" files, and "-fp" for "cpp" files. -----Original Message----- From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Ben White Sent: Wednesday, June 27, 2007 8:45 AM To: [email protected] Subject: Using linear assembly with XDC and codec engine Hi! Processor: TMS320DM6446 I have some linear assembly that I've developed in CCS (in Windows) and I want to put this in to a codec server 'package' to run with the codec engine so it's callable from the ARM side. I have modified the package.bld (from the viddec_copy example) file to include my .sa as an extra source file (the comment in the file states that there's no need to specify the extension as XDC will work it out). Here's the problem: It doesn't build - it seems that the script that is controlling XDC (I can't find this) doesn't know how to make .sa files. Some help on how (where) to add this extra rule would be most grateful. -- Ben White VCA Technology Ltd E: ben.white at vcatechnology.com _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source