From: Russo, David Sent: Friday, November 30, 2007 11:54 AM To: Longley, Lester; [EMAIL PROTECTED] - Peer-to-peer support for RTSC tooling (May contain non-TIers) Cc: Russo, David Subject: RE: Using linear assembly with XDC and codec engine
I don't see anything wrong (except for the missing '}' in the last for-loop below). The error indicates that the file MyAssemlyFile.sa does not exist. How can this happen if the build script lists all files in the current working directory? Well ... Recall that the build script builds a makefile (package.mak) and GNU make controls the build using this makefile. So it is possible that: 1. when package.mak is created the file MyAssemlyFile.sa existed and the build works 2. MyAssemlyFile.sa is deleted 3. then you rebuild the package. But since no files changed, package.mak is not updated and GNU make thinks it needs to assemble MyAssemlyFile.sa to put in the code library. Since it no longer exists you get the error below To fix this simply touch package.bld and rebuild: package.bld will run and detect that the file MyAssemlyFile.sa no longer exists and regenerate a package.mak that has no reference to this file. ________________________________ From: Longley, Lester Sent: Friday, November 30, 2007 6:47 AM To: [EMAIL PROTECTED] - Peer-to-peer support for RTSC tooling (May contain non-TIers) Subject: FW: Using linear assembly with XDC and codec engine From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Faro Maza, Virginia Sent: Friday, November 30, 2007 9:42 AM To: davinci-linux-open-source@linux.davincidsp.com Subject: Using linear assembly with XDC and codec engine Hi, Processor: TMS320DM6446. I am trying to incorporate linear assembly files into a codec. I added the following to my config.bld: var C64P = xdc.useModule('ti.targets.C64P'); C64P.extensions[".sa"] = { suf: ".sa", typ: "asm:-fl" }; I also added my .sa files into the codec library by updating the codec's package.bld: var profiles = ["debug", "release"]; /* when constructing a release, release everything */ Pkg.attrs.exportAll = true; var SRCS = []; var sources = java.io.File('.').list(); for (var i = 0; i < sources.length; i++) { if( (String(sources[i]).match(/.*\.c$/)) || (String(sources[i]).match(/.*\.sa$/)) ) SRCS.push(sources[i]); } for (var i = 0; i < Build.targets.length; i++) { var targ = Build.targets[i]; var mycopts = ""; for(var j = 0; j < profiles.length; j++){ Pkg.addLibrary("lib/mycodec" + "_" + profiles[j], targ, { profile: profiles[j], copts: mycopts, }).addObjects(SRCS); } But when I try to build my codec, I get the error: gmake: *** No rule to make target `MyAssemlyFile.sa', needed by `package/lib/lib/mycodec_debug/MyAssemlyFile.o64P'. Stop. I would very much appreciate any advice on where and how to set the missing rule. Thanks in advance, Virginia Faro-Maza American Dynamics Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ________________________________ Tyco Safety Products/CEM Systems Ltd. Registered in Northern Ireland: NI 25728. Registered Office: Unit 4 Ravenhill Business Park, Ravenhill Road, Belfast, BT6 8AW.. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. This email and any attachments are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender immediately and delete any copies in your possession.
_______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source