enabling c6run custom app recipes patch

Submitted by Shane Volpe on Aug. 22, 2011, 6:55 p.m. | Patch ID: 10379


Message ID CAMgc3zPd-dAKAkhb=r5Uys52ohM5-9rANSz_hkSDiEQzPS0eWg@mail.gmail.com
State New, archived
Headers show

Commit Message

Shane Volpe Aug. 22, 2011, 6:55 p.m.
I've been putting together some custom bitbake recipes to build dsp
apps using c6run.  The ti-c6run generates its own compiler to compile
the dsp code and I was able to greatly simplify my recipe if I applied
the following patch to the ti-paths.inc file in oe.

 export XDC_INSTALL_DIR        =
 export XDAIS_INSTALL_DIR      =

This causes all of the native compiling bin tools for the c6run to be
installed with all the ti related tools.  It also provides a global
variable "C6RUN_INSTALL_DIR" that can be used in a custom bitbake
recipe to access those tools.  The interesting thing is the current
ti-c6run recipe file in OE already uses "C6RUN_INSTALL_DIR_RECIPE" if
it exists so the ti-path.inc is really the only file that needs to be
modified for this all to work.


Patch hide | download patch | download mbox

diff --git a/recipes/ti/ti-paths.inc b/recipes/ti/ti-paths.inc
index 755fcf1..bab2c7e 100644
--- a/recipes/ti/ti-paths.inc
+++ b/recipes/ti/ti-paths.inc
@@ -1,6 +1,7 @@ 
 installdir = "${datadir}/ti"

 # This is where do_install will put it
+export C6RUN_INSTALL_DIR_RECIPE      = "${installdir}/ti-c6run-tree"
 export CODEGEN_INSTALL_DIR_RECIPE    = "${installdir}/ti-cgt6x-tree"
 export XDC_INSTALL_DIR_RECIPE        = "${installdir}/ti-xdctools-tree"
 export XDAIS_INSTALL_DIR_RECIPE      = "${installdir}/ti-xdais-tree"
@@ -27,6 +28,7 @@  export AUDIO_SOC_INSTALL_DIR_RECIPE  =
 export C6ACCEL_INSTALL_DIR_RECIPE    = "${installdir}/ti-c6accel-tree"

 # This is where the tools will end up in staging provided