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.

specifying include file directory paths when using xgconf tool with SYS/BIOS

Other Parts Discussed in Thread: SYSBIOS

I am using the xgconf tool to configure SYS/BIOS for my system. Files are auto-generated from the scripts produced by this tool. I would like to use a different directory structure for include files than what the tool automatically generates. For example, one of the auto-generated files #includes many other files:

#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/family/c28/Hwi.h>
#include <ti/sysbios/family/c28/IntrinsicsSupport.h>
#include <ti/sysbios/family/c28/TaskSupport.h>
#include <ti/sysbios/family/c28/Timer.h>
#include <ti/sysbios/family/c28/TimestampProvider.h>
#include <ti/sysbios/gates/GateHwi.h>
#include <ti/sysbios/hal/Hwi.h>
#include <ti/sysbios/hal/Timer.h>
#include <ti/sysbios/heaps/HeapNull.h>
#include <ti/sysbios/knl/Clock.h>
#include <ti/sysbios/knl/Idle.h>
#include <ti/sysbios/knl/Intrinsics.h>
#include <ti/sysbios/knl/Queue.h>
#include <ti/sysbios/knl/Swi.h>
#include <ti/sysbios/knl/Task.h>
#include <xdc/runtime/Assert.h>
#include <xdc/runtime/Core.h>
#include <xdc/runtime/Defaults.h>
#include <xdc/runtime/Diags.h>
#include <xdc/runtime/Error.h>
#include <xdc/runtime/Gate.h>
#include <xdc/runtime/GateNull.h>
#include <xdc/runtime/Log.h>
#include <xdc/runtime/LoggerBuf.h>
#include <xdc/runtime/Main.h>
#include <xdc/runtime/Memory.h>
#include <xdc/runtime/Registry.h>
#include <xdc/runtime/Startup.h>
#include <xdc/runtime/SysMin.h>
#include <xdc/runtime/System.h>
#include <xdc/runtime/Text.h>

I do not want to use the specified directories (ti/sysbios/, xdc/runtime/, etc.) for all these includes but rather a different directory structure altogether. How do I control this using xgconf with Code Composer?

Thank you,
Susan McCord

  • Susan,
    are you planning to actually move those header files to other directories or you just want to add the 'xdc/runtime' part to include path components? It would be difficult to make the requested change in the generated file, and you cannot control that in xgconf. That change would require a new XDCtools release. But, if you can add more details about what you want to do, there could be another way to achieve it.

  • I would like to move these header file to different directories, in essence, not use 'xdc/runtime'. It is necessary for me to run static analysis tools (PC-lint) on these include files and the source code that is being produced. There are some issues I cannot easily solve if I am forced to use the directories that are specified. Are there any good options for me then?

    Susan

  • Susan,
    the XDCtools product, which is what xgconf uses, is built on the assumption that header files are located in packages (xdc.runtime is a package), and that the header files are referenced using their long name that includes the name of the package and then the name of the module (System, Startup, etc). To change these assumptions for the generated C file and for the include paths on the command line would require a new product release with significant changes compared to the current XDCtools product.

    We don't have any current plans to create such a product, and for that to happen, you would have to contact someone in TI sales, and then the request would come to us. I am sorry that I can't find any better solution for you.