summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace
diff options
context:
space:
mode:
Diffstat (limited to 'dynamic-layers/openembedded-layer/recipes-devtools/bpftrace')
-rw-r--r--dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace/0001-bpforc.h-Include-optional-header.patch31
-rw-r--r--dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.11.4.bb (renamed from dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.9.4.bb)7
2 files changed, 36 insertions, 2 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace/0001-bpforc.h-Include-optional-header.patch b/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace/0001-bpforc.h-Include-optional-header.patch
new file mode 100644
index 0000000..c666bfe
--- /dev/null
+++ b/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace/0001-bpforc.h-Include-optional-header.patch
@@ -0,0 +1,31 @@
1From ec41ce71f8cd318ab3ca4ce727e7398289b5d7cf Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 30 Mar 2021 17:25:10 -0700
4Subject: [PATCH] bpforc.h: Include <optional> header
5
6This is required since this header had std::optional<std::tuple<uint8_t *, uintptr_t>>
7
8Fixes buiild errors with clang-12 with gcc11-runtime
9
10Upstream-Status: Submitted [https://github.com/iovisor/bpftrace/pull/1762]
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 src/bpforc.h | 2 ++
14 1 file changed, 2 insertions(+)
15
16diff --git a/src/bpforc.h b/src/bpforc.h
17index da6345be..5634c544 100644
18--- a/src/bpforc.h
19+++ b/src/bpforc.h
20@@ -22,6 +22,8 @@
21 #include <llvm/ExecutionEngine/Orc/JITTargetMachineBuilder.h>
22 #endif
23
24+#include <optional>
25+
26 namespace bpftrace {
27
28 const std::string LLVMTargetTriple = "bpf-pc-linux";
29--
302.31.1
31
diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.9.4.bb b/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.11.4.bb
index ad044fd..d6ab0ce 100644
--- a/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.9.4.bb
+++ b/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.11.4.bb
@@ -10,17 +10,20 @@ DEPENDS += "bison-native \
10 bcc \ 10 bcc \
11 " 11 "
12 12
13PV .= "+git${SRCREV}"
13RDEPENDS_${PN} += "bash python3 xz" 14RDEPENDS_${PN} += "bash python3 xz"
14 15
15SRC_URI = "git://github.com/iovisor/bpftrace \ 16SRC_URI = "git://github.com/iovisor/bpftrace;branch=master \
17 file://0001-bpforc.h-Include-optional-header.patch \
16 " 18 "
17SRCREV = "b1200771b61fd77ed7c5b326e7960d24514dd961" 19SRCREV = "6bfa61f505b6b4215328f90762776edd8a22fdb7"
18 20
19S = "${WORKDIR}/git" 21S = "${WORKDIR}/git"
20 22
21inherit cmake 23inherit cmake
22 24
23EXTRA_OECMAKE = " \ 25EXTRA_OECMAKE = " \
26 -DCMAKE_ENABLE_EXPORTS=1 \
24 -DCMAKE_BUILD_TYPE=Release \ 27 -DCMAKE_BUILD_TYPE=Release \
25 -DBUILD_TESTING=OFF \ 28 -DBUILD_TESTING=OFF \
26" 29"