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.

AM2634: Code Composer Studio projectspec relative makefile path

Part Number: AM2634

Is there a way to define a relative path in a CCS x.projectspec file for the location of a makefile that is not related to the workspace, but the initial location of the imported x.projectspec file?

So, instead of hardcoding a path like this:

buildLocation="c:/sitaraFirmware/myproject

something like:

buildLocation="${origin}"

where might this origin location exist in CCS?

  • Is there a way to define a relative path in a CCS x.projectspec file for the location of a makefile that is not related to the workspace, but the initial location of the imported x.projectspec file?

    I'm not sure I follow. You mentioned "inital location". So do you mean you want a way to reference the original location of the *.projectspec file from inside the *.projectspec file via realtive path to some variable (avoid an absolute path)?

  • Found a way to do this...  maybe this description will help.

    The buildLocation is used when performing a make all, so by defining the buildLocation as a variable name, it will use the pathVariable at runtime as shown.

    pathVariable gets set to the initial location where the projectspec was read from:

    In x.projectspec:

    buildLocation="${ORIGIN_PATH}"

    <pathVariable name="ORIGIN_PATH" path="." scope="project" />

  • Thank you for sharing your solution!