opencl-monitor: Use update-alternatives to handle firmware
PATCH v2 2/2 opencl-monitor: Use update-alternatives to handle firmware
* Use update-alternatives to handle the firmware incase multiple packages provide DSP firmware
Signed-off-by Jacob Stiffler <[email protected]>
---
The is v2 of http://patchwork.dal.design.ti.com/patch/16967/
v2 changes:
* Use update-alternatives instead of manually adding symlinks
* Update commit message to reflect the method used.
meta-arago-extras/recipes-ti/ocl/opencl-monitor_git.bb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
meta-arago-extras/recipes-ti/ocl/opencl-monitor_git.bb +7 -2
@@ -5,9 +5,9 @@ LICENSE = "BSD" include ocl.inc require recipes-ti/includes/ti-paths.inc -PR = "${INC_PR}.0" +PR = "${INC_PR}.1" -inherit cmake +inherit cmake update-alternatives DEPENDS = " ti-llvm3.3-native \ common-csl-ip-rtos \
@@ -47,6 +47,11 @@ 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" +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_PRIORITY = "100" + MONITOR_FIRMWARE = "" MONITOR_FIRMWARE_dra7xx = "${base_libdir}/firmware/*"
Signature · 1 line
1.9.1