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.

Compiling custom xdc.runtime

I would like to modify the file text.c in xdc.runtime (specifically, the xdc.runtime.text module). After that, I would like to compile and generate the file packages/ti/target/arm/rtsarm/lib/ti.target.arm.rtsarm.aem3 file. I looked at the http://rtsc.eclipse.org/docs-tip/Working_with_xdc.runtime tutorial and this is what I did.

cd <xdctools_dir>/packages/ti/targets/arm/elf/

<xdctools_dir>/xdc clean

<xdctools_dir>/xdc

But, I wasn't able to generate a new ti.target.arm.rtsarm.aem3 file. Even running the same commands from <xdctools_dir>/packages/ti/targets/arm/rtsarm did nothing. I just want the steps to recompile ti.target.arm.rtsarm.aem3 after changes to xdc.runtime.text.

Any help much appreciated.

Thanks.

  • What happens when you go to ti/targets/arm/rtsarm and run 'xdc'? What's the output? As described in the linked tutorial, you have to use config.bld that defines rootDir for your target, which seems to be M3 ELF.

  • Hi,

    Thanks. Your mention of config.bld got me going. I used the following config.bld in the directory packages/ti/targets/arm/rtsarm/ to compile ti.targets.arm.rtsarm.aem3

    var M3 = xdc.useModule('ti.targets.arm.elf.M3');
    M3.rootDir = "cgtarm-4.9.0"

    /* specify the target(s) to use when building source files */
    var Build = xdc.module("xdc.bld.BuildEnvironment");
    Build.targets = [M3];