diff options
| author | Khem Raj <raj.khem@gmail.com> | 2023-03-10 00:15:08 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-03-20 07:48:27 -0700 |
| commit | eac942c787fad7a0dd150ad41f9e780bf152af5c (patch) | |
| tree | 69fc2de4b24a26006ba2d0a03232d8aefc6e2348 /dynamic-layers | |
| parent | a3f629b80fdca80e6f006cf20fb80c87517aeaa5 (diff) | |
| download | meta-clang-eac942c787fad7a0dd150ad41f9e780bf152af5c.tar.gz | |
bpftrace: Fix build with clang16
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'dynamic-layers')
2 files changed, 23 insertions, 1 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace/0001-cmake-Raise-max-llvm-major-version-to-16.patch b/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace/0001-cmake-Raise-max-llvm-major-version-to-16.patch new file mode 100644 index 0000000..904c890 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace/0001-cmake-Raise-max-llvm-major-version-to-16.patch | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | From 85ec062020e4cddf249dd21707752655229e2187 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 10 Mar 2023 00:08:27 -0800 | ||
| 4 | Subject: [PATCH] cmake: Raise max llvm major version to 16 | ||
| 5 | |||
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 7 | --- | ||
| 8 | CMakeLists.txt | 2 +- | ||
| 9 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 10 | |||
| 11 | --- a/CMakeLists.txt | ||
| 12 | +++ b/CMakeLists.txt | ||
| 13 | @@ -165,7 +165,7 @@ else() | ||
| 14 | endif() | ||
| 15 | |||
| 16 | set(MIN_LLVM_MAJOR 6) | ||
| 17 | - set(MAX_LLVM_MAJOR 15) | ||
| 18 | + set(MAX_LLVM_MAJOR 16) | ||
| 19 | |||
| 20 | if((${LLVM_VERSION_MAJOR} VERSION_LESS ${MIN_LLVM_MAJOR}) OR (${LLVM_VERSION_MAJOR} VERSION_GREATER ${MAX_LLVM_MAJOR})) | ||
| 21 | message(SEND_ERROR "Unsupported LLVM version found via ${LLVM_INCLUDE_DIRS}: ${LLVM_VERSION_MAJOR}") | ||
diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.17.0.bb b/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.17.0.bb index ca97683..f3405cb 100644 --- a/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.17.0.bb +++ b/dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace_0.17.0.bb | |||
| @@ -17,9 +17,10 @@ PV .= "+git${SRCREV}" | |||
| 17 | RDEPENDS:${PN} += "bash python3 xz" | 17 | RDEPENDS:${PN} += "bash python3 xz" |
| 18 | 18 | ||
| 19 | SRC_URI = "git://github.com/iovisor/bpftrace;branch=master;protocol=https \ | 19 | SRC_URI = "git://github.com/iovisor/bpftrace;branch=master;protocol=https \ |
| 20 | file://0001-cmake-Raise-max-llvm-major-version-to-16.patch \ | ||
| 20 | file://run-ptest \ | 21 | file://run-ptest \ |
| 21 | " | 22 | " |
| 22 | SRCREV = "1326f040a0f88287ccbc8c18fe8956bca4cc225d" | 23 | SRCREV = "70ee22cb14e2eedc5df17e53965824d7381f8e6f" |
| 23 | 24 | ||
| 24 | S = "${WORKDIR}/git" | 25 | S = "${WORKDIR}/git" |
| 25 | 26 | ||
