This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Changing tcf file content with compile defines or project configurations

Hi

Is there a way I can make the tcf file include different .tci files based on a compile define or project configuration? My production hardware uses VPORT0 for display and I'd also like to be able to build it for the DM648 EVM which uses VPORT1 for display.

I used the dm648_evm_vport_st_sd_loopback_sample.tcf example as my baseline. It has the following

utils.importFile("ti/sdo/pspdrivers/system/dm648/bios/evmDM648/video/sample/dm648_vport0.tci");
utils.importFile("ti/sdo/pspdrivers/system/dm648/bios/evmDM648/video/sample/dm648_vport1.tci");
utils.importFile("ti/sdo/pspdrivers/system/dm648/bios/evmDM648/video/sample/dm648_vport2.tci");
utils.importFile("ti/sdo/pspdrivers/system/dm648/bios/evmDM648/video/sample/dm648_vport3.tci");
utils.importFile("ti/sdo/pspdrivers/system/dm648/bios/evmDM648/video/sample/dm648_vport4.tci");

Is there a way to do something like?

#if EVM_PROJECT

utils.importFile("ti/sdo/pspdrivers/system/dm648/bios/evmDM648/video/sample/dm648_EVM_vport0.tci");
utils.importFile("ti/sdo/pspdrivers/system/dm648/bios/evmDM648/video/sample/dm648_EVM_vport1.tci");

#else  // include tci for production HW.

utils.importFile("ti/sdo/pspdrivers/system/dm648/bios/evmDM648/video/sample/dm648_HW_vport0.tci");
utils.importFile("ti/sdo/pspdrivers/system/dm648/bios/evmDM648/video/sample/dm648_HW_vport1.tci");

#endif

utils.importFile("ti/sdo/pspdrivers/system/dm648/bios/evmDM648/video/sample/dm648_vport2.tci");
utils.importFile("ti/sdo/pspdrivers/system/dm648/bios/evmDM648/video/sample/dm648_vport3.tci");
utils.importFile("ti/sdo/pspdrivers/system/dm648/bios/evmDM648/video/sample/dm648_vport4.tci");