* This test package installs a firmware only used during IPC
  testing.  This firmware will conflict with the firmware file
  installed by the ipumm-fw recipe.  So the firmware needs to
  be installed with a .test extension to avoid the conflict.
* The test case will be modified to link the proper firmware to
  the proper name at test time.

Signed-off-by: Chase Maupin <[email protected]>
---
 .../ipc-test-fw/ipc-test-fw_3.21.00.02.bb          |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 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 41ab2fb..e855e8b 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
@@ -4,16 +4,17 @@ LIC_FILES_CHKSUM = 
"file://${COREBASE}/meta/files/common-licenses/BSD;md5=377548
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-PR = "eng-4-gb9283b0"
+FWVER = "eng-4-gb9283b0"
+PR = "r0+${FWVER}"
 
 COMPATIBLE_MACHINE = "omap5-evm|dra7xx-evm"
 
 INHIBIT_PACKAGE_STRIP = "1"
 INSANE_SKIP_${PN} = "arch"
 
-S = "${WORKDIR}/${PV}_${PR}"
+S = "${WORKDIR}/${PV}_${FWVER}"
 
-SRC_URI = 
"http://arago-project.org/files/releases/ipc-test-fw/${PV}_${PR}.tar.gz";
+SRC_URI = 
"http://arago-project.org/files/releases/ipc-test-fw/${PV}_${FWVER}.tar.gz";
 
 SRC_URI[md5sum] = "4fcba6844949ea909131684a80233800"
 SRC_URI[sha256sum] = 
"3b90b195c382937551251055aaa9185627e86027c91fb41a594dc390391d5fb6"
@@ -25,9 +26,14 @@ 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
-    install -m 755 ${FW_FILES} ${D}${base_libdir}/firmware/
+    for f in ${FW_FILES}
+    do
+        install -m 755 ${f} ${D}${base_libdir}/firmware/${f}.test
+    done
 }
 
 FILES_${PN} += "${base_libdir}/firmware"
-- 
1.7.9.5

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

Reply via email to