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.

PROCESSOR-SDK-AM335X: Any script tool available to resolve absolute path to relative path while merging?

Part Number: PROCESSOR-SDK-AM335X

Hello,

Kindly advise of any scrpting tool if available to resolve absolute path to relative paths.

We are using TI provided processor sdk for Am335x. There I have libpruemac folder which has absolute path headers. For e.g., In -- ti/drv/icss_emac/src/icss_emacStatistics.c

In this file there is a header as -- #include <ti/drv/icss_emac/icss_emacDrv.h>

which need to be converted to something like #include "../icss_emacDrv.h"

Likewise there are many more files with absolute paths which we used during Proof of Concept. Now we need to reslove them to relative paths

Kindly advise if there is a tool like a .sh script for the same.

Hope I have made my question clear. Thanks!

  • Hello Pranjal,

    TI does not provide any scripts that convert absolute paths to relative paths. Are you running into a specific issue with the absolute paths?

    Regards,

    Nick

  • Yes Nick. We have a poc where there are lots of absolute paths like above. The poc code is now to be integrated with our mainline ccs project. So when built from CCS it searches the headers in those absolute paths and throws 'file not found' error . Hence have to change the #includes to relative paths. It can be done, file by file, but is there a smarter way?

  • Issue was resolved by changing the CCS environment settings. I just included the base directory path (which contains all the headers) under Include tab in GNU C in 'Project properties>C/C++ General>Paths and Symbols'.

    Alternately there is also a grep command to resolve absolute to relative paths which I was looking for.