diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-03-30 17:32:14 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-03-31 23:27:34 -0700 |
commit | dab00b24239cc43175b761b1c76516ba0b15f3f9 (patch) | |
tree | 85ce20933660c5298d5e4f6697a000b1cb353752 /dynamic-layers | |
parent | 9d190cb3b31ce9b959302f28933f8cddef701497 (diff) | |
download | meta-clang-dab00b24239cc43175b761b1c76516ba0b15f3f9.tar.gz |
bpftrace: Update to using master branch
This is needed for fixing builds with master since clang 12 has dropped
ORCv1 APIs
Add a patch to fix build with clang-12
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'dynamic-layers')
2 files changed, 35 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.11.4.bb b/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.11.4.bb index 18ff05b..d6ab0ce 100644 --- a/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.11.4.bb +++ b/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.11.4.bb | |||
@@ -10,11 +10,13 @@ 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;branch=0.11_release \ | 16 | SRC_URI = "git://github.com/iovisor/bpftrace;branch=master \ |
17 | file://0001-bpforc.h-Include-optional-header.patch \ | ||
16 | " | 18 | " |
17 | SRCREV = "0cd90b8b91f67cae9f612a07498bf8d92306fab1" | 19 | SRCREV = "6bfa61f505b6b4215328f90762776edd8a22fdb7" |
18 | 20 | ||
19 | S = "${WORKDIR}/git" | 21 | S = "${WORKDIR}/git" |
20 | 22 | ||