Denys,

Can you apply this to the ti2018.01 branch?


Thank you,

Jake


On 6/27/2018 5:38 PM, Yuan Zhao wrote:
Signed-off-by: Yuan Zhao <[email protected]>
---
  .../recipes-ti/includes/arago-paths.inc            |  2 ++
  meta-arago-extras/recipes-ti/ocl/ocl.inc           |  4 +--
  .../recipes-ti/ocl/opencl-monitor-ipu_git.bb       |  4 ++-
  .../recipes-ti/ocl/opencl-monitor_git.bb           |  6 +++-
  .../recipes-ti/ocl/opencl-tidl-fw_git.bb           | 38 ++++++++++++++++++++++
  5 files changed, 50 insertions(+), 4 deletions(-)
  create mode 100644 meta-arago-extras/recipes-ti/ocl/opencl-tidl-fw_git.bb

diff --git a/meta-arago-extras/recipes-ti/includes/arago-paths.inc 
b/meta-arago-extras/recipes-ti/includes/arago-paths.inc
index a652df08..5a2efaff 100644
--- a/meta-arago-extras/recipes-ti/includes/arago-paths.inc
+++ b/meta-arago-extras/recipes-ti/includes/arago-paths.inc
@@ -4,8 +4,10 @@ export LIBARCH_INSTALL_DIR_RECIPE    = 
"${installdir}/ti-libarch-tree"
  export LINALG_INSTALL_DIR_RECIPE     = "${installdir}/ti-linalg-tree"
  export LLVM_RTOS_INSTALL_DIR_RECIPE  = "${installdir}/llvm-rtos-tree"
  export OCL_RTOS_INSTALL_DIR_RECIPE   = "${installdir}/ti-opencl-rtos-tree"
+export OCL_TIDL_FW_INSTALL_DIR_RECIPE   = 
"${installdir}/ti-opencl-tidl-fw-tree"
export LIBARCH_INSTALL_DIR = "${STAGING_DIR_TARGET}${LIBARCH_INSTALL_DIR_RECIPE}"
  export LINALG_INSTALL_DIR     = 
"${STAGING_DIR_TARGET}${LINALG_INSTALL_DIR_RECIPE}"
  export LLVM_RTOS_INSTALL_DIR  = 
"${STAGING_DIR_TARGET}${LLVM_RTOS_INSTALL_DIR_RECIPE}"
  export OCL_RTOS_INSTALL_DIR   = 
"${STAGING_DIR_TARGET}${OCL_RTOS_INSTALL_DIR_RECIPE}"
+export OCL_TIDL_FW_INSTALL_DIR   = 
"${STAGING_DIR_TARGET}${OCL_TIDL_FW_INSTALL_DIR_RECIPE}"
diff --git a/meta-arago-extras/recipes-ti/ocl/ocl.inc 
b/meta-arago-extras/recipes-ti/ocl/ocl.inc
index edde12b2..1fd705da 100644
--- a/meta-arago-extras/recipes-ti/ocl/ocl.inc
+++ b/meta-arago-extras/recipes-ti/ocl/ocl.inc
@@ -1,4 +1,4 @@
-PV = "1.1.15.1"
+PV = "1.1.15.2"
  INC_PR = "r0"
LIC_FILES_CHKSUM = "file://../debian/copyright;md5=2e3965a73a8a49c23836467266120dff"
@@ -9,7 +9,7 @@ OCL_GIT_URI = "git://git.ti.com/opencl/ti-opencl.git"
  OCL_GIT_PROTOCOL = "git"
  OCL_GIT_BRANCH = "master"
-OCL_SRCREV = "5b77a9c0ac39985430f11ff9b80d3122d11e261c"
+OCL_SRCREV = "84f2e36f38eca46c6c376bacd757d45f2e5733f1"
BRANCH = "${OCL_GIT_BRANCH}"
  SRC_URI = "${OCL_GIT_URI};protocol=${OCL_GIT_PROTOCOL};branch=${BRANCH}"
diff --git a/meta-arago-extras/recipes-ti/ocl/opencl-monitor-ipu_git.bb 
b/meta-arago-extras/recipes-ti/ocl/opencl-monitor-ipu_git.bb
index d560744a..61d5cad0 100644
--- a/meta-arago-extras/recipes-ti/ocl/opencl-monitor-ipu_git.bb
+++ b/meta-arago-extras/recipes-ti/ocl/opencl-monitor-ipu_git.bb
@@ -3,7 +3,7 @@ HOMEPAGE = 
"http://software-dl.ti.com/mctools/docs/opencl/intro.html";
  LICENSE = "BSD"
include ocl.inc
-require recipes-ti/includes/ti-paths.inc
+require recipes-ti/includes/arago-paths.inc
PR = "${INC_PR}.0" @@ -17,6 +17,7 @@ DEPENDS = " common-csl-ip-rtos \
              ti-pdk-build-rtos \
              ti-cgt-arm-native \
              util-linux-native \
+            opencl-tidl-fw \
  "
COMPATIBLE_MACHINE = "am57xx-evm|am57xx-hs-evm"
@@ -38,6 +39,7 @@ export XDC_DIR = "${XDC_INSTALL_DIR}"
  export TI_OCL_M4_CGT_INSTALL = "${STAGING_DIR_NATIVE}/usr/share/ti/ti-cgt-arm"
  export CSL_LIB_M4 = 
"${PDK_DIR}/packages/ti/csl/lib/am572x/m4/release/ti.csl.aem4"
  export PM_HAL_LIB_M4 = 
"$(PDK_DIR)/packages/ti/drv/pm/lib/am572x/m4/release/pm_hal.aem4"
+export OCL_TIDL_FW_DIR = "${OCL_TIDL_FW_INSTALL_DIR}"
ALTERNATIVE_${PN} = "dra7-ipu1-fw.xem4"
  ALTERNATIVE_LINK_NAME[dra7-ipu1-fw.xem4] = 
"${base_libdir}/firmware/dra7-ipu1-fw.xem4"
diff --git a/meta-arago-extras/recipes-ti/ocl/opencl-monitor_git.bb 
b/meta-arago-extras/recipes-ti/ocl/opencl-monitor_git.bb
index 50a5270e..b2f9d988 100644
--- a/meta-arago-extras/recipes-ti/ocl/opencl-monitor_git.bb
+++ b/meta-arago-extras/recipes-ti/ocl/opencl-monitor_git.bb
@@ -3,7 +3,7 @@ HOMEPAGE = 
"http://software-dl.ti.com/mctools/docs/opencl/intro.html";
  LICENSE = "BSD"
include ocl.inc
-require recipes-ti/includes/ti-paths.inc
+require recipes-ti/includes/arago-paths.inc
PR = "${INC_PR}.0" @@ -42,6 +42,9 @@ DEPENDS_append_k2e = " multiprocmgr-rtos \
                              rm-lld-rtos \
  "
+DEPENDS_append_dra7xx = " opencl-tidl-fw \
+"
+
  COMPATIBLE_MACHINE = "dra7xx|keystone"
  PACKAGE_ARCH = "${MACHINE_ARCH}"
@@ -75,6 +78,7 @@ export GDB_SERVER_DIR = "${STAGING_DIR_TARGET}/usr/share/ti/gdbc6x"
  export AET_DIR = "${STAGING_DIR_TARGET}/usr/share/ti/ctoolslib/aet"
  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"
+export OCL_TIDL_FW_DIR = "${OCL_TIDL_FW_INSTALL_DIR}"
do_install_append_dra7xx() {
        for i in 1 2; do mv ${D}${base_libdir}/firmware/dra7-dsp$i-fw.xe66 
${D}${base_libdir}/firmware/dra7-dsp$i-fw.xe66.${BPN}; done
diff --git a/meta-arago-extras/recipes-ti/ocl/opencl-tidl-fw_git.bb 
b/meta-arago-extras/recipes-ti/ocl/opencl-tidl-fw_git.bb
new file mode 100644
index 00000000..80c7021a
--- /dev/null
+++ b/meta-arago-extras/recipes-ti/ocl/opencl-tidl-fw_git.bb
@@ -0,0 +1,38 @@
+SUMMARY = "OpenCL TIDL firmware for AM57xx"
+
+LICENSE = "TI-TFL"
+LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=082a028431c455252c1e1d3d1021d382"
+
+PV = "01.00.00.02"
+PR = "r0"
+
+require recipes-ti/includes/arago-paths.inc
+
+COMPATIBLE_MACHINE = "dra7xx"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+GIT_URI      = "git://git.ti.com/opencl/opencl-firmware.git"
+GIT_PROTOCOL = "git"
+BRANCH       = "master"
+SRCREV       = "3b2dca5cb5718db93f7742186839591188c46b25"
+SRC_URI      = "${GIT_URI};protocol=${GIT_PROTOCOL};branch=${BRANCH}"
+
+S = "${WORKDIR}/git"
+
+TARGET = "eve_firmware.bin ocl_tidl_dsp.lib"
+
+do_install() {
+    install -d ${D}${OCL_TIDL_FW_INSTALL_DIR_RECIPE}
+    for f in ${TARGET}; do
+       install -m 0644 ${S}/$f ${D}${OCL_TIDL_FW_INSTALL_DIR_RECIPE}/$f
+    done
+}
+
+FILES_${PN} += "${OCL_TIDL_FW_INSTALL_DIR_RECIPE}"
+
+INSANE_SKIP_${PN} = "arch"
+
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_SYSROOT_STRIP = "1"
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"

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

Reply via email to