itt: add recipe

Introduce Intel® Single Event API (Intel® SEAPI), which is the
translator of itt_notify calls into several 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@intel.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
This commit is contained in:
Naveen Saini 2019-05-15 16:02:53 +08:00 committed by Anuj Mittal
parent b92f5cbfe6
commit e160f52a45
2 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,33 @@
From 6bced614fe448ee7fc6216b528e2c5684446f9c6 Mon Sep 17 00:00:00 2001
From: Naveen Saini <naveen.kumar.saini@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@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

View File

@ -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;protocol=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 += "${@oe.utils.conditional('TARGET_ARCH','x86_64','','-DFORCE_32=ON',d)}"
COMPATIBLE_HOST_libc-musl_class-target = "null"
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}
}
RDEPENDS_${PN}-dev_remove = "${PN} (= ${EXTENDPKGV})"