Hi Josh,
Which codec engine or dvsdk example are you trying to build? Sounds like you might want to play with the profile setting in the package.bld file. For example, selecting a "release" profile will automatically insert -o2 to the compiler invocation. If you have both -o2 and -o3 for the TI C64P compiler, the last one on the command line will win, i.e., what's specified by the copts. This FAQ summarizes compiler and linker options thrown in when building a CE example: http://wiki.davincidsp.com/index.php?title=Codec_Engine_FAQ#How_do_I_add _compile_options_when_building_the_example_applications.3F Best regards, Vincent ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Hintze Sent: Friday, February 08, 2008 11:22 AM To: davinci-linux-open-source@linux.davincidsp.com Subject: RE: Copts in Package.bld in codecs Ok I found out that you can ADD copts to the sources that are being compiled into the library by doing the following... Pkg.addLibrary("lib/Video_Copy", targ).addObjects(SRCS, {copts: "-o3 -pm -op2"}); However this only adds and does replace the original copts. So I'm not sure if having a -o2 and -o3 which one the compiler will use. Thoughts? Josh From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] sp.com] On Behalf Of Joshua Hintze Sent: Friday, February 08, 2008 11:52 AM To: davinci-linux-open-source@linux.davincidsp.com Subject: Copts in Package.bld in codecs I didn't hear anything in my last message it might have been ignored since I changed what was the original topic. This is my problem... How can I change the cl6x compiler switches that are defaulted in the Codec Engine when using package.bld. For example I want to add a couple like: -pm -op2 and change -o2 to -o3. You can do this in the Pkt.addExecutable by specifying extraAttrs but I don't see how to do this with the Pkg.addLibrary...example Pkg.addExecutable(platShort + '/' + name + '_' + cfg, targ, plat, { copts: compileOpts, cfgScript: cfg + suffix, cfgArgs: "{platform: \"" + plat + "\"}", lopts: "-l /home/harsha/dvevm_1_20/cgtools/lib/dsplib64plus.lib", }).addObjects(srcs); With the above we can change copts and lopts but this is ran when creating an executable not a library. Thanks, Josh
_______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source