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.

Rebuilding Codec Engine



Hallo,

I have to rebuild codec server because I must use a specific toolchain, for OMAP L138.

I followed the instructions described here: http://processors.wiki.ti.com/index.php/Rebuilding_Codec_Engine.

The problem is when the command ar must be called.

che command called is "$(rootDir)/$(GCCTARG)/bin/ar" where rootDir is correctly set, and GCCTARG is correctly empty, but the right command to call should be "$(rootDir)/arm-none-linux-gnueabi-ar".

how to change the command line?


best regards

  • Mastupristi,

    Is this error occurring when you are rebuilding Codec Engine libraries?  If this is for the GCArmv5T target,
    it should be getting the 'ar' from GCArmv5T.LONGNAME.  Could you please post your config.bld and Makefile that
    you are using to rebuild Codec Engine?

    Thanks,

        Janet

  • The archivie containing config.bld, Makefile, and rules.make is attached.

    My directory tree is based on DVSDK, so Rules.make is included.

    And also before all I setup the environment with environment-setup-armv5te-forgetux-linux-gnueabi

    the actual trace of error is:

    # archiving package/lib/lib/debug/edma3/package/package_ti.sdo.fc.edma3.ov5T package/lib/lib/debug/edma3/edma3_configArm.ov5T package/lib/lib/debug/edma3/edma3Cfg.ov5T into lib/debug/edma3.av5T ...
    /opt/forgetux/deva/1.3.1/sysroots/i686-forgetux-linux/usr/bin/armv5te-forgetux-linux-gnueabi/arm-forgetux-linux-gnueabi/bin/ar  cr lib/debug/edma3.av5T   package/lib/lib/debug/edma3/package/package_ti.sdo.fc.edma3.ov5T package/lib/lib/debug/edma3/edma3_configArm.ov5T package/lib/lib/debug/edma3/edma3Cfg.ov5T
    gmake[1]: /opt/forgetux/deva/1.3.1/sysroots/i686-forgetux-linux/usr/bin/armv5te-forgetux-linux-gnueabi/arm-forgetux-linux-gnueabi/bin/ar: Command not found
    gmake[1]: *** [lib/debug/edma3.av5T] Error 127
    gmake: *** [/home/ubuntu/Lavori/PAW_PhAudio/Progetto_FW_SW_svn/from_sdk/codec-engine_2_26_02_11/cetools/packages/ti/sdo/fc/edma3,.libraries] Error 2
    make[1]: *** [.all-packages] Error 2
    make[1]: Leaving directory `/home/ubuntu/Lavori/PAW_PhAudio/Progetto_FW_SW_svn/from_sdk/codec-engine_2_26_02_11'
    make: *** [codec_engine] Error 2

    It calls
    /opt/forgetux/deva/1.3.1/sysroots/i686-forgetux-linux/usr/bin/armv5te-forgetux-linux-gnueabi/arm-forgetux-linux-gnueabi/bin/ar

    but it should calls
    /opt/forgetux/deva/1.3.1/sysroots/i686-forgetux-linux/usr/bin/armv5te-forgetux-linux-gnueabi/arm-forgetux-linux-gnueabi-ar

    the attached archive contains also the compilation trace

    best regards

    config_make_comp.tar.gz
  • Hi Mastupristi,

    Could you try adding the lines in blue below to your config.bld:

    GCArmv5T.rootDir = toolchaindir;               /* toolchain base directory */
    GCArmv5T.LONGNAME = "" + java.lang.System.getenv("CC");      /* gcc toolchain long name */

    GCArmv5T.ar.$unseal('cmd');
    GCArmv5T.ar.cmd = GCArmv5T.rootDir + "/bin/arm-none-linux-gnueabi-ar";
    GCArmv5T.ar.$seal('cmd');

    This is a little unconventional and normally shouldn't need to be done, but your toolchain
    must be installed differently.

    Best regards,

        Janet