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.

Output directory hard-coded in xs/configuro?

When building TI-RTOS projects (current release, CC13xx), xs is used to generate and build a bunch of files. Let's assume a CCS TI-RTOS example project. Xs is invoked from within the build folder (Debug by default) and produces a src folder in the project root directory and a configPkg sub-folder in the build directory. A typical xs invocation looks like:

xs --xdcpath="$TIRTOS_DIR/packages;$TIRTOS_DIR/products/tidrivers_cc13xx_cc26xx/packages;$TIRTOS_DIR/products/bios/packages; \
$TIRTOS_DIR/products/uia/packages;$CCS_DIR/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 \
-p ti.platforms.simplelink:CC1310F128 -r release -c "$CCS_DIR/tools/compiler/ti-cgt-arm_5.2.6" --compileOptions "-mv7M3 \
--code_state=16 --float_support=vfplib --abi=eabi -me --include_path=\"$PROJECT_DIR\" \
--include_path=\"$TIRTOS_DIR/products/cc13xxware\" --include_path=\"$CCS_DIR/tools/compiler/ti-cgt-arm_5.2.6/include\"  \
--define=ccs --display_error_number --diag_warning=225 --diag_warning=255 --diag_wrap=off --gen_func_subsections=on" ../$PROJECT.cfg

The configPkg folder can be actually configured by the -o option of configuro. However, the src folder in the project directory seems to be hard-coded somehow. It contains a few sysbios-related make and object files after invoking xs.

How can I change the name and location of that generated src folder? I want to put it into the build folder.

  • Hi Rick,

    In order to select a custom directory to place the TI-RTOS kernel library build files, you can assign the desired directory's path to the "BIOS.libDir" config param. This config param is an internal nodoc'ed config param so it may not work and if does not work then, we will not support it. That said, you can give it a try. Here's some example *.cfg code:

    var BIOS = xdc.useModule('ti.sysbios.BIOS');
    BIOS.libDir = "C:\\workspace_v6_1\\task_TMS320F28377D\\Debug"; // <-- Custom directory path (can be relative too)

    Hope this helps.

    Best,

    Ashish

  • Thanks, this worked. Relatives path like

    BIOS.libDir = 'myPath'

    are actually interpreted relative to the output directory of configuro, which is configPkg by default (-o command line option).