diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-07-05 16:56:15 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-07-06 17:42:54 +0200 |
commit | 2b52be0c01a2d94c204c6e870d323479444e6c54 (patch) | |
tree | c4262a4ab2fb6895721d52c45dc8dea803156011 /dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb | |
parent | d73932ba992935bfbd7da35c933ce38440521352 (diff) | |
download | meta-clang-2b52be0c01a2d94c204c6e870d323479444e6c54.tar.gz |
bcc: Upgrade to 0.28.0
Add python3-setuptools-native to depends
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb')
-rw-r--r-- | dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb b/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb new file mode 100644 index 0000000..530b468 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb | |||
@@ -0,0 +1,76 @@ | |||
1 | SUMMARY = "BPF Compiler Collection (BCC)" | ||
2 | HOMEPAGE = "https://github.com/iovisor/bcc" | ||
3 | LICENSE = "Apache-2.0" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e" | ||
5 | |||
6 | inherit cmake python3native manpages ptest | ||
7 | |||
8 | DEPENDS += "bison-native \ | ||
9 | flex-native \ | ||
10 | zip-native \ | ||
11 | flex \ | ||
12 | elfutils \ | ||
13 | ${LUAJIT} \ | ||
14 | clang \ | ||
15 | libbpf \ | ||
16 | python3-setuptools-native \ | ||
17 | " | ||
18 | |||
19 | LUAJIT ?= "luajit" | ||
20 | LUAJIT:powerpc64le = "" | ||
21 | LUAJIT:powerpc64 = "" | ||
22 | LUAJIT:riscv64 = "" | ||
23 | |||
24 | RDEPENDS:${PN} += "bash python3 python3-core python3-setuptools xz" | ||
25 | RDEPENDS:${PN}-ptest = "cmake python3 python3-distutils python3-netaddr python3-pyroute2" | ||
26 | |||
27 | SRC_URI = "gitsm://github.com/iovisor/bcc;branch=master;protocol=https \ | ||
28 | file://0001-python-CMakeLists.txt-Remove-check-for-host-etc-debi.patch \ | ||
29 | file://0001-tools-trace.py-Fix-failing-to-exit.patch \ | ||
30 | file://0001-CMakeLists.txt-override-the-PY_CMD_ESCAPED.patch \ | ||
31 | file://0001-Vendor-just-enough-extra-headers-to-allow-libbpf-to-.patch \ | ||
32 | file://0001-tests-cc-Use-c-14-standard.patch \ | ||
33 | file://run-ptest \ | ||
34 | file://ptest_wrapper.sh \ | ||
35 | " | ||
36 | |||
37 | SRCREV = "8422cd449ad2e60414a4508aa4a150a9db39c4a3" | ||
38 | |||
39 | PV .= "+git${SRCPV}" | ||
40 | |||
41 | S = "${WORKDIR}/git" | ||
42 | |||
43 | PACKAGECONFIG ??= "examples" | ||
44 | PACKAGECONFIG:remove:libc-musl = "examples" | ||
45 | |||
46 | PACKAGECONFIG[manpages] = "-DENABLE_MAN=ON,-DENABLE_MAN=OFF," | ||
47 | PACKAGECONFIG[examples] = "-DENABLE_EXAMPLES=ON,-DENABLE_EXAMPLES=OFF," | ||
48 | |||
49 | EXTRA_OECMAKE = " \ | ||
50 | -DCMAKE_USE_LIBBPF_PACKAGE=ON \ | ||
51 | -DENABLE_LLVM_SHARED=ON \ | ||
52 | -DENABLE_CLANG_JIT=ON \ | ||
53 | -DLLVM_PACKAGE_VERSION=${LLVMVERSION} \ | ||
54 | -DPYTHON_CMD=${PYTHON} \ | ||
55 | -DPYTHON_FLAGS=--install-lib=${PYTHON_SITEPACKAGES_DIR} \ | ||
56 | " | ||
57 | |||
58 | do_install:append() { | ||
59 | sed -e 's@#!/usr/bin/env python@#!/usr/bin/env python3@g' \ | ||
60 | -i $(find ${D}${datadir}/${PN} -type f) | ||
61 | sed -e 's@#!/usr/bin/python@#!/usr/bin/env python3@g' \ | ||
62 | -i $(find ${D}${datadir}/${PN} -type f) | ||
63 | } | ||
64 | |||
65 | do_install_ptest() { | ||
66 | install -d ${D}${PTEST_PATH}/tests/cc | ||
67 | install ${B}/tests/cc/test_libbcc_no_libbpf ${B}/tests/cc/libusdt_test_lib.so ${D}${PTEST_PATH}/tests/cc | ||
68 | cp -rf ${S}/tests/python ${D}${PTEST_PATH}/tests/python | ||
69 | install ${WORKDIR}/ptest_wrapper.sh ${D}${PTEST_PATH}/tests | ||
70 | install ${S}/examples/networking/simulation.py ${D}${PTEST_PATH}/tests/python | ||
71 | } | ||
72 | |||
73 | FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}" | ||
74 | FILES:${PN}-doc += "${datadir}/${PN}/man" | ||
75 | |||
76 | COMPATIBLE_HOST = "(x86_64.*|aarch64.*|powerpc64.*|riscv64.*)-linux" | ||