[meta-intel] [PATCH v3] itt: add recipe

Naveen Saini naveen.kumar.saini at intel.com
Tue May 14 23:34:19 PDT 2019


Introduce Intel® Single Event API (Intel® SEAPI), which is the
translator of itt_notify calls into serverl OS specific and
third party tracing formats. It can be use as memory/performance/
whatever profile.

Wiki:
https://github.com/intel/IntelSEAPI/wiki

Signed-off-by: Lim, Raynald <raynald.lim at intel.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini at intel.com>
---
 ...eLists.txt-set-output-directory-path.patch | 33 +++++++++++++++++++
 recipes-multimedia/itt/itt_17.0.bb            | 30 +++++++++++++++++
 2 files changed, 63 insertions(+)
 create mode 100644 recipes-multimedia/itt/itt/0001-CMakeLists.txt-set-output-directory-path.patch
 create mode 100644 recipes-multimedia/itt/itt_17.0.bb

diff --git a/recipes-multimedia/itt/itt/0001-CMakeLists.txt-set-output-directory-path.patch b/recipes-multimedia/itt/itt/0001-CMakeLists.txt-set-output-directory-path.patch
new file mode 100644
index 00000000..6009669a
--- /dev/null
+++ b/recipes-multimedia/itt/itt/0001-CMakeLists.txt-set-output-directory-path.patch
@@ -0,0 +1,33 @@
+From 6bced614fe448ee7fc6216b528e2c5684446f9c6 Mon Sep 17 00:00:00 2001
+From: Naveen Saini <naveen.kumar.saini at intel.com>
+Date: Tue, 14 May 2019 16:57:27 +0800
+Subject: [PATCH] CMakeLists.txt: set output directory path
+
+Installer section of CMakeLists.txt expect bin
+direcotry should be present at PROJECT_SOURCE_DIR
+
+set(SEA_PROJECT_BIN ${PROJECT_SOURCE_DIR}/bin)
+
+Upstream-Status: Inappropriate
+
+Signed-off-by: Naveen Saini <naveen.kumar.saini at intel.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 479c443..01f0124 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -65,7 +65,7 @@ foreach (Flag ${Flags})
+     message(STATUS "${Flag} = ${${Flag}}")
+ endforeach()
+ 
+-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../../bin)
++set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
+ 
+ set(EXECUTABLE_OUTPUT_PATH ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
+ set(LIBRARY_OUTPUT_PATH ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
+-- 
+2.17.0
+
diff --git a/recipes-multimedia/itt/itt_17.0.bb b/recipes-multimedia/itt/itt_17.0.bb
new file mode 100644
index 00000000..b70852cd
--- /dev/null
+++ b/recipes-multimedia/itt/itt_17.0.bb
@@ -0,0 +1,30 @@
+SUMMARY = "Intel® Single Event API"
+DESCRIPTION = "Intel® SEAPI is the translator of itt_notify calls into \
+several OS specific and third party tracing formats. \
+You can use it as memory/performance/whatever profiler."
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://sea_itt_lib/Copyright.txt;md5=7d54dfc8860742fb06b9c5ad28f41fcd"
+
+SRC_URI = "\
+	git://github.com/intel/IntelSEAPI.git;protocols=https \
+	file://0001-CMakeLists.txt-set-output-directory-path.patch \
+"
+SRCREV="36bff07521afffc0c0f7db79252338954ca7e6dd"
+S = "${WORKDIR}/git"
+
+inherit pkgconfig cmake
+
+EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=Release"
+EXTRA_OECMAKE += "-DDCO_PILOT=0"
+EXTRA_OECMAKE += "-DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF"
+EXTRA_OECMAKE += "${@oe.utils.conditional('TARGET_ARCH','x86_64','','-DFORCE_32=ON',d)}"
+
+
+do_install() {
+     install -d -m 755 ${D}${libdir} ${D}${includedir}
+     install -m 644 ${S}/bin/*.a ${D}${libdir}
+     install -m 644 ${S}/ittnotify/include/ittnotify.h ${D}${includedir}
+}
+
+RDEPENS_${PN}-dev_remove = "${PN}"
-- 
2.17.0



More information about the meta-intel mailing list