From eac942c787fad7a0dd150ad41f9e780bf152af5c Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 10 Mar 2023 00:15:08 -0800 Subject: bpftrace: Fix build with clang16 Signed-off-by: Khem Raj --- ...1-cmake-Raise-max-llvm-major-version-to-16.patch | 21 +++++++++++++++++++++ .../recipes-devtools/bpftrace/bpftrace_0.17.0.bb | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 dynamic-layers/openembedded-layer/recipes-devtools/bpftrace/bpftrace/0001-cmake-Raise-max-llvm-major-version-to-16.patch (limited to 'dynamic-layers') 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 @@ +From 85ec062020e4cddf249dd21707752655229e2187 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Fri, 10 Mar 2023 00:08:27 -0800 +Subject: [PATCH] cmake: Raise max llvm major version to 16 + +Signed-off-by: Khem Raj +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -165,7 +165,7 @@ else() + endif() + + set(MIN_LLVM_MAJOR 6) +- set(MAX_LLVM_MAJOR 15) ++ set(MAX_LLVM_MAJOR 16) + + if((${LLVM_VERSION_MAJOR} VERSION_LESS ${MIN_LLVM_MAJOR}) OR (${LLVM_VERSION_MAJOR} VERSION_GREATER ${MAX_LLVM_MAJOR})) + 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}" RDEPENDS:${PN} += "bash python3 xz" SRC_URI = "git://github.com/iovisor/bpftrace;branch=master;protocol=https \ + file://0001-cmake-Raise-max-llvm-major-version-to-16.patch \ file://run-ptest \ " -SRCREV = "1326f040a0f88287ccbc8c18fe8956bca4cc225d" +SRCREV = "70ee22cb14e2eedc5df17e53965824d7381f8e6f" S = "${WORKDIR}/git" -- cgit v1.2.3-54-g00ecf