Skip to contentSkip to conversation

ipumm-fw: update recipe to build ipumm-fw from git source

PATCH Superseded Hongmei Gou 2 participants 2 messages Oct 27, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipumm-fw: update recipe to build ipumm-fw from git source

---
 recipes-bsp/ipumm-fw/ipumm-fw_3.00.09.01.bb | 46 ++++++++++++++++++++++++-----
 1 file changed, 38 insertions(+), 8 deletions(-)
recipes-bsp/ipumm-fw/ipumm-fw_3.00.09.01.bb +38 -8
index f537179..8b0dc21 100644
@@ -9,27 +9,57 @@ python __anonymous() {
 DESCRIPTION = "Firmware for IPU for supporting Accelerated MM decode and encode"
 LICENSE = "TI-TSPA"
 
-LIC_FILES_CHKSUM = "file://MMIP-${PV}-Manifest.doc;md5=5803e271087f74d03239d868bebcc2c7"
+LIC_FILES_CHKSUM = "file://Texas_Instruments_ipumm_Manifest.pdf;md5=036f6300761559fbc5ce7d06e1ccea5a"
 
 COMPATIBLE_MACHINE = "dra7xx"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 RDEPENDS_${PN} = " libdce"
 
-SRC_URI = "http://downloads.ti.com/infotainment/esd/jacinto6/glsdk/ipumm/3_00_09_01/exports/ipumm-dra7xx-evm-${PV}.tar.gz;protocol=http"
+SRC_URI = "git://git.ti.com/ivimm/ipumm.git;protocol=git"
 
-SRC_URI[md5sum] = "bf15624e26bdef4dbb67b98ccd8b9754"
-SRC_URI[sha256sum] = "e70a38b62e3e4d11d5ce68f0980de4df5256bd597068f179e220fa5afcd065fe"
+SRCREV = "7f15373c21a9a98b8881d81c3681c09e858a9d2c"
 
-S = "${WORKDIR}/ipumm-dra7xx-evm-${PV}"
+S = "${WORKDIR}/git"
+
+PV = "3.00.09.01"
+
+require recipes-ti/includes/ti-paths.inc
+require recipes-ti/includes/ti-staging.inc
+
+DEPENDS = "ti-xdctools ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ccsv6-native ti-ipc-rtos"
+
+export HWVERSION="ES10"
+export BIOSTOOLSROOT="${STAGING_DIR_TARGET}/usr/share/ti"
+
+export XDCVERSION="ti-xdctools-tree"
+export BIOSVERSION="ti-sysbios-tree"
+export IPCVERSION="ti-ipc-tree"
+export CEVERSION="ti-codec-engine-tree"
+export FCVERSION="ti-framework-components-tree"
+export XDAISVERSION="ti-xdais-tree"
+
+export TMS470CGTOOLPATH="${M4_TOOLCHAIN_INSTALL_DIR}"
+export IPCSRC="${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree"
+
+do_configure() {
+    cd ${S}
+    make unconfig
+    make vayu_smp_config
+}
+
+
+do_compile() {
+    cd ${S}
+    make
+}
 
 TARGET = "dra7-ipu2-fw.xem4"
 
 do_install() {
         mkdir -p ${D}${base_libdir}/firmware
-        cp ${S}/firmware/${TARGET} ${D}${base_libdir}/firmware/${TARGET}
+        cp ${S}/${TARGET} ${D}${base_libdir}/firmware/${TARGET}
 }
 
 FILES_${PN} += "${base_libdir}/firmware/${TARGET}"
 
-PR = "r0"
+PR = "r1"
Signature · 1 line
1.9.1
#1 lore raw
Quoted 22 lines · Hongmei Gou
---
 recipes-bsp/ipumm-fw/ipumm-fw_3.00.09.01.bb | 46 ++++++++++++++++++++++++-----
 1 file changed, 38 insertions(+), 8 deletions(-)
recipes-bsp/ipumm-fw/ipumm-fw_3.00.09.01.bb +1 -3
index f537179..8b0dc21 100644
@@ -9,27 +9,57 @@ python __anonymous() {
 DESCRIPTION = "Firmware for IPU for supporting Accelerated MM decode and encode"
 LICENSE = "TI-TSPA"
 
-LIC_FILES_CHKSUM = "file://MMIP-${PV}-Manifest.doc;md5=5803e271087f74d03239d868bebcc2c7"
+LIC_FILES_CHKSUM = "file://Texas_Instruments_ipumm_Manifest.pdf;md5=036f6300761559fbc5ce7d06e1ccea5a"
 
 COMPATIBLE_MACHINE = "dra7xx"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 RDEPENDS_${PN} = " libdce"
 
-SRC_URI = "http://downloads.ti.com/infotainment/esd/jacinto6/glsdk/ipumm/3_00_09_01/exports/ipumm-dra7xx-evm-${PV}.tar.gz;protocol=http"

recipes-bsp/ipumm-fw/ipumm-fw_3.00.09.01.bb python __anonymous() { · line 24

Quoted 10 lines
recipes-bsp/ipumm-fw/ipumm-fw_3.00.09.01.bb +5 -3
+SRC_URI = "git://git.ti.com/ivimm/ipumm.git;protocol=git"
 
-SRC_URI[md5sum] = "bf15624e26bdef4dbb67b98ccd8b9754"
-SRC_URI[sha256sum] = "e70a38b62e3e4d11d5ce68f0980de4df5256bd597068f179e220fa5afcd065fe"
+SRCREV = "7f15373c21a9a98b8881d81c3681c09e858a9d2c"
 
-S = "${WORKDIR}/ipumm-dra7xx-evm-${PV}"
+S = "${WORKDIR}/git"
+
+PV = "3.00.09.01"

This now comes from the filename. Do you want to rename recipe into _git.bb?

Quoted 10 lines
recipes-bsp/ipumm-fw/ipumm-fw_3.00.09.01.bb +10 -0
+require recipes-ti/includes/ti-paths.inc
+require recipes-ti/includes/ti-staging.inc
+
+DEPENDS = "ti-xdctools ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ccsv6-native ti-ipc-rtos"
+
+export HWVERSION="ES10"
+export BIOSTOOLSROOT="${STAGING_DIR_TARGET}/usr/share/ti"
+
+export XDCVERSION="ti-xdctools-tree"
+export BIOSVERSION="ti-sysbios-tree"

recipes-bsp/ipumm-fw/ipumm-fw_3.00.09.01.bb python __anonymous() { · line 45

Quoted 10 lines
recipes-bsp/ipumm-fw/ipumm-fw_3.00.09.01.bb +10 -0
+export IPCVERSION="ti-ipc-tree"
+export CEVERSION="ti-codec-engine-tree"
+export FCVERSION="ti-framework-components-tree"
+export XDAISVERSION="ti-xdais-tree"
+
+export TMS470CGTOOLPATH="${M4_TOOLCHAIN_INSTALL_DIR}"
+export IPCSRC="${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree"
+
+do_configure() {
+    cd ${S}

You probably need B = ${S} instead.

recipes-bsp/ipumm-fw/ipumm-fw_3.00.09.01.bb python __anonymous() { · line 47

Quoted 2 lines
recipes-bsp/ipumm-fw/ipumm-fw_3.00.09.01.bb +2 -0
+    make unconfig
+    make vayu_smp_config

Use oe_runmake.

recipes-bsp/ipumm-fw/ipumm-fw_3.00.09.01.bb python __anonymous() { · line 53

Quoted 6 lines
recipes-bsp/ipumm-fw/ipumm-fw_3.00.09.01.bb +6 -0
+}
+
+
+do_compile() {
+    cd ${S}
+    make

Same as above.

Quoted 22 lines
recipes-bsp/ipumm-fw/ipumm-fw_3.00.09.01.bb +3 -2
+}
 
 TARGET = "dra7-ipu2-fw.xem4"
 
 do_install() {
         mkdir -p ${D}${base_libdir}/firmware
-        cp ${S}/firmware/${TARGET} ${D}${base_libdir}/firmware/${TARGET}
+        cp ${S}/${TARGET} ${D}${base_libdir}/firmware/${TARGET}
 }
 
 FILES_${PN} += "${base_libdir}/firmware/${TARGET}"
 
-PR = "r0"
+PR = "r1"
Signature · 7 lines
1.9.1

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti