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.

  • Resolved

[FAQ] How do I relocate or rename the SYS/BIOS 'src' subdirectory when using BIOS.LibType_Custom?

Expert 4165 points

Replies: 1

Views: 251

I have modified my kernel configuration (*.cfg) to use the following:

BIOS.libType = BIOS_LibType_Custom;

How can I relocate or rename the generated 'src' sub-directory when I build the kernel?

 

  • By default, when using the BIOS.LibType_Custom (or BIOS.LibType_Debug beginning with SYS/BIOS 6.35), SYS/BIOS will create a directory named 'src/' and a sub-directory named 'sysbios/' within the application's project directory as a build area for the custom SYS/BIOS library. Similarly, IPC will build its custom ti.sdo.ipc and/or ti.sdo.utils libraries in sub-directories named 'ipc/' and 'utils/' respectively.

    For users who need to change the default 'src/' root directory, the following steps guide you to change the customer libraries root directory from 'src/' to 'libs/'.

    1. Add the following line to your kernel configuration (*.cfg)
      BIOS.libDir = "../../libs";
    2. If you're using the ti.sdo.ipc package, add the following lines
      var ipcBuild = xdc.useModule('ti.sdo.ipc.Build')
      ipcBuild.libDir = BIOS.libDir;
    3. If you're using the ti.so.utils package, add the following lines
      var utilsBuild = xdc.useModule('ti.sdo.utils.Build')
      utilsBuild.libDir = BIOS.libDir;
    4. Within your kernel project directory, edit the makefile.defs by replacing
      CFG_SRCDIR = ../src
      with the following
      CFG_SRCDIR = ../libs
    5. Clean and rebuild your project. If sucessful, a 'libs/' folder will now be generated. The 'libs/' folder name was chosen for this guide; however, any name may be used.

    After the following steps, no further writes to the 'src/' directory will occur. At this point, you may manually delete the old 'src/' folder.

     

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.