Hi,

CodecEngine is not available in source form, so you can't recompile it for another toolchain. The good news is you don't need to as long as your toolchain is EABI and based on glibc (well, you can also use CE 2.10 with EABI uclibc toolchain, but those are still a rare breed).

If your toolchain fit the bill for the requirements outlined before, what you really want to do is to change the definitions of the toolchain location and prefix for CE. You wan't to hack over the MontaVista toolchain definitions, since they use the extension .470MV, and several of the packages provides the binary files with that extension. If you move to a different extension or create a new toolchain definition, the binary-only packages will fail to provide matching files (at least on this version of your tools).

Attached a patch we did against xdc_3_00_02 that will provide you some insight. After you patch the files you need to rebuild the xdc target packages:
XDC=xdc_3_00_02
$(XDC)/xdc -C $(XDC)/packages/gnu/targets

Hope it helps

Regards,

Diego Dompe
RidgeRun Engineering


Index: xdc_3_00_02/xdc_3_00_02/packages/gnu/targets/MVArm9.xdc
===================================================================
--- xdc_3_00_02.orig/xdc_3_00_02/packages/gnu/targets/MVArm9.xdc 2007-11-02 16:45:11.000000000 -0600 +++ xdc_3_00_02/xdc_3_00_02/packages/gnu/targets/MVArm9.xdc 2008-11-05 15:42:07.000000000 -0600
@@ -19,7 +19,7 @@
  *  @p
  */
 metaonly module MVArm9 inherits gnu.targets.ITarget {
-    override readonly config string name                = "MVArm9";
+    override readonly config string name                = "MVArm9";
     override readonly config string os                  = "Linux";
     override readonly config string suffix              = "470MV";
     override readonly config string isa                 = "v5t";
@@ -30,12 +30,12 @@
override readonly config string rts = "gnu.targets.rts470MV"; override config string platform = "ti.platforms.evmDM6446";

-    override readonly config string LONGNAME = "/bin/arm_v5t_le-gcc";
+ override readonly config string LONGNAME = "/bin/arm-linux- gnueabi-gcc";

     override readonly config Bool CYGWIN     = true;

     override readonly config ITarget.Command ar = {
-        cmd: "$(rootDir)/bin/arm_v5t_le-ar",
+        cmd: "$(rootDir)/bin/arm-linux-gnueabi-ar",
         opts: "cr"
     };

@@ -55,12 +55,12 @@
      *
      */
     override readonly config ITarget.Command cc = {
-        cmd: "$(rootDir)/bin/arm_v5t_le-gcc -c -MD -MF [EMAIL PROTECTED]",
+        cmd: "$(rootDir)/bin/arm-linux-gnueabi-gcc -c -MD -MF [EMAIL 
PROTECTED]",
         opts: ""
     };

     override readonly config ITarget.Command asm = {
-        cmd: "$(rootDir)/bin/arm_v5t_le-gcc -c",
+        cmd: "$(rootDir)/bin/arm-linux-gnueabi-gcc -c",
         opts: "-x assembler"
     };

@@ -69,7 +69,7 @@
      *  The link command
      */
     override readonly config ITarget.Command lnk = {
-        cmd: "$(rootDir)/bin/arm_v5t_le-gcc",
+        cmd: "$(rootDir)/bin/arm-linux-gnueabi-gcc",
         opts: ""
     };

Index: xdc_3_00_02/xdc_3_00_02/packages/gnu/targets/package/ gnu.targets.sch
===================================================================
--- xdc_3_00_02.orig/xdc_3_00_02/packages/gnu/targets/package/ gnu.targets.sch 2008-11-05 15:47:31.000000000 -0600 +++ xdc_3_00_02/xdc_3_00_02/packages/gnu/targets/package/ gnu.targets.sch 2008-11-05 15:48:03.000000000 -0600
@@ -273,12 +273,12 @@
po.$$fld('model', $om['xdc.bld.ITarget.Model'], $ $SO({endian: "little"}), 'rh');
         po.$$fld('rts', $$T_Str, "gnu.targets.rts470MV", 'rh');
         po.$$fld('platform', $$T_Str, "ti.platforms.evmDM6446", 'wh');
-        po.$$fld('LONGNAME', $$T_Str, "/bin/arm_v5t_le-gcc", 'rh');
+ po.$$fld('LONGNAME', $$T_Str, "/bin/arm-linux-gnueabi-gcc", 'rh');
         po.$$fld('CYGWIN', $$T_Bool, true, 'rh');
- po.$$fld('ar', $om['gnu.targets.ITarget.Command'], $$SO({cmd: "$(rootDir)/bin/arm_v5t_le-ar", opts: "cr"}), 'rh'); - po.$$fld('cc', $om['gnu.targets.ITarget.Command'], $$SO({cmd: "$(rootDir)/bin/arm_v5t_le-gcc -c -MD -MF [EMAIL PROTECTED]", opts: ""}), 'rh'); - po.$$fld('asm', $om['gnu.targets.ITarget.Command'], $ $SO({cmd: "$(rootDir)/bin/arm_v5t_le-gcc -c", opts: "-x assembler"}), 'rh'); - po.$$fld('lnk', $om['gnu.targets.ITarget.Command'], $ $SO({cmd: "$(rootDir)/bin/arm_v5t_le-gcc", opts: ""}), 'rh'); + po.$$fld('ar', $om['gnu.targets.ITarget.Command'], $$SO({cmd: "$(rootDir)/bin/arm-linux-gnueabi-ar", opts: "cr"}), 'rh'); + po.$$fld('cc', $om['gnu.targets.ITarget.Command'], $$SO({cmd: "$(rootDir)/bin/arm-linux-gnueabi-gcc -c -MD -MF [EMAIL PROTECTED]", opts: ""}), 'rh'); + po.$$fld('asm', $om['gnu.targets.ITarget.Command'], $ $SO({cmd: "$(rootDir)/bin/arm-linux-gnueabi-gcc -c", opts: "-x assembler"}), 'rh'); + po.$$fld('lnk', $om['gnu.targets.ITarget.Command'], $ $SO({cmd: "$(rootDir)/bin/arm-linux-gnueabi-gcc", opts: ""}), 'rh'); po.$$fld('ccOpts', $om['gnu.targets.ITarget.Options'], $ $SO({prefix: "-fPIC -Wunused", suffix: "-Dfar= "}), 'wh'); po.$$fld('lnkOpts', $om['gnu.targets.ITarget.Options'], $ $SO({prefix: "", suffix: "-lstdc++ -L$(rootDir)/$(GCCTARG)/lib"}), 'wh');
         po.$$fld('includeOpts', $$T_Str, "", 'wh');



On Nov 18, 2008, at 2:46 PM, Mark Lokowich wrote:

Is it possible to build Codec Engine 2.10 with a non-Montavista toolchain? It seems that some of the packages are provided in library form only. I noticed the GCArmv5T target in XDC 3.00.06, for the Code Sourcery toolchain, suggesting support may be available. Any hints?

Mark Lokowich
Advanced Communication Design

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to