ti-codec-engine: work around XDC runtime error
authorPeter A. Bigot <bigotp@acm.org>
Wed, 28 Dec 2011 00:51:58 +0000 (18:51 -0600)
committerKoen Kooi <koen@dominion.thruhere.net>
Thu, 29 Dec 2011 09:03:11 +0000 (10:03 +0100)
do_compile produces:

js: "/prj/oe/bb/build/tmp-eglibc/work/beagleboard-angstrom-linux-gnueabi/ti-codec-engine-2_26_02_11-r114a/codec_engine_2_26_02_11/packages/ti/sdo/ce/osal/linux/package.xs", line 50: XDC runtime error: gnu.targets.arm.GCArmv5T: '$used' is sealed

Fix comments out the conditional check per suggestion in
http://e2e.ti.com/support/dsp/omap_applications_processors/f/447/t/110920.aspx

Signed-off-by: Peter A. Bigot <bigotp@acm.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
recipes-ti/codec-engine/ti-codec-engine/bypass-GCArmv5T-used-is-sealed.patch [new file with mode: 0644]
recipes-ti/codec-engine/ti-codec-engine_2.26.02.11.bb

diff --git a/recipes-ti/codec-engine/ti-codec-engine/bypass-GCArmv5T-used-is-sealed.patch b/recipes-ti/codec-engine/ti-codec-engine/bypass-GCArmv5T-used-is-sealed.patch
new file mode 100644 (file)
index 0000000..b93161f
--- /dev/null
@@ -0,0 +1,22 @@
+do_compile produces:
+
+js: "/prj/oe/bb/build/tmp-eglibc/work/beagleboard-angstrom-linux-gnueabi/ti-codec-engine-2_26_02_11-r114a/codec_engine_2_26_02_11/packages/ti/sdo/ce/osal/linux/package.xs", line 50: XDC runtime error: gnu.targets.arm.GCArmv5T: '$used' is sealed
+
+Fix per suggestion in http://e2e.ti.com/support/dsp/omap_applications_processors/f/447/t/110920.aspx
+
+--- ./packages/ti/sdo/ce/osal/linux/package.xs.orig    2010-12-01 23:24:48.000000000 -0600
++++ ./packages/ti/sdo/ce/osal/linux/package.xs 2011-12-27 14:59:39.382423341 -0600
+@@ -47,10 +47,10 @@
+     }
+     /* Conditionally load CMEM here */
+-    var targetMod = xdc.useModule(prog.build.target.$name);
+-    if ((":"+targetMod.getISAChain().join(":")+":").match(/:v5T:/i)) {
++    //var targetMod = xdc.useModule(prog.build.target.$name);
++    //if ((":"+targetMod.getISAChain().join(":")+":").match(/:v5T:/i)) {
+         xdc.useModule('ti.sdo.linuxutils.cmem.CMEM');
+-    }
++    //}
+     var osalGlobal = xdc.useModule('ti.sdo.ce.osal.Global');
index 2c4b4a191cce574348682926c6d70a6438ac8d68..e66fa4a5d940392306f71a3ecc8a3fbe57ac906f 100644 (file)
@@ -2,6 +2,9 @@ require ti-codec-engine.inc
 
 LIC_FILES_CHKSUM = "file://codec_engine_${PV}_manifest.html;md5=912535f1b02ecf329a3979bf313f91e0"
 PV = "2_26_02_11"
+PR_append = "1"
+
+SRC_URI += "file://bypass-GCArmv5T-used-is-sealed.patch"
 
 SRC_URI[cetarball.md5sum] = "4f755f77119e4da19ab5cc7ae7ccfdb4"
 SRC_URI[cetarball.sha256sum] = "17fa053719265e0901fe3c3f90c9204957c6d0f5351d6b3ba4900df58cb7300f"