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.

How to add a new RTSC build configuration?

Hi

I want to vary the behaviour of my .cfg file according to the selected RTSC build configuration. How to do that is described here:

http://e2e.ti.com/support/embedded/tirtos/f/355/t/209153.aspx

However, the existing 'debug' and 'release' RTSC build configurations aren't enough for me.  Is it possible for me to add a new RTSC build configuration?  If so, how?

Best regards

David

  • In Project Properties -> General Tab, you can click "Manage Configurations" and there you can add a new build configuration.

    You can also include & exclude files (source files, header files, .cmd files, etc) from one build or another, such that one project can produce multiple unique .out files.

    Is this what you're after?

  • Chris, 

    I believe that's changing the CCS build configuration you're talking about. David I think wants to add a new RTSC configuration besides 'debug' or 'release'.

    David,

    The RTSC build configurations are target specific and the 'debug' and 'release' pretty much specify different sets of compiler options for building. So what's your goal here, are you trying to add your own compiler options because there are other ways to achieve this without adding a new named RTSC profile?

    Moses

  • Hi Moses

    As you wrote, I do want to add a RTSC build configuration, not a CCS build configuration (which is what Chris was describing),

    My goal is to make the behaviour of my .cfg script dependent on the selected CCS build configuration. My understanding is that the only way to do that is to make the .cfg behave differently according to the RTSC build configuration selected using code like this:

    var repLocation=xdc.loadPackage(Program.build.cfgHome).packageRepository;

    if(repLocation.search(/Debug.$/i)>=0)

    {    

         print('Debug Build Configuration');

    }

    and then to specify the appropriate RTSC configuration in the CCS configuration.

    Sounds a bit convoluted, but I think that is the only way to achieve what I want.

    Now, I could use the existing RTSC build configurations (debug/release) but I would like to add one with a more appropriate name for our purpose.

    If you have any suggestions for a better way of achieving this goal I will be grateful.

    Best regards

    David

  • David,

    From my understanding if your goal is to have your *.cfg file behave differently based on the CCS build configuration, the piece of code you included does that. Inside that if condition, you can include any unique behavior for that CCS build configuration. You don't have to involve RTSC build configurations.

    RTSC build configurations are already defined for a target and is more than just a name 'debug' or 'release'. Like i said earlier, It specifies different compiler options and properties that affect the build of packages. I don't think you should be concerned about creating a new RTSC build configuration as it is not just as simple as adding a new name. Also, it has no connection to the CCS build configuration. Changing the RTSC build configuration doesn't change the CCS build configuration and vice-versa.

    Let me know if you still have questions

    Moses

  • Hi Moses

    Thanks for your help.  I wrongly understood that:

    var repLocation=xdc.loadPackage(Program.build.cfgHome).packageRepository;

    gets the RTSC build configuration.  Actually it returns the CCS build configuration, which is what I need.

    Best regards

    David