diff options
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.patch | 31 | ||||
-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 @@ | |||
1 | From ec41ce71f8cd318ab3ca4ce727e7398289b5d7cf Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 30 Mar 2021 17:25:10 -0700 | ||
4 | Subject: [PATCH] bpforc.h: Include <optional> header | ||
5 | |||
6 | This is required since this header had std::optional<std::tuple<uint8_t *, uintptr_t>> | ||
7 | |||
8 | Fixes buiild errors with clang-12 with gcc11-runtime | ||
9 | |||
10 | Upstream-Status: Submitted [https://github.com/iovisor/bpftrace/pull/1762] | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | src/bpforc.h | 2 ++ | ||
14 | 1 file changed, 2 insertions(+) | ||
15 | |||
16 | diff --git a/src/bpforc.h b/src/bpforc.h | ||
17 | index 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 | -- | ||
30 | 2.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 | ||
13 | PV .= "+git${SRCREV}" | ||
13 | RDEPENDS_${PN} += "bash python3 xz" | 14 | RDEPENDS_${PN} += "bash python3 xz" |
14 | 15 | ||
15 | SRC_URI = "git://github.com/iovisor/bpftrace \ | 16 | SRC_URI = "git://github.com/iovisor/bpftrace;branch=master \ |
17 | file://0001-bpforc.h-Include-optional-header.patch \ | ||
16 | " | 18 | " |
17 | SRCREV = "b1200771b61fd77ed7c5b326e7960d24514dd961" | 19 | SRCREV = "6bfa61f505b6b4215328f90762776edd8a22fdb7" |
18 | 20 | ||
19 | S = "${WORKDIR}/git" | 21 | S = "${WORKDIR}/git" |
20 | 22 | ||
21 | inherit cmake | 23 | inherit cmake |
22 | 24 | ||
23 | EXTRA_OECMAKE = " \ | 25 | EXTRA_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 | " |