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.