diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2023-09-07 10:45:25 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-09-07 10:39:05 -0700 |
commit | 09e448e13853e8bce535967454cf08e62e76c6c0 (patch) | |
tree | 5ec6afbfb57c9a2858c5238b26041f5cff359ec7 /dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb | |
parent | f9795290af3deaa12e5559d308ffac736f51e607 (diff) | |
download | meta-clang-09e448e13853e8bce535967454cf08e62e76c6c0.tar.gz |
bcc: move to the right dynamic-layer
* it depends not only on meta-oe, but on meta-python as well
and because meta-python depends on meta-oe, we can enable this
when ever meta-python is included
* fixes:
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'python3-pyroute2' (but /OE/build/oe-core/meta-clang/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'python3-pyroute2' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['python3-pyroute2']
ERROR: Nothing RPROVIDES 'python3-netaddr' (but /OE/build/oe-core/meta-clang/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'python3-netaddr' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['python3-netaddr']
ERROR: Nothing RPROVIDES 'bcc-dev' (but /OE/build/oe-core/meta-clang/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb RDEPENDS on or otherwise requires it)
No eligible RPROVIDERs exist for 'bcc-dev'
NOTE: Runtime target 'bcc-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['bcc-dev']
ERROR: Nothing RPROVIDES 'bcc' (but /OE/build/oe-core/meta-clang/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb RDEPENDS on or otherwise requires it)
No eligible RPROVIDERs exist for 'bcc'
NOTE: Runtime target 'bcc' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['bcc']
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, 0 insertions, 76 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 deleted file mode 100644 index 105995d..0000000 --- a/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc_0.28.0.bb +++ /dev/null | |||
@@ -1,76 +0,0 @@ | |||
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" | ||