TI E2E Community
RTSC - detecting build configuration
How can I detect the current build setting (e.g. Debug or Release) in the BIOS .cfg script, so that my application is configured differently depending on the setting? In my C code I can use something like #ifdef _DEBUG, but there is no equivalent method that I have found in XDCscript.
Are you talking about CCS Project Configuration or RTSC Build-Profile?
For RTSC Build-Profile: add the following to your .cfg and it will print out a re-build.
print ("Program.build.profile = " + Program.build.profile);
I'm still looking if it is CCS Project Configuration...
The RTSC build profile is just what I needed. So now I have code that looks like this in my .cfg file:
if (Program.build.profile == "debug")
// debug code ..
// release code ..
I now have a more complex scenario and would appreciate the ability to detect the CCS project configuration - either directly by name, or by inserting some setting within each configuration that would be detectable in the RTSC config file. Is this possible?
For a new question, can you start a new post. It makes management of the forums easier for us.
Fair enough, see http://e2e.ti.com/support/embedded/bios/f/355/t/235939.aspx .
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.