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 find which config.bld one instalation is using?

Expert 1005 points

Hello,

I have installed and using RTSC with IPC and SYS/BIOS. I am wondering which config.bld is used by my system when I am running xdc command? How can I change it so xdc uses a different config.bld than the default one which it is using now.

Kind regards

 

  • Hi Mans,

    A snippet from the documentation for xdc.bld.BuildEnvironment module shipped with XDCtools is shown below:

     When you build a package, the xdc command looks for the startup file using the following algorithm:

    1. if XDCBUILDCFG is defined on the xdc command line, its value is used;
    2. if config.bld exists in the current directory, this file is used;
    3. if XDCBUILDCFG is defined as an environment variable, its value is used;
    4. if config.bld exists along the package path (i.e. in $XDCPATH followed by the current package's repository), the first such file is used;
    5. if $XDCROOT/config.bld exists this file is used;
    6. if $XDCROOT/etc/config.bld exists, this file is used; and finally
    7. if no "startup file" can be found above, a fatal error is reported and the xdc command terminates with a non-zero exit status.

     

    If you are using CCS4 for consuming RTSC content  like SYS/BIOS and IPC, the config.bld file is automatically generated by the configuro tool integrated in the IDE. You may review the generated 'config.bld' file in the "Debug/configPkg" folder of your RTSC project. If you would like to define your own 'config.bld' file for your CCS4 project  you can do the following:

    1. Right click on your RTSC project in the C/C++ projects view
    2. Select Build Properties -> C/C++ Build 
    3. In the Tool Settings tab of the dialog select XDCtools -> Advanced Options
    4. Refer to your own 'config.bld' script by clicking on the Browse button adjacent to the Build configuration file (-b) text box. Screenshot of this dialog is attached. 

     

    Regards

    Amit