NAK

This breaks opencl-monitor for keystone as there is no dra7-dsp$i-fw.xe66.

Why was this change necessary? According to the documentation, update-alternatives will automatically do this renaming.

Frm openembedded-core/meta/classes/update-alternative.bbclass:
>>>
# NOTE: If the ALTERNATIVE_LINK_NAME and ALTERNATIVE_TARGET are the same,
# ALTERNATIVE_TARGET will have '.{BPN}' appended to it.  If the file
# referenced has not been renamed, it will also be renamed.  (This avoids
# the need to rename alternative files in the do_install step, but still
# supports it if necessary for some reason.)
<<<

- Jake


On 12/4/2015 9:25 PM, Denys Dmytriyenko wrote:
From: Denys Dmytriyenko <[email protected]>

Signed-off-by: Denys Dmytriyenko <[email protected]>
---
  meta-arago-extras/recipes-ti/ocl/opencl-monitor_git.bb | 10 ++++++++--
  1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/meta-arago-extras/recipes-ti/ocl/opencl-monitor_git.bb 
b/meta-arago-extras/recipes-ti/ocl/opencl-monitor_git.bb
index fbc4949..6657ba8 100644
--- a/meta-arago-extras/recipes-ti/ocl/opencl-monitor_git.bb
+++ b/meta-arago-extras/recipes-ti/ocl/opencl-monitor_git.bb
@@ -47,9 +47,15 @@ export GDB_SERVER_DIR = 
"${STAGING_DIR_TARGET}/usr/share/ti/gdbc6x"
  export X86_LLVM_DIR = "${STAGING_DIR_NATIVE}/usr"
  export XDCPATH = 
"${S};${IPC_DIR}/packages;${BIOS_DIR}/packages;${EDMA3LLD_DIR}/packages;${FC_DIR}/packages;${XDAIS_DIR}/packages"
+do_install_append() {
+       for i in 1 2; do mv ${D}${base_libdir}/firmware/dra7-dsp$i-fw.xe66 
${D}${base_libdir}/firmware/dra7-dsp$i-fw.xe66.${BPN}; done
+}
+
  ALTERNATIVE_${PN} = "dra7-dsp1-fw.xe66 dra7-dsp2-fw.xe66"
-ALTERNATIVE_LINK_NAME[dra7-dsp1-fw.xe66] = "/lib/firmware/dra7-dsp1-fw.xe66"
-ALTERNATIVE_LINK_NAME[dra7-dsp2-fw.xe66] = "/lib/firmware/dra7-dsp2-fw.xe66"
+ALTERNATIVE_LINK_NAME[dra7-dsp1-fw.xe66] = 
"${base_libdir}/firmware/dra7-dsp1-fw.xe66"
+ALTERNATIVE_TARGET[dra7-dsp1-fw.xe66] = 
"${base_libdir}/firmware/dra7-dsp1-fw.xe66.${BPN}"
+ALTERNATIVE_LINK_NAME[dra7-dsp2-fw.xe66] = 
"${base_libdir}/firmware/dra7-dsp2-fw.xe66"
+ALTERNATIVE_TARGET[dra7-dsp2-fw.xe66] = 
"${base_libdir}/firmware/dra7-dsp2-fw.xe66.${BPN}"
  ALTERNATIVE_PRIORITY = "100"
MONITOR_FIRMWARE = ""

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to