Skip to contentSkip to conversation

Nikhil Devshatwar : vpdma-fw: Separate vpdma-fw and vpe-tests recipe

PATCH Arago Project git 1 participant 1 message Jan 28, 2015

lore
Share & tools
lore
#0 lore raw
Module: meta-ti
Branch: master
Commit: 7cddc2a6d92d14164916d6cf303f4bdb38f47b4a
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=7cddc2a6d92d14164916d6cf303f4bdb38f47b4a
Author: Nikhil Devshatwar <[email protected]>
Date:   Thu Jan 22 20:06:16 2015 +0000

vpdma-fw: Separate vpdma-fw and vpe-tests recipe

VPDMA firmware is published publicly as IPUMM firmware. This patch creates a separate recipe for VPDMA firmware. Also, it updates the package names in kernel dependencies.

The vpe-tests is an independent recipe which can be included in the packagegroup if required.

---

 recipes-bsp/vpdma-fw/vpdma-fw_03-2012.bb           |   25 ++++++++++++++++++++
 .../vpe-tests_git.bb}                              |   10 +-------
 recipes-kernel/linux/linux-ti-staging_3.12.bb      |    2 +-
 recipes-kernel/linux/linux-ti-staging_3.14.bb      |    2 +-
 4 files changed, 28 insertions(+), 11 deletions(-)
recipes-bsp/vpdma-fw/vpdma-fw_03-2012.bb new file +25 -0
new file mode 100644
index 0000000..4707f17
@@ -0,0 +1,25 @@
+DESCRIPTION = "VPDMA firmware for Video Input Port and Video Processing Engine"
+
+LICENSE = "TI-TSPA"
+LIC_FILES_CHKSUM = "file://COPYING;md5=fd463c9500441ed91d07a0331baa635c"
+
+COMPATIBLE_MACHINE = "dra7xx"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+DEPENDS += "virtual/kernel"
+
+SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/glsdk/vpdma-fw/03-2012/exports/vpdma-fw_03-2012.tar.gz;protocol=http;name=dra7xx-evm"
+SRC_URI[dra7xx-evm.md5sum] = "80176df1350c21d9efa90171789c546e"
+SRC_URI[dra7xx-evm.sha256sum] = "a0b254ffd0c7f481cb3989e632088f5e4a233c73a1c676faa3061721ea60dc90"
+
+S = "${WORKDIR}/vpdma-fw-${PV}"
+TARGET = "vpdma-1b8.bin"
+
+do_install() {
+    mkdir -p ${D}${base_libdir}/firmware
+    cp ${S}/${TARGET} ${D}${base_libdir}/firmware/${TARGET}
+}
+
+FILES_${PN} += "${base_libdir}/firmware/${TARGET}"
+
+PR = "r1"
recipes-bsp/vpe-tests/vpe-tests_git.bb renamed from recipes-bsp/vpe-vpdma/vpe-vpdma_git.bb +1 -9
similarity index 77%
rename from recipes-bsp/vpe-vpdma/vpe-vpdma_git.bb
rename to recipes-bsp/vpe-tests/vpe-tests_git.bb
index f7a63ab..a8ee7f8 100644
@@ -1,15 +1,10 @@
-DESCRIPTION = "VPE VPDMA firmware and test program"
-
-DEPENDS += "virtual/kernel"
+DESCRIPTION = "VPE test program"
 
 LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://COPYING;md5=74d2f71d8898c54e3d1c9d0058c484aa"
 
 COMPATIBLE_MACHINE = "dra7xx"
 
-PV = "1b8"
-PR = "r2"
-
 SRCREV = "e3d8db1aa935775f9d196ad7428e0cd9864a36ca"
 BRANCH ?= "master"
 
@@ -26,6 +21,3 @@ do_install() {
     oe_runmake DESTDIR="${D}" install
 }
 
-# Separate the firmware into it's own package.
-PACKAGES =+ "${PN}-fw"
-FILES_${PN}-fw += "${base_libdir}/firmware"
recipes-kernel/linux/linux-ti-staging_3.12.bb +1 -1
index 27a3f35..358bd1b 100644
@@ -21,7 +21,7 @@ RDEPENDS_kernel-base_append_ti43x = " am33x-cm3"
 
 # Add a run-time dependency for the VPE VPDMA firmware to be installed
 # on the target file system.
-RDEPENDS_kernel-base_append_dra7xx = " vpe-vpdma-fw"
+RDEPENDS_kernel-base_append_dra7xx = " vpdma-fw"
 
 # Default is to package all dtb files for ti33x devices unless building
 # for the specific beaglebone machine.
recipes-kernel/linux/linux-ti-staging_3.14.bb +1 -1
index 2192e3c..c8cbc93 100644
@@ -22,7 +22,7 @@ RDEPENDS_kernel-base_append_ti43x = " am33x-cm3"
 
 # Add a run-time dependency for the VPE VPDMA firmware to be installed
 # on the target file system.
-RDEPENDS_kernel-base_append_dra7xx = " vpe-vpdma-fw"
+RDEPENDS_kernel-base_append_dra7xx = " vpdma-fw"
 
 # Default is to package all dtb files for ti33x devices unless building
 # for the specific beaglebone machine.