All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ipc-test-fw: add alternatives handling
@ 2015-12-05  2:25 Denys Dmytriyenko
  2015-12-05  2:25 ` [PATCH 2/2] opencl-monitor: fix " Denys Dmytriyenko
  0 siblings, 1 reply; 7+ messages in thread
From: Denys Dmytriyenko @ 2015-12-05  2:25 UTC (permalink / raw)
  To: meta-arago

From: Denys Dmytriyenko <denys@ti.com>

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
 .../ipc-test-fw/ipc-test-fw_3.21.00.02.bb          | 23 +++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

diff --git a/meta-arago-distro/recipes-bsp/ipc-test-fw/ipc-test-fw_3.21.00.02.bb b/meta-arago-distro/recipes-bsp/ipc-test-fw/ipc-test-fw_3.21.00.02.bb
index 55a6768..3093b53 100644
--- a/meta-arago-distro/recipes-bsp/ipc-test-fw/ipc-test-fw_3.21.00.02.bb
+++ b/meta-arago-distro/recipes-bsp/ipc-test-fw/ipc-test-fw_3.21.00.02.bb
@@ -2,10 +2,10 @@ DESCRIPTION = "Firmware images to test IPC"
 LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/BSD;md5=3775480a712fc46a69647678acb234cb"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
+inherit update-alternatives
 
 FWVER = "eng-4-gb9283b0"
-PR = "r1+${FWVER}"
+PR = "r2+${FWVER}"
 
 COMPATIBLE_MACHINE = "omap5-evm|dra7xx"
 
@@ -23,14 +23,27 @@ do_compile() {
     :
 }
 
-# Add a .test extension to the firmware files so that they do not conflict
-# with the real firmware images
 do_install() {
     install -d ${D}${base_libdir}/firmware
     for f in *.xe*
     do
-        install -m 755 ${f} ${D}${base_libdir}/firmware/${f}.test
+        install -m 755 $f ${D}${base_libdir}/firmware/$f.${BPN}
     done
 }
 
+ALTERNATIVE_${PN} = "dra7-dsp1-fw.xe66 dra7-dsp2-fw.xe66 dra7-ipu1-fw.xem4 dra7-ipu2-fw.xem4 ducati-m3-core0.xem3 tesla-dsp.xe64T"
+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_LINK_NAME[dra7-ipu1-fw.xem4] = "${base_libdir}/firmware/dra7-ipu1-fw.xem4"
+ALTERNATIVE_TARGET[dra7-ipu1-fw.xem4] = "${base_libdir}/firmware/dra7-ipu1-fw.xem4.${BPN}"
+ALTERNATIVE_LINK_NAME[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/dra7-ipu2-fw.xem4"
+ALTERNATIVE_TARGET[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/dra7-ipu2-fw.xem4.${BPN}"
+ALTERNATIVE_LINK_NAME[ducati-m3-core0.xem3] = "${base_libdir}/firmware/ducati-m3-core0.xem3"
+ALTERNATIVE_TARGET[ducati-m3-core0.xem3] = "${base_libdir}/firmware/ducati-m3-core0.xem3.${BPN}"
+ALTERNATIVE_LINK_NAME[tesla-dsp.xe64T] = "${base_libdir}/firmware/tesla-dsp.xe64T"
+ALTERNATIVE_TARGET[tesla-dsp.xe64T] = "${base_libdir}/firmware/tesla-dsp.xe64T.${BPN}"
+ALTERNATIVE_PRIORITY = "20"
+
 FILES_${PN} += "${base_libdir}/firmware"
-- 
2.2.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-12-07 16:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-05  2:25 [PATCH 1/2] ipc-test-fw: add alternatives handling Denys Dmytriyenko
2015-12-05  2:25 ` [PATCH 2/2] opencl-monitor: fix " Denys Dmytriyenko
2015-12-07 12:12   ` Jacob Stiffler
2015-12-07 14:58     ` Denys Dmytriyenko
2015-12-07 15:15       ` Denys Dmytriyenko
2015-12-07 15:18         ` Jacob Stiffler
2015-12-07 16:10           ` Denys Dmytriyenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.