ti-dsplink: Introduce DSPLINKDSP to simplify DSP executable install
authorRoger Monk <r-monk@ti.com>
Thu, 22 Apr 2010 00:14:20 +0000 (01:14 +0100)
committerKoen Kooi <koen@openembedded.org>
Thu, 22 Apr 2010 11:21:55 +0000 (13:21 +0200)
* Add new variable DSPLINKDSP to be used in install scripts

Signed-off-by: Roger Monk <r-monk@ti.com>
Signed-off-by: Koen Kooi <koen@openembedded.org>
recipes/ti/ti-dsplink.inc

index 2a91372..c0171f1 100644 (file)
@@ -44,6 +44,13 @@ DSPLINKDSPCFG_omapl138    = "OMAPL138GEMSHMEM"
 DSPLINKDSPCFG_omap3       = "OMAP3530SHMEM"
 DSPLINKDSPCFG            ?= "<UNDEFINED_DSPLINKDSPCFG>"
 
+DSPLINKDSP_dm6446         = "DM6446GEM_0"
+DSPLINKDSP_dm6467         = "DM6467GEM_0"
+DSPLINKDSP_omapl137       = "OMAPL1XXGEM_0"
+DSPLINKDSP_omapl138       = "OMAPL138GEM_0"
+DSPLINKDSP_omap3          = "OMAP3530_0"
+DSPLINKDSP               ?= "<UNDEFINED_DSPLINKDSP>"
+
 DSPLINKGPPOS_dm6446       = "DM6446LSP"
 DSPLINKGPPOS_dm6467       = "DM6467LSP"
 DSPLINKGPPOS_omapl137     = "ARM"
@@ -152,13 +159,10 @@ do_install () {
     install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp
     install -m 0755 ${DSPLINK}/gpp/export/BIN/Linux/${DSPLINKPLATFORM}/RELEASE/dsplinkk.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/ 
 
-    # Install the example apps
+    # Install the example apps (gpp and dsp)
     install -d ${D}/${installdir}/ti-dsplink-examples/
     cp ${DSPLINK}/gpp/export/BIN/Linux/${DSPLINKPLATFORM}/RELEASE/*gpp ${D}/${installdir}/ti-dsplink-examples
-    
-    for i in $(find ${DSPLINK}/dsp/BUILD/ -name "*.out") ; do
-        cp ${i} ${D}/${installdir}/ti-dsplink-examples
-    done
+    cp ${DSPLINK}/dsp/export/BIN/DspBios/${DSPLINKPLATFORM}/${DSPLINKDSP}/RELEASE/*.out ${D}/${installdir}/ti-dsplink-examples    
 
     # Install the example apps module un/load scripts
     install ${WORKDIR}/ti-dsplink-examples-loadmodules.sh ${D}/${installdir}/ti-dsplink-examples