From e160f52a45935463d5138b9fa6cd52fb6de17e19 Mon Sep 17 00:00:00 2001 From: Naveen Saini Date: Wed, 15 May 2019 16:02:53 +0800 Subject: itt: add recipe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Naveen Saini Signed-off-by: Anuj Mittal --- ...-CMakeLists.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 (limited to 'recipes-multimedia') 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 +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 +--- + 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..a40a2e9b --- /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;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})" -- cgit v1.2.3-54-g00ecf