Hello,
Lee Holeva explained me in this thread how I can use "bios_6_x_x_x_x/packages/ti/sysbios/build/test.bld" to build my own syslink programs on the linux commandline. It worked very good: I got some work done which I didn't manage with CCS. Thank you, Lee!
But now I'm a bit stuck again: I need to use edma3 and don't know how to add the edma3 libraries to the build. I added /opt/ti/edma3_lld_02_11_02_04/packages to the XDCPATH and tried to use "lopts" in package.bld:
/*
* ======== testArray ========
* See ti/bios/build/test.bld. Only the test name is required.
*/
var testArray = [
/* For syslink messageq */
{name: 'App',
sources: ["App", "crc", "messaging", "fpga_com"], config: "./App_ti81xx_dsp",
copts: " -DSYSLINK_PLATFORM_TI81XX ",
lopts: " /opt/ti/edma3_lld_02_11_02_04/packages/ti/sdo/edma3/drv/lib/674/debug/edma3_lld_drv.ae674",
buildTargets: ["C674"],
buildPlatforms: ["platforms.ti816x.dsp"],
},
];
> xdc XDCARGS="profile-debug" XDCOPTIONS="-v"
#
# lnke674 platforms_ti816x_dsp/debug/DamianApp.xe674 ...
rm -f package/cfg//platforms_ti816x_dsp/debug/DamianApp.xe674.map
/opt/ti/CCSv5/ccsv5/tools/compiler/c6000//bin/lnk6x -w -q -u _c_int00 -fs package/cfg/platforms_ti816x_dsp/debug/ /opt/ti/edma3_lld_02_11_02_04/packages/ti/sdo/edma3/drv/lib/674/debug/edma3_lld_drv.ae674 -q -o platforms_ti816x_dsp/debug/DamianApp.xe674 package/cfg/platforms_ti816x_dsp/debug/DamianApp/crc.oe674 package/cfg/platforms_ti816x_dsp/debug/DamianApp_xe674.oe674 package/cfg/platforms_ti816x_dsp/debug/DamianApp/DamianApp.oe674 package/cfg/platforms_ti816x_dsp/debug/DamianApp/messaging.oe674 package/cfg/platforms_ti816x_dsp/debug/DamianApp/fpga_com.oe674 package/cfg/platforms_ti816x_dsp/debug/DamianApp_xe674.xdl --abi=elfabi -c -m package/cfg//platforms_ti816x_dsp/debug/DamianApp.xe674.map -l /opt/ti/CCSv5/ccsv5/tools/compiler/c6000//lib/rts6740_elf.lib
warning: creating output section ".plt" without a SECTIONS specification
undefined first referenced
symbol in file
--------- ----------------
EDMA3_DRV_clearErrorBits package/cfg/platforms_ti816x_dsp/debug/DamianApp/fpga_com.oe674
EDMA3_DRV_enableTransfer package/cfg/platforms_ti816x_dsp/debug/DamianApp/fpga_com.oe674
EDMA3_DRV_requestChannel package/cfg/platforms_ti816x_dsp/debug/DamianApp/fpga_com.oe674
EDMA3_DRV_setPaRAM package/cfg/platforms_ti816x_dsp/debug/DamianApp/fpga_com.oe674
edma3init package/cfg/platforms_ti816x_dsp/debug/DamianApp/fpga_com.oe674
error: unresolved symbols remain
So the lib is there, but seems not to be used. I added the edma3_lld_drc.ae674 manually to the end of the linker call: now I got different errors.
Please tell me the correct way to add libs to this build - thank you!