[meta-ti] Denys Dmytriyenko : dspdce-fw: fix alternatives handling

Arago Project git git at arago-project.org
Fri Dec 4 19:12:10 PST 2015


Module: meta-ti
Branch: fido
Commit: 2903335d81642ebea78fd2225bacd0896552d053
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=2903335d81642ebea78fd2225bacd0896552d053

Author: Denys Dmytriyenko <denys at ti.com>
Date:   Sat Dec  5 08:22:53 2015 +0000

dspdce-fw: fix alternatives handling

Signed-off-by: Denys Dmytriyenko <denys at ti.com>

---

 recipes-bsp/dspdce-fw/dspdce-fw_git.bb |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/recipes-bsp/dspdce-fw/dspdce-fw_git.bb b/recipes-bsp/dspdce-fw/dspdce-fw_git.bb
index cf4c34c..6c6bb2a 100644
--- a/recipes-bsp/dspdce-fw/dspdce-fw_git.bb
+++ b/recipes-bsp/dspdce-fw/dspdce-fw_git.bb
@@ -15,7 +15,7 @@ S = "${WORKDIR}/git"
 require recipes-ti/includes/ti-paths.inc
 require recipes-ti/includes/ti-staging.inc
 
-PR = "r1"
+PR = "r2"
 inherit update-alternatives
 
 DEPENDS = "ti-xdctools ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ipc-rtos ti-osal ti-cgt6x-native"
@@ -49,11 +49,12 @@ TARGET = "dra7-dsp1-fw.xe66"
 
 do_install() {
         mkdir -p ${D}${base_libdir}/firmware
-        cp ${S}/dra7xx-c66x-dsp.xe66 ${D}${base_libdir}/firmware/${TARGET}
+        cp ${S}/dra7xx-c66x-dsp.xe66 ${D}${base_libdir}/firmware/${TARGET}.${BPN}
 }
 
 ALTERNATIVE_${PN} = "dra7-dsp1-fw.xe66"
-ALTERNATIVE_LINK_NAME[dra7-dsp1-fw.xe66] = "/lib/firmware/${TARGET}"
+ALTERNATIVE_LINK_NAME[dra7-dsp1-fw.xe66] = "${base_libdir}/firmware/${TARGET}"
+ALTERNATIVE_TARGET[dra7-dsp1-fw.xe66] = "${base_libdir}/firmware/${TARGET}.${BPN}"
 ALTERNATIVE_PRIORITY = "10"
 
 INSANE_SKIP_${PN} = "arch"



More information about the meta-ti mailing list